CHAPTER 9 8-BIT TIMERS 30 AND 40
User’s Manual U14826EJ5V0UD
89
(1) 8-bit timer mode control register 30 (TMC30)
TMC30 is the register that controls the setting of the timer 30 count clock and the setting of the operating
mode.
This register is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input clears this register to 00H.
Figure 9-4. Format of 8-Bit Timer Mode Control Register 30
Symbol
<7>
6 5 4 3 2 1 0
Address
After
reset
R/W
TMC30 TCE30
0
TCL302 TCL301 TCL300
TMD301
TMD300
0
FF52H 00H
R/W
TCE30
TM30 count operation control
Note 1
0
Clears TM30 count value and halt operation
1
Starts count operation
Selection of timer 30 count clock
TCL302 TCL301 TCL300
When operating at f
X
= 5.0 MHz
When operating at f
CC
= 1.0 MHz
0 0 0
f
X
/2
6
(78.1 kHz)
f
CC
/2
6
(15.6 kHz)
0 0 1
f
X
/2
8
(19.5 kHz)
f
CC
/2
8
(3.91 kHz)
0
1
0
Timer 40 match signal
0
1
1
Carrier clock generated by timer 40
Other than above
Setting prohibited
TMD301
TMD300
TMD401
TMD400
Selection
of timer 30, timer 40 operating mode
Note 2
0 0 0 0
Discrete
mode
0
1
0
1
Cascade connection mode
0
0
1
1
Carrier generator mode
0
0
1
0
PWM output mode
Other than above
Setting prohibited
Notes 1.
In cascade connection mode, since count operations are controlled by TCE40 (bit 7 of TMC40),
TCE30 is ignored even if it is set.
2.
The selection of operating mode is made by combining the two registers TMC30 and TMC40.
Cautions 1. Be sure to clear bits 0 and 6 to 0.
2. In cascade connection mode, timer 40 output signal is forcibly selected for count clock.
Remarks 1.
f
X
: System clock oscillation frequency (ceramic/crystal oscillation)
2.
f
CC
: System clock oscillation frequency (RC oscillation)
Содержание PD789860
Страница 2: ...User s Manual U14826EJ5V0UD 2 MEMO ...