Sony CXD5602 User Manual page 210

Table of Contents

Advertisement

4. Write "1" on WrIntCtrl.Busy register.
Receiving PMIC External Alarm from PMIC_INT, synchronization between RTC in the PMIC and RTC in
the CXD5602 will be completed on the time (Y[46:6]-1) designated in 2 above. Once synchronization has
been completed, WrIntCtrl.Busy becomes "0".
WrRegPostCnt value is reflected on PostCounter, and WrRegPreCnt value is reflected on PreCounter.
By using interrupt CntUpdateFlg notifying that RTC Counter has been updated, you can check whether the
synchronization has been completed or not.
5. Clear PMIC External Alarm Flag.
Synchronizing CXD5247 with CXD5602
The following is the synchronization sequence when CXD5602 (hereinafter called LSI) is combined with
CXD5247 (hereinafter called PMIC).
1. Read RTC Counter value of the LSI by using Rt(Post/Pre)Cnt.
Set the time when Interrupt is output to PMIC by using RTCx_ExtAlm (hereinafter called External Output
Alarm).
For alarm time setting, refer to "Alarm Output Setting", and for Output Selection of External Output Alarm,
refer to "RTC0_RTC_CTL (0x04100730)."
If you want to synchronize the value of CXD5602 with CXD5247 when the value of
{PostCounter[31:0],PreCounter[14:0]} has reached X[46:0], the time to output External Output Alarm to
CXD5247 will be set as follows:
For
example,
{SetAlmPostCnt2[31:0],SetAlmPreCnt2[14:0]} will be upper 41 bits = X[46:6]-1, and lower 6 bits = 0x3F.
X must be future time value compared with RTC Counter value read out in 1 above.
Note:
The followings are settings of External Output Alarm synchronized with X[46:0]=0xFFFC00
Time to output
Time to output: [46:6]=X[46:6]-1=0x3FFF-0x1=0x3FFE
Time to output: [5:0]= 0x3F
Setting of time to output External Output Alarm (when Normal Alarm0 is used)
SetAlmPostCnt0[31:0]= Time to output [46:15]=0x1F
SetAlmPreCnt0[14:0]= Time to output [14:0]=0x7FBF
2. On PMIC, set the time X[46:6]+3 , which the PMIC is synchronized with the RTC of the LSI.
At the set time described in 2 above, RTC inside the LSI outputs External Alarm Flag to PMIC, and
synchronization of PMIC with the LSI is completed.
when
EXTALM_SEL
-210/1010-
is
set
as
2,
CXD5602 User Manual
the
setting
value
of

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents