Electronic Components Datasheet Search
  English  ▼

X  

ATMEGA325 Datasheet(PDF) 46 Page - ATMEL Corporation

Part # ATMEGA325
Description  8-bit Microcontroller with In-System Programmable Flash
PDF  353 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATMEGA325 Datasheet(HTML) 46 Page - ATMEL Corporation

Back Button ATMEGA325 Datasheet HTML 42Page - ATMEL Corporation ATMEGA325 Datasheet HTML 43Page - ATMEL Corporation ATMEGA325 Datasheet HTML 44Page - ATMEL Corporation ATMEGA325 Datasheet HTML 45Page - ATMEL Corporation ATMEGA325 Datasheet HTML 46Page - ATMEL Corporation ATMEGA325 Datasheet HTML 47Page - ATMEL Corporation ATMEGA325 Datasheet HTML 48Page - ATMEL Corporation ATMEGA325 Datasheet HTML 49Page - ATMEL Corporation ATMEGA325 Datasheet HTML 50Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 353 page
background image
46
ATmega325/3250/645/6450
2570J–AVR–11/06
The following code example shows one assembly and one C function for turning off the
WDT. The example assumes that interrupts are controlled (e.g. by disabling interrupts
globally) so that no interrupts will occur during execution of these functions.
Note:
1. See “About Code Examples” on page 8.
Table 21. Watchdog Timer Prescale Select
WDP2
WDP1
WDP0
Number of WDT
Oscillator Cycles
Typical Time-out
at V
CC = 3.0V
Typical Time-out
at V
CC = 5.0V
0
0
0
16K cycles
17.1 ms
16.3 ms
0
0
1
32K cycles
34.3 ms
32.5 ms
0
1
0
64K cycles
68.5 ms
65 ms
0
1
1
128K cycles
0.14 s
0.13 s
1
0
0
256K cycles
0.27 s
0.26 s
1
0
1
512K cycles
0.55 s
0.52 s
1
1
0
1,024K cycles
1.1 s
1.0 s
1
1
1
2,048K cycles
2.2 s
2.1 s
Assembly Code Example(1)
WDT_off:
; Reset WDT
wdr
; Write logical one to WDCE and WDE
in
r16, WDTCR
ori
r16, (1<<WDCE)|(1<<WDE)
out
WDTCR, r16
; Turn off WDT
ldi
r16, (0<<WDE)
out
WDTCR, r16
ret
C Code Example(1)
void
WDT_off(void)
{
/* Reset WDT */
__watchdog_reset();
/* Write logical one to WDCE and WDE */
WDTCR |= (1<<WDCE) | (1<<WDE);
/* Turn off WDT */
WDTCR = 0x00;
}



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