Reset by Oscillation stop detection interrup.
[GUI setting example]
Oscillation stop detector |
Used | |||
OSCSTOPDETECTOR |
Used | |||
Oscillation stop detector operation setting |
Used | |||
Oscillation stop judgement time |
100(ms) (TYP.) (Actual value:100) | |||
Generate an interrupt when oscillation stop is detected (INTOSDC) |
Used | |||
Priority |
Low |
Watchdog timer |
||||
WDT |
Used | |||
Watchdog timer operationsetting |
Used | |||
Operation in HALT/STOP/SNOOZE mode setting |
Enaled | |||
Overflow time |
2^16/fIL 4369.07(ms) | |||
Window open period |
100(%) | |||
Enable interval interruptwhen 75% + 1/2fIL of overflow time (INTWDTI) |
Used | |||
Priority |
Low |
[API setting example]
r_main.c
void main(void)
{
R_MAIN_UserInit();
/* Start user code. Do not edit comment generated here */
/* Start OSDC module operation */
R_OSDC_Start();
while (1U)
{
/* Restart the watchdog timer */
R_WDT_Restart();
}
/* End user code. Do not edit comment generated here */
}
r_cg_osdc_user.c
static void __near r_osdc_interrupt(void)
{
/* Start user code. Do not edit comment generated here */
/* Stop OSDC module operation */
R_OSDC_Stop();
/* End user code. Do not edit comment generated here */
}