Re: Configuring port A as digital input for pic16f877a in MikroC
in mikroC too you have to configure the ports as inputs and outputs.there's no function in microC which automatically make ports. if you want to make inputs, write 1 to the pins which is to be used as an inputs
disable ADC and Comparators.it's clearly mentioned in microchip data sheet. i think the system is not working because you did not configure the controller parameters like MCLR in proteus and the compiler.
1 members found this post helpful.