| Electronic Components Datasheet Search |
|
AT91SAM7A2-AI Datasheet(PDF) 63 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT91SAM7A2-AI Datasheet(HTML) 63 Page - ATMEL Corporation |
|
63 / 369 page ![]() 63 PRELIMINARY AT91SAM7A2 6021A–ATARM–07/04 Watchdog (WD) Overview The watchdog timer is used to prevent the system from locking-up (for example in infi- nite software loops). If the software does not write to the watchdog during the programmed time, then it can generate an interrupt (WDOVF) or an internal reset. The watchdog timer has a programmable 16-bit down counter in WD_MR register. The software can control the action to perform when the WD counter overflows (i.e. reaches 0): • If the RSTEN bit is set in the WD_OMR register, an internal reset is generated. • If the WDOVF bit is set in the WD_IMR register, an interrupt is generated on the Generic Interrupt Controller (GIC). In this case, an “overflow” occurs when the watchdog down-counter reaches zero. The low frequency clock from the clock manager supplies the watchdog counter (see Figure 41 “Watchdog Block Diagram,” on page 64). It is possible to set a programmable pending window that provides users with the option to restart the watchdog counter only from within this window. This protection is set with the RSTALW bit, otherwise users can restart the watchdog counter at any time. When the pending windows is reached, the WDPEND bit is set followed by the PENDING bit. The WDPDIVCLK is then divided by the WDPDIV[2:0] divider and provided to the down- counter input WDCLK. All write accesses are protected by control access keys to help prevent corruption of the watchdog should an error condition occur. To update the contents of the mode and control registers it is necessary to write the cor- rect bit pattern to the control access key bits at the same time as the control bits are written (the same write access). Note: Due to internal synchronization of the restart command (write restart key in the WD_CR register), no further restart commands can be taken in account during 2 WDCLK and ½ LFCLK periods. Architecture The WD contains a programmable length down-counter. The count length determines the timeout period, and is controlled by loading the PCV field of the WD_MR register. The time out period (in seconds) is: When the counter reaches the value programmed in the pending window PWL[15:0] of WD_PWR register, the watchdog can generate a watchdog pending interrupt. The pending interrupt occurs after: If the previous time is negative, the WD pending interrupt should not be used. In order to prevent an internal reset (if the RSTEN bit is set in the WD_OMR register) or interrupt (if the WDOVF bit is set in the WD_IMR), the software must reset the counter before it reaches 0 by writing the correct key in the WD_CR register (0xC071). The time (in seconds) between the WD pending interrupt and the WD overflow is: PCV[15:0] () 1 + WDCLKfreq ----------------------------------------- PCV[15:0] () PWL[15:0] () – WDCLK freq ----------------------------------------------------------------------- seconds |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |