beautypg.com

2 operation in 8-bit timer counter mode – NEC PD754144 User Manual

Page 134

background image

CHAPTER 6 PERIPHERAL HARDWARE FUNCTION

134

User’s Manual U10676EJ3V0UM

6.4.2 Operation in 8-bit timer counter mode

In this mode, the timer counter is used as an 8-bit timer counter. In this case, the timer counter operates as an

8-bit programmable interval timer or counter.

(1) Register setting

In the 8-bit timer counter mode, the following four registers are used:

Timer counter mode register (TMn)

Timer counter control register (TC2)

Note

Timer counter count register (Tn)

Timer counter modulo register (TMODn)

Note

Channels 0 and 1 of the timer counter use the timer counter output enable flags (TOE0 and TOE1).

(a) Timer counter mode register (TMn)

In the 8-bit timer counter mode, set TMn as shown in Figure 6-31 (for the format of TMn, refer to Figures

6-26 to 6-28).

TMn is manipulated by an 8-bit manipulation instruction. Bit 3 is a timer start command bit which can

be manipulated in 1-bit units. This bit is automatically cleared to 0 when the timer starts operating.

TMn is cleared to 00H when the internal reset signal is asserted.

Remark n = 0 to 2

This manual is related to the following products: