Fujitsu FR81S User Manual

Page of 2342
CHAPTER 5: CLOCK 
 
 
5. Operation 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : CLOCK 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
73 
5.4.4.   Setting 
Setting is shown. 
If the main timer operation is enabled (MTMCR.MTE=1), the count operation of the main timer starts. If the 
main timer operation is disabled (MTMCR.MTE=0), the count operation of the main timer stops and the main 
timer is cleared. If the main timer is cleared (MTMCR.MTC=1), the main timer is cleared.   
MTMCR.MTC=1 is read until clear. The period of interrupt can be set by MTMCR.MTS[3:0]. When 
MTMCR.MTIE=1, if MTMCR.MTIF=1, the main timer interrupt occurs. MTMCR.MTIF is cleared by 
writing "0". 
If the sub timer operation is enabled (STMCR.STE=1), the count operation of the sub timer starts. If the sub 
timer operation is disabled (STMCR.STE=0), the count operation of the sub timer stops and the sub timer is 
cleared.   
If the sub timer is cleared (STMCR.STC=1), the sub timer is cleared. STMCR.STC=1 is read until clear. The 
period of interrupt can be set by STMCR.STS[2:0]. When STMCR.STIE=1, if STMCR.STIF=1, the sub 
timer interrupt occurs. STMCR.STIF is cleared by writing "0". 
Note: 
For setting the period of the timer interrupt (MTS and STS), set the period more than PCLK × 5 clock. When 
the period of the timer interrupt is set to the extremely short time, the interrupt source may not be set.   
 
MB91520 Series
MN705-00010-1v0-E
234