Internal Clock And External Event Counter Operations Of 16-Bit Reload Timer - Fujitsu MB96300 series Hardware Manual

F2mc-16fx 16-bit
Hide thumbs Also See for MB96300 series:
Table of Contents

Advertisement

MB96300 Super Series Hardware Manual
15.3
Internal Clock and External Event Counter Operations of 16-
bit Reload Timer
In internal clock mode, the peripheral clock CLKP1 with different divider settings can be
selected as the clock source for operating the Reload Timer. The external input pin TINn
can be selected as either a trigger input or gate input by a register setting.
In event counter mode, the TINn pin is used as an external event input pin. Each active
edge on this pin (rising, falling or both) decrements the counter.
When FSEL = 0, then each second event is counted.
■ Internal clock operation of 16-bit Reload Timer
Writing "1" to both the CNTE and TRG bits in the control status register enables and starts counting at the
same time. Using the TRG bit as a trigger input is always available when the timer is enabled (CNTE = "1"),
regardless of the operation mode.
Figure 15.3-1 "Activation and operation of 16-bit Reload Timer counter" shows counter activation and
counter operation.
Figure 15.3-1 Activation and operation of 16-bit Reload Timer counter
Count clock
Counter
Data load
CNTE (bit)
TRG (bit)
■ Input pin functions of 16-bit Reload Timer (in internal clock mode)
The TINn pin can be used as either a trigger input or a gate input when an internal clock is selected as the
clock source. When used as a trigger input, an active edge causes the timer to load the reload register
contents and resets the internal prescaler. Then, count operation starts. Minimum required pulse width of TIN
is 2T + 200ns (T: cycle of peripheral clock CLKP1, 200ns is the minimum pulse length non filtered by the
input noise filter).
Figure 15.3-2 "Trigger input operation of 16-bit Reload Timer" shows the operation of trigger input.
CHAPTER 15 16-BIT RELOAD TIMER (WITH EVENT COUNT
Reload data
-1
-1
-1
403

Advertisement

Table of Contents
loading

Table of Contents