Operations Of Internal Clock Mode (Reload Mode) - Fujitsu MB90480 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 14 16-BIT RELOAD TIMER

14.4.2 Operations of Internal Clock Mode (Reload Mode)

The counter operates in sync with the internal count clock to count down the 16-bit
counter and generate an interrupt request to the CPU in case of counter underflow.
The counter also outputs a toggle waveform from the timer output pin.
Operations of internal clock mode (reload mode)
If, with count operation enabled (TMCSR: CNTE = 1), the software trigger bit (TMCSR: TRG) or
external trigger is set to start the timer, the value in the reload register (TMRLR) is loaded into
the counter, and counter operation starts.
If both the counter enabled bit and the software trigger bit is set to "1" at the same time,
counting will start as soon as counter operation is enabled. If the counter value causes an
underflow("0000
counter to continue with the counting operation. At this time, the underflow interrupt request flag
bit (UF) is set to "1", and if the interrupt request enable bit (INTE) is set to "1", an interrupt
request is generated. It outputs a toggle waveform that is inverted at every underflow via the
TOT pin.
❍ Software trigger operation
With the TRG bit of the timer control status register (TMCSR) set to "1", the counter is started.
Figure 14.4-4 shows the software trigger operation for a reload.
Figure 14.4-4 Count operation in reload mode (software trigger operation)
Count clock
Counter
Data load signal
UF bit
CNTE bit
TRG bit
TOT pin
T : Machine cycle * : The time from trigger input to loading the reload data is 1T.
306
" → "FFFF
"), the value in the 16-bit reload register (TMRLR) is loaded into the
H
H
Reload
Reload
-1
0000
H
data
data
*
T
Reload
-1
-1
0000
H
data
Reload
-1
0000
H
data

Advertisement

Table of Contents
loading

Table of Contents