Fujitsu FR81S User Manual

Page of 2342
CHAPTER 24: 16-BIT FREE-RUN TIMER 
 
 
2. Features 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : 16-BIT FREE-RUN TIMER 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
2.  Features 
This section is explains the features of 16-bit free-run timers. 
 
Function of the Free-run Timer Simultaneous Activation 
 
 
Of the three 16-bit free-run timers, the selected 16-bit free-run timers can be activated or cleared 
simultaneously.   
 
It simultaneously controls the timer clear bit (SCLR) and the timer enable bit (STOP) of the timer state 
register (TCCS) for each 16-bit free-run timer that enables the free-run timer simultaneous activation.   
 
If the timers are not activated or cleared simultaneously, it is possible to activate or clear each 16-bit 
free-run timer individually by setting the timer enable bit (STOP) and timer clear bit (SCLR) of the timer 
state register (TCCS).   
  Function of the 16-bit Free-run Timer 
 
The 16-bit free-run timer consists of 16-bit up/down counter, control register, 16-bit compare clear 
register (with buffer register), and prescaler.   
 
You can select one of the nine counter operating clocks (φ, φ/2, φ/4, φ/8, φ/16, φ/32, φ/64, φ/128, φ/256). 
(φ: peripheral clock) 
 
A compare clear interrupt will be generated when a compare clear register matches the 16-bit free-run 
timer upon comparison of the two. 0 detection interrupt will be generated while the 16-bit free-run timer 
is detecting the count value "0".   
 
The compare clear register comes with selectable buffer registers (Data written to this buffer register 
will be transferred to the compare clear register). Once data is written to the buffer after the 16-bit 
free-run timer has stopped, the transfer will be executed immediately. If the timer value "0" is detected 
while the 16-bit free-run timer is active, data will be transferred from the buffer.   
 
If there is a compare match between reset and software clear, or compare clear register, the counter value 
will be reset to "0000
H
".   
 
This counter output value can be used as a clock count of the output compare, the input capture and the 
A/D activation compare.   
  Function of the Free-run Timer Selector 
 
The free-run timer selection register allows you to select the assignment of the free-run timer from 
among the 16-bit output capture, the 16-bit input capture, and the A/D activation compare.   
 
 
MB91520 Series
MN705-00010-1v0-E
911