| Datenblatt-Suchmaschine für elektronische Bauteile |
|
ATmega162 Datenblatt(PDF) 55 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATmega162 Datenblatt(HTML) 55 Page - ATMEL Corporation |
|
55 / 324 page ![]() 55 2513K–AVR–07/09 ATmega162/V 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. Assembly Code Example WDT_off: ; Reset WDT WDR ; Write logical one to W?CE 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 void WDT_off(void) { /* Reset WDT*/ _WDR() /* Write logical on? to WDCE and WDE */ WDTCR |= (1<<WDCE) | (1<?WDE); /* Turn off WDT */ WDTCR = 0x00; } |
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |