09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Independent watchdog (IWDG) <strong>RM0090</strong><br />

with a different value will break the sequence and register access will be protected again.<br />

This implies that it is the case of the reload operation (writing 0xAAAA).<br />

A status register is available to indicate that an update of the prescaler or the down-counter<br />

reload value is on going.<br />

18.3.3 Debug mode<br />

When the microcontroller enters debug mode (Cortex-M4F core halted), the IWDG<br />

counter either continues to work normally or stops, depending on DBG_IWDG_STOP<br />

configuration bit in DBG module. For more details, refer to Section 33.16.2: Debug support<br />

for timers, watchdog, bxCAN and I2C.<br />

Figure 198. Independent watchdog block diagram<br />

CORE<br />

Prescaler register<br />

IWDG_PR<br />

LSI<br />

8-bit<br />

prescaler<br />

V DD voltage domain<br />

Note: The watchdog function is implemented in the V DD voltage domain that is still functional in<br />

Stop and Standby modes.<br />

18.4 IWDG registers<br />

Status register<br />

IWDG_SR<br />

Reload register<br />

IWDG_RLR<br />

12-bit reload value<br />

12-bit downcounter<br />

Table 83. Min/max IWDG timeout period at 32 kHz (LSI) (1)<br />

Prescaler divider PR[2:0] bits<br />

Min timeout (ms) RL[11:0]=<br />

0x000<br />

Refer to Section 1.1 on page 47 for a list of abbreviations used in register descriptions.<br />

The peripheral registers can be accessed by half-words (16 bits) or words (32 bits).<br />

533/1416 Doc ID 018909 Rev 3<br />

Key register<br />

IWDG_KR<br />

IWDG reset<br />

MS19944V1<br />

Max timeout (ms) RL[11:0]=<br />

0xFFF<br />

/4 0 0.125 512<br />

/8 1 0.25 1024<br />

/16 2 0.5 2048<br />

/32 3 1 4096<br />

/64 4 2 8192<br />

/128 5 4 16384<br />

/256 6 8 32768<br />

1. These timings are given for a 32 kHz clock but the microcontroller’s internal RC frequency can vary from 30<br />

to 60 kHz. Moreover, given an exact RC oscillator frequency, the exact timings still depend on the phasing<br />

of the APB interface clock versus the LSI clock so that there is always a full RC period of uncertainty.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!