English
Language : 

UPD784938 Datasheet, PDF (224/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 9 TIMER/EVENT COUNTER 0
(4) Timer output control register (TOC)
TOC is an 8-bit register that controls the active level of timer output and output enabling/disabling.
The operation of the timer output pins (TO0/TO1) by the timer/event counter 0 is controlled by the low-order 4 bits (the high-
order 4 bits control the operation of the timer output pins (TO2/TO3) by the timer/event counter 2).
TOC can be written to or read with an 8-bit manipulation instruction or bit manipulation instruction. The format of TOC is
shown in Figure 9-5.
RESET input clears TOC to 00H.
Figure 9-5. Timer Output Control Register (TOC) Format
7
6
5
4
3
2
1
0 Address After reset R/W
TOC ENTO3 ALV3 ENTO2 ALV2 ENTO1 ALV1 ENTO0 ALV0 0FF31H
00H
R/W
ALV0
TO0 Pin Active Level
Toggle output specifica-
tion or one-shot pulse
output specificaton
PWM/PPG
output
specification
0
Low level
High level
1
High level
Low level
ENTO0 TO0 Pin Operation Specification
0 ALV0 output
1 Pulse output enabled
ALV1
TO1 Pin Active Level
Toggle output specifica-
tion or one-shot pulse
output specificaton
PWM/PPG
output
specification
0
Low level
High level
1
High level
Low level
ENTO1 TO1 Pin Operation Specification
0 ALV1 output
1 Pulse output enabled
Countrol timer output pins (TO2/TO3) by timer/
event counter 2 (see Figure 11-5).
224
Preliminary User’s Manual U13987EJ1V0UM00