- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
condition: PSoC4000S
We want to get the current WDT counter value during running WDT.
If the counting up and reading current WDT counter at the same time, is CySysWdtGetCount API value corrupted?
CY_ISR(wdt_interrupt)
{
/* Clear the watchdog interrupt */
CySysWdtClearInterrupt();
/* WDT match value is updated in order to obtain periodic interrupts. */
CySysWdtSetMatch(CySysWdtGetCount() + WDT_MATCH_VALUE);
/* Clear interrupt status in an interrupt controller */
wdt_isr_ClearPending();
/* User ISR Code*/
....
}
Best regards,
Yocchi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CySysWdtGetCount() API reads just the register of WDT_COUNTER.
And, it is not corrupted in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CySysWdtGetCount() API reads just the register of WDT_COUNTER.
And, it is not corrupted in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, TakashiM_61-san,
Thank you very much.
Best regards,
Yocchi