User`s manual
RX62N Group, RX621 Group 4. Library Reference
4.2.19. Independent Watchdog Timer
1) R_IWDT_Set
Synopsis
Configure the Independent Watchdog operation.
Prototype
bool R_IWDT_Set(
uint16_t data
// Configuration selection
);
Description
Select the operation of the Independent Watchdog timer.
[data]
Configure the timer options. Use "|" to separate each value.
•
Counter selection
PDL_IWDT_TIMEOUT_1024 or
PDL_IWDT_TIMEOUT_4096 or
PDL_IWDT_TIMEOUT_8192 or
PDL_IWDT_TIMEOUT_16384
The number of cycles of the selected clock before the
reset occurs.
PDL_IWDT_CLOCK_OCO_1 or
PDL_IWDT_CLOCK_OCO_16 or
PDL_IWDT_CLOCK_OCO_32 or
PDL_IWDT_CLOCK_OCO_64 or
PDL_IWDT_CLOCK_OCO_128 or
PDL_IWDT_CLOCK_OCO_256
The selected clock.
The on-chip oscillator clock ÷ 1, 16, 32, 64, 128 or 256.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Independent Watchdog Timer
Reference
R_IWDT_Control
Remarks
•
R_IWDT_Control must be used to start the timer.
Program example
/* RPDL definitions */
#include "r_pdl_iwdt.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure the IWDT */
R_IWDT_Set(
PDL_IWDT_TIMEOUT_16384 | PDL_IWDT_CLOCK_OCO_256
);
}
R20UT0084EE0112 Rev.1.12 Page 4-166
July. 16, 2014