Usage; Cautions - NEC V850ES/KE1+ User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

12.5 Usage

(1) Disable real-time output.
Clear the RTPC0.RTPOE0 bit to 0.
(2) Perform initialization as follows.
• Specify the real-time output port mode or port mode in 1-bit units.
Set the RTPM0 register.
• Channel configuration: Select the trigger and valid edge.
Set the RTPC0.EXTR0, RTPC0.BYTE0, and RTPC0.RTPEG0 bits.
• Set the initial values to the RTBH0 and RTBL0 registers
(3) Enable real-time output.
Set the RTPOE0 bit to 1.
(4) Set the next output value to the RTBH0 and RTBL0 registers by the time the selected transfer trigger is
Note 2
generated
.
(5) Set the next real-time output value to the RTBH0 and RTBL0 registers through interrupt servicing
corresponding to the selected trigger.
Notes 1. If write to the RTBH0 and RTBL0 registers is performed when the RTPOE0 bit = 0, that value is
transferred to real-time output latches 0H and 0L, respectively.
2. Even if write is performed to the RTBH0 and RTBL0 registers when the RTPOE0 bit = 1, data transfer
to real-time output latches 0H and 0L is not performed.
Caution To reflect the real-time output signals (RTPOUT00 to RTPOUT05) to the pins, set the real-time
output ports (RTP00 to RTP05) with the PMC5 and PFC5 registers.

12.6 Cautions

(1) Prevent the following conflicts by software.
• Conflict between real-time output disable/enable switching (RTPOE0 bit) and selected real-time output
trigger
• Conflict between write to the RTBH0 and RTBL0 registers in the real-time output enabled status and the
selected real-time output trigger.
(2) Before performing initialization, disable real-time output (RTPOE0 bit = 0).
(3) Once real-time output has been disabled (RTPOE0 bit = 0), be sure to initialize the RTBH0 and RTBL0
registers before enabling real-time output again (RTPOE0 bit = 0 → 1).
362
CHAPTER 12 REAL-TIME OUTPUT FUNCTION (RTO)
User's Manual U16896EJ2V0UD
Note 1
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents