Registers Controlling 8-Bit Timer/Event Counters 50 And 51 - NEC mPD78F0730 Preliminary User's Manual

8-bit single-chip microcontroller
Table of Contents

Advertisement

7.3 Registers Controlling 8-Bit Timer/Event Counters 50 and 51

The following four registers are used to control 8-bit timer/event counters 50 and 51.
• Timer clock selection register 5n (TCL5n)
• 8-bit timer mode control register 5n (TMC5n)
• Port mode register 1 (PM1) or port mode register 3 (PM3)
• Port register 1 (P1) or port register 3 (P3)
(1) Timer clock selection register 5n (TCL5n)
This register sets the count clock of 8-bit timer/event counter 5n and the valid edge of the TI5n pin input.
TCL5n can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets TCL5n to 00H.
Remark n = 0, 1
Address: FF6AH
Symbol
TCL50
Cautions 1. When rewriting TCL50 to other data, stop the timer operation beforehand.
Remark f
Downloaded from
Elcodis.com
electronic components distributor
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
Figure 7-5. Format of Timer Clock Selection Register 50 (TCL50)
After reset: 00H
R/W
7
6
0
0
TCL502
TCL501
TCL500
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
2. Be sure to clear bits 3 to 7 to 0.
: Peripheral hardware clock frequency
PRS
Preliminary User's Manual U19014EJ1V0UD
5
4
3
0
0
0
Count clock selection
f
PRS
12 MHz
0
TI50 pin falling edge
1
TI50 pin rising edge
0
f
12 MHz
PRS
1
f
/2
6 MHz
PRS
2
0
f
/2
3 MHz
PRS
6
1
f
/2
187.5 kHz
PRS
8
0
f
/2
46.88 kHz
PRS
13
1
f
/2
1.46 kHz
PRS
2
1
0
TCL502
TCL501
TCL500
=
f
=
PRS
16 MHz
16 MHz
8 MHz
4 MHz
250 kHz
62.5 kHz
1.95 kHz
181

Advertisement

Table of Contents
loading

Table of Contents