Chapter 3 - Input Output Ports Programming
Chapter 3 - Input Output Ports Programming
Port A
PORTA is a 7-bit wide, bidirectional port.
The corresponding Data Direction register is
TRISA.
Setting a TRISA bit (= 1) will make the
corresponding PORTA pin an input
Clearing a TRISA bit (= 0) will make the
corresponding PORTA pin an output
On a Power-on Reset, these pins are configured
as inputs and read as 0
PORTB is 8 pins
PORTC is 8 pins
PORTD is 8 pins
PORTE is 3 pins
Data Dependency
A NOP is needed to make that data is written
in the WREG before it read for outputting to
PortB
Port B
20