Operation In 8-Bit Timer Counter Mode - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

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)
• 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
134
CHAPTER 6 PERIPHERAL HARDWARE FUNCTION
Note
User's Manual U10676EJ3V0UM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents