vinodstanur
Advanced Member level 3
- Joined
- Oct 31, 2009
- Messages
- 751
- Helped
- 114
- Reputation
- 234
- Reaction score
- 114
- Trophy points
- 1,333
- Location
- Kerala (INDIA)
- Activity points
- 7,054
hello....
I dont know how to use ADC.
(using HTC compiler pro)
pls give me a sample program for my conditions below;
IF ANALOG INPUT IS BETWEEN .5V AND 1V THEN PORTB=1
IF ANALOG INPUT IS BETWEEN 1V AND1.5V THEN PORTB=2
IF ANALOG INPUT IS BETWEEN 1.5V AND 2V THEN PORTB=3
IF ANALOG INPUT IS BETWEEN 2V AND 2.5V THEN PORTB=4
THANKS IN ADVANCE
I dont know how to use ADC.
(using HTC compiler pro)
pls give me a sample program for my conditions below;
IF ANALOG INPUT IS BETWEEN .5V AND 1V THEN PORTB=1
IF ANALOG INPUT IS BETWEEN 1V AND1.5V THEN PORTB=2
IF ANALOG INPUT IS BETWEEN 1.5V AND 2V THEN PORTB=3
IF ANALOG INPUT IS BETWEEN 2V AND 2.5V THEN PORTB=4
THANKS IN ADVANCE