8-Bit Timer Counter Control Register - NEC mPD17120 Subseries User Manual

4-bit single-chip microcontroller
Table of Contents

Advertisement

13.1.2 8-bit Timer Counter Control Register

There are two types of 8-bit timer counter control registers; timer mode register and timer carry output control
mode register.
Figures 13-2 and 13-3 show the configuration of 8-bit timer counter control registers.
RF: 11H
Bit 3
TMEN
Read/write
1
Initial value when reset
CHAPTER 13 PERIPHERAL HARDWARE
Figure 13-2. Timer Mode Register
Bit 2
Bit 1
Bit 0
TMRES
TMCK1
TMCK0
R/W
0
0
0
TMCK1
TMRES
Remark TMRES is automatically cleared (0) when set (1).
Remark TMEN can be used as the status flag which detects
Read=R, write=W
TMCK0
Source Clock Selection
0
0
fx /256
0
1
fx /32
1
0
fx /2048
1
1
External clock from INT pin
Timer Reset
0
No influence to timer
1
Reset count register (TMC) and IRQTM
When reading it, 0 is always read.
TMEN
Timer Start Instruction
0
Stop timer counting.
1
Start timer counting.
the count state of the timer (0 : count stop, 1 : counting).
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd17120Mpd17121Mpd17132Mpd17133Mpd17p132Mpd17p133

Table of Contents