
PIC18F46J50 FAMILY
DS39931D-page 182
2011 Microchip Technology Inc.
11.2.5.2
WRITE TO SLAVE PORT
When chip select is active and a write strobe occurs
(PMCS = 1 and PMWR = 1), the data from PMD<7:0>
is captured into one of the four input buffer bytes.
Which byte is written depends on the 2-bit address
placed on ADDRL<1:0>.
Table 11-1 provides the corresponding input registers
and their associated address.
When an input buffer is written, the corresponding IBxF
bit is set. The IBF flag bit is set when all the buffers are
written. If any buffer is already written (IBxF = 1), the
next write strobe to that buffer will generate an OBUF
event and the byte will be discarded.
FIGURE 11-8:
PARALLEL SLAVE PORT WRITE WAVEFORMS
PMCS
|
Q4
|
Q1
|
Q2
|
Q3
|
Q4
PMWR
PMRD
PMD<7:0>
IBF
PMPIF
PMA<1:0>