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.

Can I send 2 adc to PC with serial?

Status
Not open for further replies.

Login383

Newbie level 3
Joined
Mar 8, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
Send 2 adc to PC?

Help me.
Can I send 2 adc to PC with serial?
I am use AVR ATMEGA 8535 and ADC from PORTA.0 and PORTA.1.
How the program?
Thanks.
 

Re: Send 2 adc to PC?

Set the AVR’s UART for, say 9600, 8-bit, no-parity, 1-stop ..
https://extremeelectronics.co.in/avr-tutorials/using-the-usart-of-avr-microcontrollers/
At the PC end, open Hyperterminal and set for the same as above ..
Can I assume that you don’t have any issues with the hardware connection ..

The link below shows how to use the ADC:
https://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/

You can send string that contains raw data or you can convert raw data into ASCII so when it appears on the hyperterminal screen it is easy to read ..
At the end of each string add “0D”h and “0A”h, this combination of control characters will return the cursor on the PC’s screen to the beginning of the next line ..
Example:
<ADC1H><ADC1L>,<ADC0H><ADC0L>, 0Dh, 0Ah

Rgds,
IanP
:D
 

Re: Send 2 adc to PC?

IanP said:
Set the AVR’s UART for, say 9600, 8-bit, no-parity, 1-stop ..
https://extremeelectronics.co.in/avr-tutorials/using-the-usart-of-avr-microcontrollers/
At the PC end, open Hyperterminal and set for the same as above ..
Can I assume that you don’t have any issues with the hardware connection ..

The link below shows how to use the ADC:
https://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/

You can send string that contains raw data or you can convert raw data into ASCII so when it appears on the hyperterminal screen it is easy to read ..
At the end of each string add “0D”h and “0A”h, this combination of control characters will return the cursor on the PC’s screen to the beginning of the next line ..
Example:
<ADC1H><ADC1L>,<ADC0H><ADC0L>, 0Dh, 0Ah

Rgds,
IanP
:D

In the PC, how to get data form adc0 and adc1 (split data from adc0 and adc1)?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top