Datasheet

2011 Microchip Technology Inc. DS39762F-page 167
PIC18F97J60 FAMILY
TABLE 11-19: PORTJ FUNCTIONS
TABLE 11-20: SUMMARY OF REGISTERS ASSOCIATED WITH PORTJ
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
RJ0/ALE
(1)
RJ0
(1)
0
O DIG LATJ<0> data output.
1 I ST PORTJ<0> data input; weak pull-up when RJPU bit is set.
ALE
(1)
x O DIG External memory interface address latch enable control output; takes
priority over digital I/O.
RJ1/OE
(1)
RJ1
(1)
0 O DIG LATJ<1> data output.
1 I ST PORTJ<1> data input; weak pull-up when RJPU bit is set.
OE
(1)
x O DIG External memory interface output enable control output; takes priority
over digital I/O.
RJ2/WRL
(1)
RJ2
(1)
0 O DIG LATJ<2> data output.
1 I ST PORTJ<2> data input; weak pull-up when RJPU bit is set.
WRL
(1)
x O DIG External memory bus write low byte control; takes priority over
digital I/O.
RJ3/WRH
(1)
RJ3
(1)
0 O DIG LATJ<3> data output.
1 I ST PORTJ<3> data input; weak pull-up when RJPU bit is set.
WRH
(1)
x O DIG External memory interface write high byte control output; takes priority
over digital I/O.
RJ4/BA0 RJ4 0 O DIG LATJ<4> data output.
1 I ST PORTJ<4> data input; weak pull-up when RJPU bit is set.
BA0
(2)
x O DIG External Memory Interface Byte Address 0 control output; takes
priority over digital I/O.
RJ5/CE
RJ5 0 O DIG LATJ<5> data output.
1 I ST PORTJ<5> data input; weak pull-up when RJPU bit is set.
CE
(2)
x O DIG External memory interface chip enable control output; takes priority
over digital I/O.
RJ6/LB
(1)
RJ6
(1)
0 O DIG LATJ<6> data output.
1 I ST PORTJ<6> data input; weak pull-up when RJPU bit is set.
LB
(1)
x O DIG External memory interface lower byte enable control output; takes
priority over digital I/O.
RJ7/UB
(1)
RJ7
(1)
0 O DIG LATJ<7> data output.
1 I ST PORTJ<7> data input; weak pull-up when RJPU bit is set.
UB
(1)
x O DIG External memory interface upper byte enable control output; takes
priority over digital I/O.
Legend: O = Output, I = Input, DIG = Digital Output, ST = Schmitt Buffer Input,
x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
Note 1: Implemented on 100-pin devices only.
2: EMB functions are implemented on 100-pin devices only.
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reset
Values
on Page:
PORTJ RJ7
(1)
RJ6
(1)
RJ5 RJ4 RJ3
(1)
RJ2
(1)
RJ1
(1)
RJ0
(1)
72
LATJ LATJ7
(1)
LATJ6
(1)
LATJ5 LATJ4 LATJ3
(1)
LATJ2
(1)
LATJ1
(1)
LATJ0
(1)
71
TRISJ TRISJ7
(1)
TRISJ6
(1)
TRISJ5 TRISJ4 TRISJ3
(1)
TRISJ2
(1)
TRISJ1
(1)
TRISJ0
(1)
71
PORTA RJPU
RA5 RA4 RA3 RA2 RA1 RA0 72
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by PORTJ.
Note 1: Implemented on 100-pin devices only.