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
87h
TRISC
Read/Write
POR value FFh
Bit 7
TRISC7
R/W
1
Bit 6
TRISC6
R/W
1
Bit 5
TRISC5
R/W
1
Bit 4
TRISC4
R/W
1
Bit 3
TRISC3
R/W
1
Bit 2
TRISC2
R/W
1
Bit 1
TRISC1
R/W
1
Bit 0
TRISC0
R/W
1
Bit
B7
B6
B5
B4
B3
B2
B1
B0
Name
TRISC7
TRISC6
TRISC5
TRISC4
TRISC3
TRISC2
TRISC1
TRISC0
Function
Control direction on pin RC7/SDAA (has no effect if I2C is enabled):
0 = pin is an output
1 = pin is an input
Control direction on pin RC6/SCLA (has no effect if I2C is enabled):
0 = pin is an output
1 = pin is an input
Control direction on pin RC5:
0 = pin is an output
1 = pin is an input
Control direction on pin RC4:
0 = pin is an output
1 = pin is an input
Control direction on pin RC3:
0 = pin is an output
1 = pin is an input
Control direction on pin RC2:
0 = pin is an output
1 = pin is an input
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
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
U= unimplemented, X = unknown.
© 1996 Microchip Technology Inc.
Preliminary
DS40122B-page 31