I just want to ask how to correctly initialize a PORT in PIC16F877a cause its my first time using usually i used PIC16F84A due to more inputs a shift to pic16f877a but my problem is that i cannot correctly initialize PORTA of PIC16F877a due to the ADC function sharing with the port. Because i want to used my PORTA as an input for my sensors which i cannot distinguish either analog or digital.
Is the common sensor which is compose of IR and Phototransistor output an analog or digital signal?
Is the common sensor which is compose of IR and Phototransistor output an analog or digital signal?