Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top