upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 322

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
(2)
Caution:
Remarks: 1. The above flowchart illustrates an example of PWM mode operation.
322
Reload
When data is written to the TQnCCRm register during timer operation, it is compared with the
value of the 16-bit counter via the CCRm buffer register. The value of the TQnCCRm register can
be rewritten when TQnCE = 1.
So that the set values of the TQnCCRm register is compared with the value of the 16-bit counter
(the set values are reloaded to the CCRm buffer register), the value of the TQnCCR0 register must
be rewritten and then a value must be written to the TQnCCR1 register before the value of the
16-bit counter matches the value of the CCRm buffer register.
When the value of the CCRm buffer register matches the value of the 16-bit counter, the value of
the TQnCCRm register is reloaded to the CCRm buffer register.
Whether the next reload timing is made valid or not is controlled by writing to the TQnCCR1
register.
Writing the TQnCCR1 register includes an operation to enable reload. Therefore,
rewrite the TQnCCR1 register after rewriting other TQnCCR registers.
2. n = 0,1; m=0 to 3
Figure 8-16: Flowchart of Basic Operation for Reload
• TQnCCR0 matches 16-bit counter.
• Clear and start 16-bit counter.
• Value of TQnCCRm is reloaded to
Enable timer operation (TQnCE = 1)
CCRm buffer register.
Chapter 8 16-Bit Timer/Event Counter Q
→ Transfer value of TQnCCR0
to CCR0 buffer register
Rewrite TQnCCR0.
Rewrite TQnCCR2.
Rewrite TQnCCR3.
Rewrite TQnCCR1.
User’s Manual U16702EE3V2UD00
Initial setting
START
Reload is enabled
INTTQnCC0 occurs

Related parts for upd70f3402