beautypg.com

Chapter 7 timer/counter units – NEC PD78214 User Manual

Page 142

background image

113

Chapter 7 Timer/Counter Units

7

(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.

Fig. 7-5 Format of Timer Output Control Register (TOC)

7

6

5

4

3

2

1

0

TOC

ENTO3

ALV3

ENTO2

ALV2

ENTO1

ENTO0

ALV1

ALV0

ALV0

ALV1

ENTO1

0

0

0

1

1

1

Active level for TO0 pin

When toggle output
is specified

When toggle output
is specified

When PWM/PPG
output is specified

Low level

High level

Low level

High level

Active level for pin TO1

ENTO0

0

1

TO0 pin operation specification

Outputs ALV0

Enables pulse output

When PWM/PPG
output is specified

TO1 pin operation specification

Low level

Low level

High level

High level

Enables pulse output

Outputs ALV1

These bits control timer output operation(output of pins
TO2 and TO3) by the 8-bit timer/counter 2 (see Fig. 7-70).

This manual is related to the following products: