Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
162
Добавлен:
01.03.2016
Размер:
3.56 Mб
Скачать

Window watchdog (WWDG)

RM0016

 

 

15.4How to program the watchdog timeout

The formula below can be used to calculate the WWDG timeout, tWWDG, expressed in ms:

tWWDG = TCPU × 12288 × ( T[ 5:0] + 1)

where TCPU is the peripheral clock period expressed in ms

Warning: When writing to the WWDG_CR register, always write 1 in the

T6 bit to avoid generating an immediate reset.

Figure 29. Approximate timeout duration

 

7F

 

 

 

 

 

 

 

 

 

78

 

 

 

 

 

 

 

 

 

70

 

 

 

 

 

 

 

 

(hex.)

68

 

 

 

 

 

 

 

 

60

 

 

 

 

 

 

 

 

value

 

 

 

 

 

 

 

 

58

 

 

 

 

 

 

 

 

CNT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

50

 

 

 

 

 

 

 

 

 

48

 

 

 

 

 

 

 

 

 

40

 

 

 

 

 

 

 

 

 

0.768

6.144

12.288

18.432

24.576

30.72

36.864

43.008

49.152

 

 

 

Watchdog timeout (ms) @ 16 MHz fCPU

 

 

 

128/454

Doc ID 14587 Rev 9

Соседние файлы в папке Минимум документации STM8_1