Datasheet
PIC18F87K90 FAMILY
DS39957D-page 178 2009-2011 Microchip Technology Inc.
TABLE 11-16: PORTH FUNCTIONS
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
RH0/SEG47/
AN23
RH0 0 O DIG LATH<0> data output.
1 I ST PORTH<0> data input.
SEG47 1 O ANA LCD Segment 47 output; disables all other pin functions.
AN23 1 I ANA A/D Input Channel 23. Default input configuration on POR; does not
affect digital input.
RH1/SEG46/
AN22
RH1 0 O DIG LATH<1> data output.
1 I ST PORTH<1> data input.
SEG46 1 O ANA LCD Segment 46 output; disables all other pin functions.
AN22 1 I ANA A/D Input Channel 22. Default input configuration on POR; does not
affect digital input.
RH2/SEG45/
AN21
RH2 0 O DIG LATH<2> data output.
1 I ST PORTH<2> data input.
SEG45 1 O ANA LCD Segment 45 output; disables all other pin functions.
AN21 1 I ANA A/D Input Channel 21. Default input configuration on POR; does not
affect digital input.
RH3/SEG44/
AN20
RH3 0 O DIG LATH<3> data output.
1 I ST PORTH<3> data input.
SEG44 1 O ANA LCD Segment 44 output; disables all other pin functions.
AN20 1 I ANA A/D Input Channel 20.
Default input configuration on POR; does not affect digital input.
RH4/SEG40/
CCP9/P3C/
AN12/C2INC
RH4 0 O DIG LATH<4> data output.
1 I ST PORTH<4> data input.
SEG40 1 O ANA LCD Segment 40 output; disables all other pin functions.
CCP9 0 O DIG CCP9 compare/PWM output; takes priority over port data.
1 I ST CCP9 capture input.
P3C 0 O — ECCP3 PWM Output C. May be configured for tri-state during
Enhanced PWM.
AN12 1 I ANA A/D Input Channel 12. Default input configuration on POR; does not
affect digital input.
C2INC x I ANA Comparator 2 Input C.
RH5/SEG41/
CCP8/P3B/
AN13/C2IND
RH5 0 O DIG LATH<5> data output.
1 I ST PORTH<5> data input.
SEG41 1 O ANA LCD Segment 41 output; disables all other pin functions.
CCP8 0 O DIG CCP8 compare/PWM output; takes priority over port data.
1 I ST CCP8 capture input.
P3B 0 O — ECCP3 PWM Output B. May be configured for tri-state during
Enhanced PWM.
AN13 1 I ANA A/D Input Channel 13. Default input configuration on POR; does not
affect digital input.
C2IND x I ANA Comparator 2 Input D.
Legend: O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Trigger Buffer Input,
x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).