English
Language : 

PIC18F87K22 Datasheet, PDF (184/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
TABLE 12-15: PORTH FUNCTIONS (CONTINUED)
Pin Name
Function
TRIS
Setting
I/O
I/O
Type
Description
RH5/CCP8/
P3B/AN13/
C2IND
RH5
CCP8
0
O
DIG LATH<5> data output.
1
I
ST PORTH<5> data input.
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.
RH6/CCP7/
P1C/AN14/
C1INC
RH6
CCP7
0
O
DIG LATH<6> data output.
1
I
ST PORTH<6> data input.
0
O
DIG CCP7 compare/PWM output. Takes priority over port data.
1
I
ST CCP7 capture input.
P1C
0
O
— ECCP1 PWM Output C.
May be configured for tri-state during Enhanced PWM.
AN14
1
I
ANA A/D Input Channel 14.
Default input configuration on POR. Does not affect digital input.
C1INC
x
I
ANA Comparator 1 Input C.
RH7/CCP6/
P1B/AN15
RH7
0
O
DIG LATH<7> data output.
1
I
ST PORTH<7> data input.
CCP6
0
O
DIG CCP6 compare/PWM output. Takes priority over port data.
1
I
ST CCP6 capture input.
P1B
0
O
— ECCP1 PWM Output B.
May be configured for tri-state during Enhanced PWM.
AN15
1
I
ANA A/D Input Channel 15.
Default input configuration on POR. Does not affect digital input.
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).
TABLE 12-16: SUMMARY OF REGISTERS ASSOCIATED WITH PORTH
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
PORTH
LATH
TRISH
ANCON1
ANCON2
ODCON2
RH7
LATH7
TRISH7
ANSEL15
ANSEL23
CCP10OD
RH6
LATH6
TRISH6
ANSEL14
ANSEL22
CCP9OD
RH5
LATH5
TRISH5
ANSEL13
ANSEL21
CCP8OD
RH4
LATH4
TRISH4
ANSEL12
ANSEL20
CCP7OD
RH3
LATH3
TRISH3
ANSEL11
ANSEL19
CCP6OD
RH2
LATH2
TRISH2
ANSEL10
ANSEL18
CCP5OD
Bit 1
RH1
LATH1
TRISH1
ANSEL9
ANSEL17
CCP4OD
Bit 0
RH0
LATH0
TRISH0
ANSEL8
ANSEL16
CCP3OD
DS39960B-page 184
Preliminary
 2010 Microchip Technology Inc.