PIC18FXX20
FIGURE 10-25:
PARALLEL SLAVE PORT READ WAVEFORMS
Q1
Q2
Q3
Q4
Q1
Q2
Q3
Q4
Q1
Q2
Q3
Q4
CS
WR
RD
PORTD<7:0>
IBF
OBF
PSPIF
TABLE 10-19: REGISTERS ASSOCIATED WITH PARALLEL SLAVE PORT
Value on
all other
RESETS
Value on
POR, BOR
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PORTD
LATD
Port Data Latch when written; Port pins when read
LATD Data Output bits
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
0000 0000 0000 0000
TRISD
PORTD Data Direction bits
Read PORTE pin/
Write PORTE Data Latch
PORTE
—
—
—
—
—
LATE
—
—
—
—
—
—
—
—
—
—
—
LATE Data Output bits
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
0000 ---- 0000 ----
0000 0000 0000 0000
TRISE
PSPCON
PORTE Data Direction bits
IBF
OBF
IBOV
PSPMODE
—
—
—
GIE/
GIEH
PEIE/
GIEL
INTCON
TMR0IF
INT0IE
RBIE
TMR0IF
INT0IF
RBIF
(1)
PIR1
PIE1
IPR1
PSPIF
PSPIE
PSPIP
ADIF
ADIE
ADIP
RCIF
RCIE
RCIP
TXIF
TXIE
TXIP
SSPIF
SSPIE
SSPIP
CCP1IF TMR2IF
TMR1IF 0000 0000 0000 0000
(1)
(1)
CCP1IE TMR2IE TMR1IE 0000 0000 0000 0000
CCP1IP TMR2IP TMR1IP 0111 1111 0111 1111
Legend: x= unknown, u= unchanged, - = unimplemented, read as '0'. Shaded cells are not used by the Parallel Slave Port.
Note 1: Enabled only in Microcontroller mode for PIC18F8X20 devices.
DS39609A-page 130
Advance Information
2003 Microchip Technology Inc.