Fujitsu MB90480 Series Hardware Manual page 335

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

Setting method other than program example
● Method to set (rewrite) reload value
The reload value is set to the 16-bit reload register (TMRLR).
The following shows the calculation formula of the set value.
<Formula>
TMRLR register value = {Reload interval/count clock} -1
<Range that can be set>
TMRLR register value = 0 to FFFF
● Type of count clock and selection method
The count clock can be selected by the count clock selection bits (TMCSR.CSL[1:0]) from four
kinds of clocks as shown in the following table.
Count clock
φ/2
φ/8
φ/32
External event
● Method to enable/stop count operation of reload timer
Set by the timer counter enable bit (TMCSR: CNTE) .
To enable count operation of reload timer
Cannot restart in the stop state. Operation is enabled before or simultaneously starting it.
● Method to set mode (reload/one-shot) of reload timer
Set by the mode selection bit (TMCSR.RELD).
(65535)
H
Count clock
selection bits
CSL1
CSL0
0
0
0
1
1
0
1
1
Content of control
To stop reload timer
Operation mode
To set to one-shot
To set to reload
CHAPTER 14 16-BIT RELOAD TIMER
Example of count clock
At φ = 32MHz
At φ = 16MHz
62.5ns
125ns
250ns
500ns
1.0μs
2.0μs
Pulse width : 2/φmin
Operation enable bit (CNTE)
Mode selection bit (RELD)
At φ = 8MHz
250ns
1.0μs
4.0μs
Set to "0"
Set to "1"
Set to "0"
Set to "1"
313

Advertisement

Table of Contents
loading

Table of Contents