An Overview Of PORTA
Some pins PORTA of the PIC16F887 is multiplexed with the analog input channels. Using them as an input they are the analog input channel by default.
PORTA is the input output read/write register.
MikroC Programming of PORTA
All the registers discussed above are available in MikroC with its own label - for example the ANSEL. I program the controller to read a digital input data from RA0 - AN0 is ignored. This digital input bit will be display on RA1, connects to an output LED circuit.
Schematic Diagram |
When this prototyping circuit installed in the physical board, do not forget to wire the supply pins. The circuit works at 5 V DC. The CPU clocks at 20 MHz.
No comments:
Post a Comment