Datasheet

Table Of Contents
PIC18F85J90 FAMILY
DS39770C-page 134 2010 Microchip Technology Inc.
TABLE 10-18: PORTH FUNCTIONS
TABLE 10-19: SUMMARY OF REGISTERS ASSOCIATED WITH PORTH
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
RH0/SEG47 RH0 0 O DIG LATH<0> data output.
1 I ST PORTH<0> data input.
SEG47 x O ANA LCD Segment 47 output; disables all other pin functions.
RH1/SEG46 RH1 0 O DIG LATH<1> data output.
1 I ST PORTH<1> data input.
SEG46 x O ANA LCD Segment 46 output; disables all other pin functions.
RH2/SEG45 RH2 0 O DIG LATH<2> data output.
1 I ST PORTH<2> data input.
SEG45 x O ANA LCD Segment 45 output; disables all other pin functions.
RH3/SEG44 RH3 0 O DIG LATH<3> data output.
1 I ST PORTH<3> data input.
SEG44 x O ANA LCD Segment 44 output; disables all other pin functions.
RH4/SEG40 RH4 0 O DIG LATH<4> data output.
1 I ST PORTH<4> data input.
SEG40 x O ANA LCD Segment 40 output; disables all other pin functions.
RH5/SEG41 RH5 0 O DIG LATH<5> data output.
1 I ST PORTH<5> data input.
SEG41 x O ANA LCD Segment 41 output; disables all other pin functions.
RH6/SEG42 RH6 0 O DIG LATH<6> data output.
1 I ST PORTH<6> data input.
SEG42 x O ANA LCD Segment 42 output; disables all other pin functions.
RH7/SEG43 RH7 0 O DIG LATH<7> data output.
1 I ST PORTH<7> data input.
SEG43 x O ANA LCD Segment 43 output; disables all other pin functions.
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).
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reset
Values
on page
PORTH RH7 RH6 RH5 RH4 RH3 RH2 RH1 RH0 60
LATH LATH7 LATH6 LATH5 LATH4 LATH3 LATH2 LATH1 LATH0 60
TRISH TRISH7 TRISH6 TRISH5 TRISH4 TRISH3 TRISH2 TRISH1 TRISH0 60
LCDSE5 SE47 SE46 SE45 SE44 SE43 SE42 SE41 SE40 59