UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 339

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
10.8.1 Basic Operation
be varied at a timing in accordance with the settings of MOD0, MOD1 and CLR21 bits of capture/compare control register
2 (CRC2).
The level is high when ALVn is 0, and low when 1.
10.8.2 Toggle Output
value coincides with the timer register 2 (TM2) value. The output level of timer output (TO2) is inverted by a match between
CR20 and TM2, and the output level of timer output (TO3) is inverted by a match between CR21 and TM2.
n = 0, 1) is output.
Setting (1) the ENTOn (n = 2, 3) bit of the timer output control register (TOC) enables timer output (TOn: n = 2, 3) to
Clearing (0) ENTOn sets the TOn to a fixed level. The fixed level is determined by the ALVn (n = 2/3) bit of the TOC.
Toggle output is an operating mode in which the output level is inverted each time the compare register (CR20/CR21)
When timer/counter 2 is stopped by clearing (0) the CE2 bit of the timer control register 1 (TMC1), the inactive level (ALVn:
TO2 Output
TO3 Output
TM2
Count Value
(ALV2 = 1)
(ALV3 = 0)
ENTO0
ENTO3
0H
Instruction Execution
FFH
CR20 Value
CR21 Value
Figure 10-21 Toggle Output Operation
FFH
CHAPTER 10 TIMER/COUNTER 2
CR20 Value
Instruction
Execution
CR21 Value
FFH
CR20 Value
Instruction Execution
CR21 Value
FFH
CR20 Value
Instruction Execution
CR21 Value
FFH
299

Related parts for UPD784026