07-14-2020 08:20 AM
I'm configuring Xilinx SWDT on Ultrascale+.
I am aiming to get a delay of 1.5ms.
But when I set the counter reset value to the lowest (1), I get a delay of 3 seconds!!
/* * Set the Prescaler value */ XWdtPs_SetControlValue(&Watchdog, XWDTPS_CLK_PRESCALE, XWDTPS_CCR_PSCALE_4096); /* * Set Counter Value */ XWdtPs_SetControlValue(&Watchdog, XWDTPS_COUNTER_RESET, 1); /* * Enable Reset Signal */ XWdtPs_EnableOutput(&Watchdog, XWDTPS_RESET_SIGNAL); /* * Start the watchdog */ XWdtPs_Start(&Watchdog);
I just edited the polling.c example.
Can someone please help me out?
08-25-2020 06:35 PM
Also, can you please help me out on how you're changing the watchdog counter value?
Like I want to set the counter so that I get a reset if my system is unresponsive for 1.5ms. I don't know how to convert it. Any info would be really helpful.