QG8 ADC example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QG8 ADC example

3,430 Views
xwing
Contributor I
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 
Labels (1)
0 Kudos
2 Replies

358 Views
peg
Senior Contributor IV

Hi xwing,

Have you taken a look at the "quick start guide" posted (sticky) at the top of this forum?

If you can't get any help from it, post back here.

BR Peg

 

0 Kudos

358 Views
xwing
Contributor I

Hi peg,

I have managed to get it working.

The problem is I did not call the Measure method in my main program.

Thanks for your help.

 

rgds,

Xwing

0 Kudos