Fujitsu FR81S User Manual

Page of 2342
CHAPTER 21: 32-BIT FREE-RUN TIMER 
 
 
7. Q&A 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER
 : 32-BIT FREE-RUN TIMER 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
38 
7.4.  How to Clear the Free-run Timer? 
This section shows how to clear the free-run timer. 
You can clear the free-run timer using the following method. 
 
Set using the clear bits (TCCSn.SCLR [n=3 to 5]). 
Operation 
Clear bit (SCLR) 
To clear the free-run timer 
Write "1". 
 
Perform a reset. 
When a reset is performed (RSTX pin input, watchdog reset, software reset, etc.), the free-run timer 
will be cleared to its initial state. 
 
Write "0000_0000
H
" while the free-run timer is inactive. 
If "0000_0000
H
" is written while the free-run timer is inactive, the count value will be "0000_0000
H
". 
 
Overflow of the free-run timer will result in the count value returning to "0000_0000
H
". 
 
It will be cleared if there is a match with the compare clear register. 
 
MB91520 Series
MN705-00010-1v0-E
833