1.
Don't print so often, or, make the ADC clock really slow, or don't use
interrupts and just do conversions in your main() routine with a suitable delay
between conversions & printing.
2.
Enable the internal pull-up to make the unused ports to read 0x3FF, or make them
outputs and drive low to make them read 0x00. Or, better yet, ignore
them.
The
reason un-connected bits read similar to the previous conversion is that the
sample & hold capacitor is not charged/discharged to the new voltage.
They are indeed floating!
-----Original Message-----
From: Zheng Anding [mailto:adzheng@yahoo.com]
Sent: Saturday, January 03, 2004 1:15 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] ADC Questions ???
From: Zheng Anding [mailto:adzheng@yahoo.com]
Sent: Saturday, January 03, 2004 1:15 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] ADC Questions ???
Hi All,
I got 2 ADC questions,
1. I start ADC at the beginning of the Main(). In ADC ISR, after one time conversion, I start next one. But it's too fast for me. The data shown is too fast to display. How to slow down it?
2. There are data shown around 0 - 20 on the channels which even dont have sensor connected. It's like a "floating" data. How to get rid of it?
Highly appreciate for your answers!
Sincerely,
Alex
Do you Yahoo!?
Find out what made
the Top Yahoo! Searches of 2003
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
- To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.