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.

ATMEGA8L USART and ADC use

Status
Not open for further replies.

calocho

Newbie level 1
Joined
Jun 22, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Colombia
Activity points
1,287
Hi I need some help using both the USART Tx/Rx and the ADC, im kind of new at this and I need some help with a proyect im about to do, any help if of great use!! Thanks!!
 

be a little more specific, what are your problems, and according to title you seemed to be written in wrong topic.
 

Hi calocho,
It depends on which compiler you are using and your knowledge of ADC and UART. If you are using mikroC, mikroBASIC or mikroPASCAL, there are inbuilt library routines that you can simply call such as:
Code:
xyz = ADC_Read(0)
This reads the analog value from channel 0 and copies the 10-bit corresponding digital result to register xyz.
It follows:
digital value = (reading voltage / reference voltage) * (2^ resolution)
e.g. 1.25v = (1.25 / 5) * (2^10) = 256

UART will require you to study a bit more in detail, and so will ADC.

Study the corresponding chapters in the datasheet and everything will become clear.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top