Boon Chuan Tan

QG8 ADC example

Discussion created by Boon Chuan Tan on Apr 26, 2006
Latest reply on Apr 28, 2006 by Boon Chuan Tan
Hi,
 
I am having problems in getting ADC to measure input value.
The ADC doesn't seemed to be working at all...I'm using proc expert to create the project)
 
Configuration:
PTA0 - ADC input (8 bit resolution)
PTB5 - Output (LED on/off)
 
When I measure more than 1/2 Vcc at PTA0, LED turns on.
Any input < 1/2 Vcc, LED turns off.
 
Any help on how to configure ADC is much appreciated.
 
Thanks,
xwing 

Outcomes