| Zakładka z wyszukiwarką danych komponentów |
|
ATmega162 Arkusz danych(PDF) 55 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATmega162 Arkusz danych(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 |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów 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 |