PIC18FXX20
TABLE 10-15: PORTH FUNCTIONS
Name
Bit#
Buffer Type
Function
RH0/A16
RH1/A17
RH2/A18
bit0
bit1
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST
Input/output port pin or address bit 16 for external memory interface.
Input/output port pin or address bit 17 for external memory interface.
Input/output port pin or address bit 18 for external memory interface.
Input/output port pin or address bit 19 for external memory interface.
Input/output port pin or analog input channel 12.
Input/output port pin or analog input channel 13.
Input/output port pin or analog input channel 14.
Input/output port pin or analog input channel 15.
bit2
bit3
bit4
bit5
bit6
bit7
RH3/A19
RH4/AN12
RH5/AN13
RH6/AN14
RH7/AN15
ST
ST
ST
Legend: ST = Schmitt Trigger input, TTL = TTL input
Note 1: Input buffers are Schmitt Triggers when in I/O mode and TTL buffers when in System Bus or Parallel Slave
Port mode.
TABLE 10-16: SUMMARY OF REGISTERS ASSOCIATED WITH PORTH
Value on
Value on:
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
all other
RESETS
POR, BOR
1111 1111
xxxx xxxx
xxxx xxxx
--00 0000
0-00 --00
1111 1111
uuuu uuuu
uuuu uuuu
--00 0000
0-00 --00
TRISH
PORTH
LATH
ADCON1
MEMCON EBDIS
PORTH Data Direction Control Register
Read PORTH pin/Write PORTH Data Latch
Read PORTH Data Latch/Write PORTH Data Latch
—
—
—
VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0
WAIT1 WAIT0 WM1 WM0
—
—
Legend: x= unknown, u= unchanged, - = unimplemented. Shaded cells are not used by PORTH.
DS39609A-page 124
Advance Information
2003 Microchip Technology Inc.