
R01UH0336EJ0102 Rev.1.02
Page 413 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
(1)
Initial settings
• To enable simultaneous rewrite in channel m, set TAUBnRDE.TAUBnRDEm
= 1
• To select the type of simultaneous rewrite, set TAUBnRDM.TAUBnRDMm
and TAUBnRDS.TAUBnRDSm according to the values listed in Table 13-8,
Simultaneous Rewrite Methods and Trigger Timing
• To select which upper channel is monitored for simultaneous rewrite
triggers, use TAUBnRDC.TAUBnRDCm (prerequisite:
TAUBnRDS.TAUBnRDSm is set in upper channel.)
(2)
Start counter and count operation
• To start all the TAUBnCNTm counters of the channel group, set the
corresponding TAUBnTS.TAUBnTSm bits to1. The values of
TAUBnTOL.TAUBnTOLm and the data registers (TAUBnCDRm) are loaded
into the corresponding TAUBnTOL.TAUBnTOLm buffer
(TAUBnTOL.TAUBnTOLm buf) and data buffer registers (TAUBnCDRm buf)
and the counters start.
• Setting the reload data trigger bit (TAUBnRDT.TAUBnRDTm) to 1 sets the
reload flag (TAUBnRSF.TAUBnRSFm) to 1, enabling simultaneous rewrite.
TAUBnRSF.TAUBnRSFm remains set to 1 until simultaneous rewrite is
completed.
• When the specified trigger for simultaneous rewrite is detected, the
TAUBnRSF.TAUBnRSFm bit is checked to see if simultaneous rewrite is
enabled (TAUBnRSF.TAUBnRSFm = 1). If it is, simultaneous rewrite is
carried out. Otherwise the simultaneous rewrite is not carried out and waits
for the next trigger detection.
(3)
Simultaneous rewrite
• When the simultaneous rewrite trigger is detected and simultaneous rewrite
is enabled (TAUBnRSF.TAUBnRSFm = 1), the current values of the data
registers are copied to their buffers. These values are then loaded into the
corresponding counters and are applied the next time the counter starts or
restarts.
• The TAUBnRSF.TAUBnRSFm bit is set to 0, and the system awaits the next
simultaneous rewrite trigger.