PIC12F635/PIC16F636/639
REGISTER 4-6:
PORTC – PORTC REGISTER (ADDRESS: 07h)
U-0
U-0
R/W-x R/W-x R/W-x
—
—
RC5
RC4
RC3
bit 7
R/W-x
RC2
R/W-0
RC1
R/W-0
RC0
bit 0
bit 7-6:
bit 5-0:
Unimplemented: Read as ‘0’
RC<5:0>: PORTC General Purpose I/O Pin bits
1 = Port pin is > VIH
0 = Port pin is < VIL
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared x = Bit is unknown
REGISTER 4-7:
TRISC – PORTC TRI-STATE REGISTER (ADDRESS: 87h)
U-0
U-0
R/W-1 R/W-1 R/W-1 R/W-1
—
—
TRISC5 TRISC4 TRISC3 TRISC2
bit 7
R/W-1
TRISC1
R/W-1
TRISC0
bit 0
bit 7-6:
bit 5-0:
Unimplemented: Read as ‘0’
TRISC<5:0>: PORTC Tri-State Control bit
1 = PORTC pin configured as an input (tri-stated)
0 = PORTC pin configured as an output
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared x = Bit is unknown
TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR, BOD,
WUR
Value on
all other
Resets
07h
PORTC
—
—
RC5 RC4 RC3 RC2 RC1 RC0 --xx xx00 --uu uu00
19h
CMCON0 C2OUT C1OUT C2INV C1INV CIS
CM2 CM1 CM0 0000 0000 0000 0000
87h
TRISC
—
— TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 --11 1111 --11 1111
Legend: x = unknown, u = unchanged, — = unimplemented locations read as ‘0’. Shaded cells are not used by PORTC.
© 2005 Microchip Technology Inc.
Preliminary
DS41232B-page 51