English
Language : 

PIC18F6585 Datasheet, PDF (150/496 Pages) Microchip Technology – 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC18F6585/8585/6680/8680
TABLE 10-15: PORTH FUNCTIONS
Name
Bit# Buffer Type
Function
RH0/A16
RH1/A17
RH2/A18
RH3/A19
bit 0
ST/TTL(1) Input/output port pin or address bit 16 for external memory interface.
bit 1
ST/TTL(1) Input/output port pin or address bit 17 for external memory interface.
bit 2
ST/TTL(1) Input/output port pin or address bit 18 for external memory interface.
bit 3
ST/TTL(1) Input/output port pin or address bit 19 for external memory interface.
RH4/AN12
bit 4
ST
Input/output port pin or analog input channel 12.
RH5/AN13
bit 5
RH6/AN14/P1C(2) bit 6
RH7/AN15/P1B(2) bit 7
ST
Input/output port pin or analog input channel 13.
ST
Input/output port pin or analog input channel 14.
ST
Input/output port pin or analog input channel 15.
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.
2: Alternate pin assignment when ECCPMX configuration bit is cleared.
TABLE 10-16: SUMMARY OF REGISTERS ASSOCIATED WITH PORTH
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR, BOR
TRISH
PORTH Data Direction Control Register
1111 1111
PORTH
Read PORTH pin/Write PORTH Data Latch
xxxx xxxx
LATH
Read PORTH Data Latch/Write PORTH Data Latch
xxxx xxxx
ADCON1
—
— VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0 --00 0000
MEMCON(1) EBDIS — WAIT1 WAIT0 —
—
WM1 WM0 0-00 --00
Legend: x = unknown, u = unchanged, – = unimplemented. Shaded cells are not used by PORTH.
Note 1: This register is held in Reset in Microcontroller mode.
Value on
all other
Resets
1111 1111
uuuu uuuu
uuuu uuuu
--00 0000
0-00 --00
DS30491C-page 148
 2004 Microchip Technology Inc.