UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 330

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
10.6 ONE-SHOT TIMER FUNCTION
as a result of counting by timer register 2 (TM2/TM2W).
beforehand in the CR20, CR21/CR21W or CR21W and the timer register 2 (TM2/TM2W) value match.
on the initial count clock.
the TMC1 are set (1), and TM2/TM2W stops with the count at FFH/FFFFH.
When the OVF2 bit is cleared (0), the contents of TM2/TM2W become 0H and the up-count operation is restarted on the
next count clock.
immediately and the stopped state is entered. The TM2/TM2W count operation is not affected if the CE2 bit is set (1) by
software again when it is already set (1).
290
Timer/counter 2 has an operating mode in which it stops automatically when a full count value is reached (FFH/FFFFH)
As shown in Figure 10-14, the respective one-shot interrupt is generated when the value (0H to FFH/FFFFH) set
The one-shot timer operating mode is specified by setting (1) bit 5 (CMD2) of timer control register 1 (TMC1) by software.
The TM2/TM2W count operation is controlled by the CE2 bit of the TMC1 as with the basic operation.
When the CE2 bit is set (1) by software, the contents of TM2/TM2W are set to 0H and the up-count operation is started
When the contents of TM2/TM2W reach FFH/FFFFH (full count) as a result of the up-count operation, bit 6 (OVF2) of
The one-shot timer operation is started again from the count-stopped state by clearing (0) the OVF2 bit by software.
If the CE2 bit is cleared (0) by software during a TM2/TM2W count operation, the contents of TM2/TM2W are set to 0H
Interrupt Request
TM2/TM2W
Count Value
INTC21
OVF2
0H
Count Start
CE2
1
Figure 10-14 One-Shot Timer Operation
CHAPTER 10 TIMER/COUNTER 2
CR21/CR21W Value
FFH or FFFFH
OVF2
Clear
0

Related parts for UPD784026