Registers Controlling 8-Bit Timer/Event Counters 00 And 01; Format Of 8-Bit Timer Mode Control Register 00 - NEC switch User Manual

Nec user's manua switch
Table of Contents

Advertisement

6.3 Registers Controlling 8-Bit Timer/Event Counters 00 and 01

The following two types of registers are used to control 8-bit timer/event counters 00 and 01.
• 8-bit timer mode control registers 00 and 01 (TMC00 and TMC01)
• Port mode register 2 (PM2)
(1) 8-bit timer mode control register 00 (TMC00)
This register enables/stops operation of 8-bit timer counter 00 (TM00) and sets the counter clock of 8-bit timer
00.
TMC00 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets TMC00 to 00H.
Figure 6-3. Format of 8-Bit Timer Mode Control Register 00
<7>
6
5
Symbol
TMC00
TCE00
0
0
TCE00
0
Operation disabled (TM00 cleared to 0)
1
Operation enabled
TCL000
6
f
/2
(93.8 kHz)
0
X
9
0
f
/2
(11.7 kHz)
X
Caution
Be sure to set the count clock after the timer operation is stopped (TCE00 = 0).
Refer to 6.4 Operation of 8-Bit Timer/Event Counters 00 and 01 for details.
Remarks 1. f
: System clock oscillation frequency
X
2. The parenthesized values apply to operation at f
82
CHAPTER 6
8-BIT TIMER/EVENT COUNTERS 00 AND 01
4
3
2
1
0
0
0
TCL000
8-bit timer counter 00 operation control
8-bit timer 00 count clock selection
User's Manual U12978EJ3V0UD
0
Address
After reset
0
FF53H
00H
= 6.0 MHz.
X
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents