Format Of Timer Output Control Register (Toc) - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

(3) Timer output control register (TOC)
The TOC register is an 8-bit register for specifying the active level of timer output and for enabling/disabling
timer output.
The lower 4 bits control the timer output operation (on the TO0 and TO1 pins) of the 16-bit timer/counter. (The
higher 4 bits control the timer output operation (on the TO2 and TO3 pins) of 8-bit timer/counter 2.)
The TOC register allows only write operation using an 8-bit manipulation instruction. Fig. 7-5 shows the
format of the TOC register.
When the RESET signal is applied, the TOC register is cleared to 00H.
7
TOC
ENTO3
ALV3
Fig. 7-5 Format of Timer Output Control Register (TOC)
6
5
4
3
ENTO2
ALV2
ENTO1
Chapter 7 Timer/Counter Units
1
2
0
ALV1
ENTO0
ALV0
Active level for TO0 pin
ALV0
When toggle output
is specified
0
Low level
1
High level
ENTO0
TO0 pin operation specification
Outputs ALV0
0
Enables pulse output
1
Active level for pin TO1
ALV1
When toggle output
is specified
Low level
0
1
High level
ENTO1
TO1 pin operation specification
0
Outputs ALV1
Enables pulse output
1
These bits control timer output operation(output of pins
TO2 and TO3) by the 8-bit timer/counter 2 (see Fig. 7-70).
When PWM/PPG
output is specified
High level
Low level
When PWM/PPG
output is specified
High level
Low level
7
113

Advertisement

Table of Contents
loading

Table of Contents