void init_dog(void)
{
//SIM_COPC = SIM_COPC_COPT_MASK | SIM_COPC_COPW_MASK | SIM_COPC_COPCLKS_MASK;
//SIM_COPC = 0x2 | 0x0 | 0x1;
SIM_COPC = (uint32_t)((SIM_COPC & (uint32_t)~(uint32_t)(
SIM_COPC_COPT(0x01) |
SIM_COPC_COPW_MASK |
0xF0U
)) | (uint32_t)(
SIM_COPC_COPT(0x02) |
SIM_COPC_COPCLKS_MASK
));
}
I need to be 60 seconds do not feed dog system automatically resets, how should I define the watchdog timeout?
Hi
I believe the longest watchdog time that you can set on the KL02 is 1.024s:
SIM_COPC = 0x0000000c;
Regards
Mark