I am currently using PORTA.0 to PORTA.2 as analog inputs.
Is there anyway to get PORTA.3 on a PIC16F877 to digital?
This is my current setting
TRISA = %11111111 ' Set PORTA to all input
ADCON1 = %10000010 ' Set PORTA analog
I am trying to use this PORTA.3 as an input from a optical sensor that I place on a spinning disk. You guessed it. Try to build myself a tachometer.
Currently, I have all kinds of numbers poping up on the LCD when I make one pass. I get numbers from 2,7,10,47 depending on how long it takes to pass the reflective surface. Maybe I am not giving the PIC a clean signal to look at.
Any remedies?
Thanks
Randy
Bookmarks