Datasheet

1996 Microchip Technology Inc.
Preliminary
DS40122B-page 31
PIC14000
5.2.1 TRISC PORTC DATA DIRECTION
REGISTER
This register defines each pin of PORTC as either an
input or output under software control. A ‘1’ in each
location configures the corresponding port pin as an
input. This register resets to all ‘1’s, meaning all
PORTC pins are initially inputs. The data register
should be initialized prior to configuring the port as
outputs.
FIGURE 5-7: TRISC REGISTER
U= unimplemented, X = unknown.
87h Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
TRISC
TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0
Read/Write
R/W R/W R/W R/W R/W R/W R/W R/W
POR value FFh
1111 1 1 1 1
Bit Name Function
B7 TRISC7 Control direction on pin RC7/SDAA (has no effect if I
2
C is enabled):
0 = pin is an output
1 = pin is an input
B6 TRISC6
Control direction on pin RC6/SCLA (has no effect if I
2
C is enabled):
0 = pin is an output
1 = pin is an input
B5 TRISC5 Control direction on pin RC5:
0 = pin is an output
1 = pin is an input
B4 TRISC4 Control direction on pin RC4:
0 = pin is an output
1 = pin is an input
B3 TRISC3 Control direction on pin RC3:
0 = pin is an output
1 = pin is an input
B2 TRISC2 Control direction on pin RC2:
0 = pin is an output
1 = pin is an input
B1 TRISC1 Control direction on pin RC1/CMPA (has no effect if the CMAOE bit is set):
0 = pin is an output
1 = pin is an input
B0 TRISC0 Control direction on pin RC0/REFA (has no effect if the CMAOE bit is set):
0 = pin is an output
1 = pin is an input