The pic 16f84Acontains 2 i/o ports ,port A& port B.
Each port has two registres associated with it ,the
TRIS(tri state )register and the address itself.
The TRIS register controlls whether a particular
pin on a port is configured as an input line or an
output line .once the ports are configured the user
may then read or write information to the port using
the port register address.In 16f84A there are 8 pins
available for port B & 5 for port A.
--------------------------------------------
REGISTER MEMORY MEMORY
LOCATION(hex) LOCATION(decimal)
--------**---------------**-----------------
PORT A -----05h------------- 5
PORT B -----06h -------------6
TRISA -------85h -----------133
TRISB -------86h------------ 134
---------------------------------------------
No comments:
Post a Comment