
CHAPTER 10 REAL-TIME OUTPUT FUNCTION (RTO)
User
’
s Manual U15862EJ3V0UD
397
10.5 Usage
(1) Disable real-time output.
Clear bit 7 (RTPOEn) of real-time output port control register n (RTPCn) to 0.
(2) Perform initialization as follows.
Specify the real-time output port mode or port mode in 1-bit units.
Set real-time output port mode register n (RTPMn).
Channel configuration: Select the trigger and valid edge.
Set bits 4 to 6 (EXTRn, BYTEn, and RTPEGn) of the RTPCn register.
Set the initial values to real-time output buffer register n (RTBHn, RTBLn)
Note 1
.
(3) Enable real-time output.
Set RTPOEn = 1.
(4) Set the next output value to the RTBHn and RTBLn registers by the time the selected transfer trigger is
generated
Note 2
.
(5) Set the next real-time output value to the RTBHn and RTBLn registers through interrupt servicing
corresponding to the selected trigger.
Notes 1.
If write to the RTBHn and RTBLn registers is performed when RTPOEn = 0, that value is transferred to
real-time output latches nH and nL, respectively.
2.
Even if write is performed to the RTBHn and RTBLn registers when RTPOEn = 1, data transfer to real-
time output latches nH and nL is not performed.
Caution
To reflect the real-time output signals (RTPOUTn0 to RTPOUTn5) to the pins, set the real-time
output ports (RTPn0 to RTPn5) with the PMC and PFC registers.
10.6 Cautions
(1) Prevent the following conflicts by software.
Conflict between real-time output disable/enable switching (RTPOEn bit) and selected real-time output trigger
Conflict between write to the RTBHn and RTBLn registers in the real-time output enabled status and the
selected real-time output trigger.
(2) Before performing initialization, disable real-time output (RTPOEn = 0).
(3) Once real-time output has been disabled (RTPOEn = 0), be sure to initialize the real-time output buffer
registers (RTBHn and RTBLn) before enabling real-time output again (RTPOEn = 0
→
1).