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

cross mob

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

IFX_Publisher2
Community Manager
Community Manager
Community Manager
25 likes received 1000 replies posted First like given

Community Translation: AURIX™ MCU: CPU0ウォッチドッグ・タイマー(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
279 Views