Sony CXD5602 User Manual page 208

Table of Contents

Advertisement

3.6.5.3 Control Flow
3.6.5.3.1
Update of RTC Counter Value
This function is used when you reflect values, which are set by registers, on RTC Counter value
(PostCounter[31:0], PreCounter[14:0]). The sequence is as follows.
1. On WrRegPostCnt register, write a value that you want to reflect on PostCounter.
2. On WrRegPreCnt register, write a value that you want to reflect on PreCounter.
3. Write "1" on WrRegReq.BusyA register.
You can check whether RTC Counter value has been updated in the following two ways.
performing polling to WrRegReq.BusyA until it returns to "0"
receiving interrupt request CntUpdateFlg which means that RTC Counter has been updated
3.6.5.3.2
Correction of RTC Counter Value
This function is used to correct RTC Counter values. You can set corrected RTC Counter values by providing
current RTC Counter value with relative values. The sequence is as follows.
1. Write a correction value on OffsetVal register.
Correction values must be written with two's complements.
2. Write "1" on OffsetReq.BusyA register.
You can check whether RTC Counter value has been corrected in the following two ways.
performing polling to OffsetReq.BusyA until it returns to "0".
receiving interrupt request CntUpdateFlg which means that RTC Counter has been updated
-208/1010-
CXD5602 User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents