Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help needed in ADC using AT89C4051

Status
Not open for further replies.

vinash

Member level 2
Joined
Nov 3, 2005
Messages
45
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,999
at89c4051 reading

Hi,
I am a new comer to the field of microcontrollers and doing some simple projects to get familiar with microcontrollers. Currently i am embarking on using the AT89C4051 as an ADC . I am actually trying to use the application notes provided by the following website:
http://www.atmel.com/dyn/resources/prod_documents/DOC0524.PDF
It would be very useful if someone were to help me with the coding (C-program) for the application. I have tried a few times but have failed. Your help would be greaatly appreciated.
 

at89c4051 adc

Software is at the Atmel site. Where would you expect it to be?
The link is in my answer to your cross-post at the 8052.com forum.

wek
 

HI,
I have done the conections for the ADC conversion and had connected the positive voltage of the signal to Pin 1.1. and i wrote a very simple program, that would be able to output voltage reading on the LEDs,
The program is of as follows:

#include<AT89x051.h>

char a[10]={0x03,0x13,0x23,0x33,0x43,0x53,0x63,0x73,0x83,0x93}; /* The numbering from 0-9*/


void main(void)

{int j, adc_data;
while(1){

P1_1=adc_data;
P1=a[adc_data%10];
for(j=0;j<30000;j++);

}
}


I do always get a zero on my LED display, no matter how i changed the voltage input, Could you please help. Thank you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top