144
CHAPTER 6 REAL-TIME OUTPUT FUNCTIONS
User’s Manual U12697EJ3V0UM
6.4 Operation
When real-time output is enabled by bit 7 (RTPOE) = 1 in the real-time output port control register, data in the
real-time output buffer register (RTBH, RTBL) are transferred to the output latch synchronized to the generation of
the selected transfer trigger (set by EXTR and BYTE
Note
). Based on the setting of the real-time output port mode
register (RTPM), only the transferred data for the bits specified in the real-time output port are output from bits RTP0
to RTP7. A port set in the port mode by RTPM can be used as a general-purpose I/O port.
When the real-time output operation is disabled by RTPOE = 0, RTP0 to RTP7 output zero regardless of the RTPM
setting.
Note
EXTR: Bit 4 of the real-time output port control register (RTPC)
BYTE: Bit 5 of the real-time output port control register (RTPC)
Figure 6-5. Example of Operation Timing of Real-Time Output Port (EXTR = 0, BYTE = 0)
INTTM2
INTTM1
CPU operation
A
B
A
B
A
B
A
B
RTBH
D01
D02
D03
D04
RTBL
D11
D01
D02
D11
D12
D13
D14
D03
D04
D12
D13
D14
Output latch
P127 to P124
Output latch
P123 to P120
A: Software processing by INTTM2 (RTBH write)
B: Software processing by INTTM1 (RTBL write)