datasheetbank_Logo
전자부품 반도체 검색엔진( 무료 PDF 다운로드 ) - 데이터시트뱅크

AN668 데이터 시트보기 (PDF) - Silicon Laboratories

부품명
상세내역
일치하는 목록
AN668 Datasheet PDF : 10 Pages
1 2 3 4 5 6 7 8 9 10
AN668
5.2.4. gRtc0.c
The gRtc0.c file includes the first-level interrupt handlers for the RTC0 oscillator fail (RTC0FAIL_IRQHandler())
and Alarm 0 (RTC0ALRM_IRQHandler()). These first-level interrupt handlers just call the second-level handlers
and must use the handler names defined in sim3u1xx.h, the device-specific header file.
In addition to the first-level interrupt handlers, gRtc0.c has two functions: gRtc_enter_off_config() and
gRtc0_enter_default_config().
The gRtc_enter_off_config() function disables the Alarm 0 interrupt in the RTC0 module, clears any pending
oscillator fail or Alarm 0 interrupts in the NVIC, and disables these two interrupts in the NVIC. In addition, the
function stops the RTC0 timer, disables the RTC0 module, and disables the APB clock to RTC0.
The gRtc0_enter_default_config() function:
Enables the APB clock to the RTC0 module.
Enables the RTC module and configures it for crystal oscillator mode.
Sets the initial Alarm 0 value for 10 ms.
Clears any pending interrupts and enables the interrupts in the NVIC.
Enables the Alarm 0 interrupt in the RTC0 module.
Enables the RTC0 output.
Figure 11 shows the dependencies for gRtc0.c.
gRtc0.c
Blinky
myRtc0.c
si32Hal
SI32_CLKCTRL_A_Type.c
SI32_RTC_A_Type.c
core_cm3.h
Figure 11. gRtc0.c Dependencies
Rev. 0.1
9

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]