EasyManua.ls Logo

Cypress FM4 Series - Page 278

Cypress FM4 Series
1102 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 7-2: VBAT Domain(A)
278 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
Not Linking with Clock Control Circuit but Waiting for Oscillation Stabilization
It is necessary to not link the 32 kHz oscillation circuit with the clock control circuit when always using the
backup power supply to keep the RTC operating. Nonetheless, the 32 kHz oscillation circuit and RTC in
the VBAT Domain do not have the oscillation stabilization wait function.
When the 32 kHz clock is used only for the RTC, a software timer can be used to count the oscillation
stabilization wait time. However, if the 32 kHz clock is also used in subrun mode, the clock oscillation
stabilization wait function becomes necessary.
In the above situation, follow the procedure below to enable the oscillation stabilization wait function only
at the start of oscillation.
Example of setting procedure
Enable the cooperative operation with the clock control circuit and start the oscillation.
After the oscillation stabilization wait time has elapsed, disable the cooperative operation with the clock
control circuit.
(1) Set the Register of VBAT I/O Port to use the 32 kHz oscillation circuit.
(2) Set an appropriate current value for the current that is to flow to the oscillation amplifier circuit.
(3) Set the oscillation boost time.
(4) Enable the cooperative operation with the clock control circuit. In addition, enable the oscillation.
(5) Wait for the stabilization of the 32 kHz oscillation.
(6) Disable the cooperative operation with the clock control circuit. (The oscillation keeps being enabled.)
32K_Init
(1) Write "01" to VBPFR[5:4].
End
(2) Write "Data" to CCB.
Write "Data" to CCS.
(3) Write "Data" to VB_CLKDIV.
Write "Data" to BOOST.
(4) Write "10" to WTOSCCNT[1:0].
(5) Wait for the 32 kHz oscillation to stabilize.
(6) Write "00" to WTOSCCNT[1:0].

Table of Contents

Related product manuals