
PIC12F508/509/16F505
DS41236E-page 32
2009 Microchip Technology Inc.
TABLE 5-1:
SUMMARY OF PORT REGISTERS
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-On
Reset
Value on
All Other
Resets
N/A
TRISGPIO(1)
—
I/O Control Register
--11 1111
N/A
TRISB(2)
—
I/O Control Register
--11 1111
N/A
TRISC(2)
—
I/O Control Register
--11 1111
N/A
OPTION(1)
GPWU
GPPU
TOCS
TOSE
PSA
PS2
PS1
PS0
1111 1111
N/A
OPTION(2)
RBWU
RBPU
TOCS
TOSE
PSA
PS2
PS1
PS0
1111 1111
03h
STATUS(1)
GPWUF
—
PAO
TO
PD
Z
DC
C
0-01 1xxx
q00q quuu
(3)
03h
STATUS(2)
RBWUF
—
PAO
TO
PD
Z
DC
C
0-01 1xxx
q00q quuu(3)
06h
GPIO(1)
—
GP5
GP4
GP3
GP2
GP1
GP0
--xx xxxx
--uu uuuu
06h
PORTB(2)
—
RB5
RB4
RB3
RB2
RB1
RB0
--xx xxxx
--uu uuuu
07h
PORTC(2)
—
RC5
RC4
RC3
RC2
RC1
RC0
--xx xxxx
--uu uuuu
Legend:
Shaded cells are not used by Port registers, read as ‘0’. – = unimplemented, read as ‘0’, x = unknown, u = unchanged,
q
= depends on condition.
Note
1:
PIC12F508/509 only.
2:
PIC16F505 only.
3:
If Reset was due to wake-up on pin change, then bit 7 = 1. All other Resets will cause bit 7 = 0.