QG8 ADC example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

QG8 ADC example

4,003 次查看
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 
标签 (1)
0 项奖励
回复
2 回复数

931 次查看
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 项奖励
回复

931 次查看
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 项奖励
回复