Fujitsu FR81S User Manual

Page of 2342
CHAPTER 29: RTC/WDT1 CALIBRATION 
 
5. Operation 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : RTC/WDT1 CALIBRATION 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
16 
5.1.  Real-Time Clock (RTC) Calibration 
This section shows real-time clock (RTC) calibration. 
The calibration procedure is as follows: 
1.  Setting CUTD0   
2.  Setting CUCR0.INTEN 
3.  Setting CUCR0.STRT 
4.  Loop waiting for interrupt 
5.  Occurrence of interrupt 
6.  Reading CUTR0 
7.  Comparison of CUTR0 and CUTD0 can be used to calculate the ratio between the main clock 
frequency and the sub clock frequency. 
8.  Setting values of the sub-second register in RTC using the value calculated at (7). 
MB91520 Series
MN705-00010-1v0-E
1085