Analog to 7 segment display

Status
Not open for further replies.

peterzatko

New Member
View attachment 63026I need help with programming in mikrobasic.I never convert analog to digital.
PIC 18F252 / mikrobasic 20Mhz HS crystal

How to set ADCON - RA0/ANO must be analog input other are digital inputs.
Help me with programming.
I need from 0V to 1V in RA0/AN0 LED1.switch ON (PORTB.1)
1V to 2V in RA0/AN0 LED2.switch ON (PORTB.2)
2V to 3V in RA0/AN0 LED3.switch ON (PORTB.3)
3V to 4V in RA0/AN0 LED4.switch ON (PORTB.4)
4V to 5V in RA0/AN0 LED5.switch ON (PORTB.5)
..................................
..................................
...................................



Thx
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…