Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

AURIX™ MCU: Calculate the timeout value of the CPU0 watchdog timer (WDT) - KBA235916

AURIX™ MCU: Calculate the timeout value of the CPU0 watchdog timer (WDT) - KBA235916

BinduPriya_G
Community Manager
Community Manager 100 sign-ins First comment on blog 250 replies posted
Community Manager

AURIX™ MCU: Calculate the timeout value of the CPU0 watchdog timer (WDT) - KBA235916

Version: **

The timeout value of the CPU0 WDT can be calculated using the following formula:
timeout = ((2^16 - STARTVALUE) * Divider) / fSPB

Where:

  • fSPB is the frequency of the Serial Peripheral Bus
  • STARTVALUE represents the fixed value 0xFFFC for calculating the timeout period and the user-programmable reload value REL (bitfield of register WDT0CON0) for calculating the normal period.
  • Divider represents the user-programmable source clock division, which depending on the values of the IR0 and IR1 bitfields of the WDT0CON1 register, can get the following values:
  • Definition of bitfields

IR0

IR1

Divider value

0

0

16384

0

1

64

1

0

256

1

1

Reserved

 

The same formula applies to the other existing CPUs, replacing WDT0CON0 and WDT0CON1 registers, respectively, with WDTxCON0 and WDTxCON1, where x represents the number of the CPU.

 Note: This KBA applies to the following series of AURIX™ MCUs:

  • AURIX™ TC2xx series
  • AURIX™ TC3xx series

 

0 Likes
Contributors