98
µ
PD78214 Sub-Series
Table 6-1 Port 0 Operating Modes and Operations Needed for the Port 0 Buffer Registers
8-bit port mode
8-bit real-time
output port
mode
4-bit separate
real-time output
port mode
P00-P03: Port
P04-P07: Real-time
output port mode
P00-P03: Real-time
output port mode
P04-P07: Port
High-order 4 bits
Read operation Write operation
Operating mode
P0
P0L
P0H
P0
P0L
P0H
P0
P0L
P0H
P0
P0L
P0H
P0
P0L
P0H
Register
Low-order 4 bits High-order 4 bits Low-order 4 bits
Output latch
Buffer registerNote
Buffer registerNote
Output latch
Buffer registerNote
Buffer registerNote
Output latch
Buffer registerNote
Buffer registerNote
Output latch
Buffer registerNote
Buffer registerNote
Output latch
Buffer registerNote
Buffer registerNote
Output latch
Buffer register
Buffer register
Buffer register
Buffer register
Buffer register
Buffer register
Output latch
Buffer register
Buffer register
Output latch
Buffer register
Buffer register
Note The contents of the P0H are read to the high-order 4 bits, and the contents of the P0L are read to the low-order 4 bits.
Remark —: The output latches or buffer registers are not affected.
Example of setting data in the buffer registers 4-bit × 2-channel operationMOV P0L, #05H ; Sets 0101B in the P0L registerMOV P0H, #0C0H ; Sets 1100B in the P0H register 8-bit × 1-channel operationMOV P0L, #0C5H ; Sets 0101B in the P0L register and 1100B in the P0H registerOr,MOV P0H, #0C5HThe following three sources can determine the timing at which data is output to an output latch. Interrupt from 8-bit timer/counter 1 (INTC10 or INTC11) INTP0 external interrupt