Event Count Mode - Fujitsu MB90335 Series Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

MB90335 Series
14.3.4

Event Count Mode

When the input edge from the TIN0 pin is counted, the 16-bit counter is counted down
and the counter underflow occurs, the CPU interrupt request is generated. In addition,
the toggle waveform or the rectangular waveform can be output from the TOT0 pin.
■ Event Count Mode
When the count operation is permitted (CNTE = 1 for TMCSR0) and the counter is started (TRG = 1 for
TMCSR0), the 16-bit reload register (TMRLR0) value is loaded to the counter. Every time when the valid
edge (rising edge, falling edge, or both edge can be selected) of pulses (external count clock) input to the
TIN0 pin is detected, the count down is performed. When the count permission bit and the software trigger
bit are simultaneously set to "1", the count is started at the same time of the count permission.
Operation of Reload mode
When the counter value underflows ("0000
loaded to the counter and the count operation is continued. At this moment, if the underflow interrupt
request flag bit (UF) is set to "1" and the interrupt request permission bit (INTE of TMCSR0) is "1", the
interrupt request is generated. In addition, the toggle waveform which reverses at every underflow can be
output from the TOT0 pin.
Figure 14.3-10 shows Count operation (event count mode) at reload mode.
Figure 14.3-10 Count Operation (Event Count Mode) at Reload Mode
Count clock
Counter
Data load
signal
UF bit
CNTE bit
TRG bit
T*
TOT0 pin
T: Machine cycle
*: It takes 1T time from trigger input to loading of reload data.
Note:
Use the 4/φ or more "H" width and "L" width of the clock to be input to the TIN0 pin.
CM44-10137-6E
−1
Reload
0000
Reload
H
data
data
FUJITSU MICROELECTRONICS LIMITED
CHAPTER 14 16-BIT RELOAD TIMER
14.3 Movement of 16-bit Reload Timer
" → "FFFF
"), the 16-bit reload register (TMRLR0) value is
H
H
−1
−1
0000
Reload
H
data
−1
0000
Reload
H
data
337

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents