參數(shù)資料
型號(hào): ATTINY13
廠商: Atmel Corp.
元件分類: 8位微控制器
英文描述: -bit AVR Microcontroller with 8K Bytes In- System Programmable Flash
中文描述: 位AVR微控制器具有8K字節(jié)的系統(tǒng)內(nèi)可編程閃存
文件頁數(shù): 110/176頁
文件大小: 2962K
代理商: ATTINY13
39
2535J–AVR–08/10
ATtiny13
The following code example shows one assembly and one C function for turning off the Watch-
dog Timer. The example assumes that interrupts are controlled (e.g. by disabling interrupts
globally) so that no interrupts will occur during the execution of these functions.
Note:
1. The example code assumes that the part specific header file is included.
If the Watchdog is accidentally enabled, for example by a runaway pointer or brown-out condi-
tion, the device will be reset and the Watchdog Timer will stay enabled. If the code is not set up
to handle the Watchdog, this might lead to an eternal loop of time-out resets. To avoid this situa-
Assembly Code Example(1)
WDT_off:
; Turn off global interrupt
cli
; Reset Watchdog Timer
wdr
; Clear WDRF in MCUSR
in
r16, MCUSR
andi
r16, (0xff - (1<<WDRF))
out
MCUSR, r16
; Write logical one to WDCE and WDE
; Keep old prescaler setting to prevent unintentional time-out
in
r16, WDTCR
ori
r16, (1<<WDCE) | (1<<WDE)
out
WDTCR, r16
; Turn off WDT
ldi
r16, (0<<WDE)
out
WDTCR, r16
; Turn on global interrupt
sei
ret
C Code Example(1)
void WDT_off(void)
{
__disable_interrupt();
__watchdog_reset();
/* Clear WDRF in MCUSR */
MCUSR &= ~(1<<WDRF);
/* Write logical one to WDCE and WDE */
/* Keep old prescaler setting to prevent unintentional time-out
*/
WDTCR |= (1<<WDCE) | (1<<WDE);
/* Turn off WDT */
WDTCR = 0x00;
__enable_interrupt();
}
相關(guān)PDF資料
PDF描述
AT93C56AY1-10YI-1.8 3-wire Serial EEPROMs 2K (256 x 8 or 128 x 16)
AT93C56AY1-10YI-2.7 Circular Connector; No. of Contacts:4; Series:; Body Material:Aluminum Alloy; Connecting Termination:Solder; Connector Shell Size:22; Circular Contact Gender:Pin; Circular Shell Style:Straight Plug; Insert Arrangement:22-10 RoHS Compliant: No
AT93C56A-10SU-2.7 24 Characters x 2 Lines, 5x7 Dot Matrix Character and Cursor
AT93C56A-10TU-1.8 240 x 128 pixel format, CFL Backlight with power harness
AT17LV128A-10BJC FPGA Configuration EEPROM Memory
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ATTINY13_08 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13_10 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13-10SU 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13-12PI 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13-12PJ 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash