NEC PD754144 User Manual page 126

4-bit single-chip microcontrollers
Table of Contents

Advertisement

(1) Timer counter mode registers (TM0, TM1, TM2)
A timer counter mode register (TMn) is an 8-bit register that controls the corresponding timer counter. Figures
6-26 to 6-28 show the formats of the various mode registers.
The timer counter mode register is set by an 8-bit memory manipulation instruction.
Bit 3 of this register is a timer start bit and can be manipulated in 1-bit units independently of the other bits.
This bit is automatically reset to "0" when the timer starts operating.
All the bits of the timer counter mode register are cleared to "0" when the RESET signal is asserted.
Examples 1.
To start timer in interval timer mode of CP = 5.86 kHz (at f
SEL
MOV
MOV
2.
To restart timer according to setting of timer counter mode register
SEL
SET1
Note CP = 4.10 kHz when the µ PD754244 is operating at fx = 4.19 MHz.
Remark n = 0 to 2
126
CHAPTER 6 PERIPHERAL HARDWARE FUNCTION
MB15
; or CLR1 MBE
XA, #01001100B
; TMn ← 4CH
TMn, XA
MB15
; or CLR1 MBE
; TMn.bit3 ← 1
TMn.3
CP = 977 kHz when the µ PD754144 is operating at f
User's Manual U10676EJ3V0UM
Note
= 6.0 MHz)
X
= 1.0 MHz.
CC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents