Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AT91SAM7A2-AI Datasheet(PDF) 63 Page - ATMEL Corporation

Part # AT91SAM7A2-AI
Description  AT91 ARM Thumb-based Microcontrollers
PDF  369 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT91SAM7A2-AI Datasheet(HTML) 63 Page - ATMEL Corporation

Back Button AT91SAM7A2-AI Datasheet HTML 59Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 60Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 61Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 62Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 63Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 64Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 65Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 66Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 67Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 63 / 369 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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