long0900
Newbie level 6
Hi!!
PIC16F716 has 13 I/O pins ( 5 for PORTA, 8 for PORTB),I am using PORTB for driving each segment of 7 segment LED, 4 pins of PORTA for driving each digit and pin RA0 for input voltage.
I am using mikroC because I dont have to worry much about the configuration but I quite not sure about how to config the ADCON1 register of the PIC.
About the code, should I use array or a Switch..case function to store the bits of the numbers?
Why I keep getting 0000 when I use "/","%" to get each digit of the voltage?
Here is the datasheet : https://ww1.microchip.com/downloads/en/DeviceDoc/41206B.pdf
Please help me!
Thanks in advance
PIC16F716 has 13 I/O pins ( 5 for PORTA, 8 for PORTB),I am using PORTB for driving each segment of 7 segment LED, 4 pins of PORTA for driving each digit and pin RA0 for input voltage.
I am using mikroC because I dont have to worry much about the configuration but I quite not sure about how to config the ADCON1 register of the PIC.
About the code, should I use array or a Switch..case function to store the bits of the numbers?
Why I keep getting 0000 when I use "/","%" to get each digit of the voltage?
Here is the datasheet : https://ww1.microchip.com/downloads/en/DeviceDoc/41206B.pdf
Please help me!
Thanks in advance