參數(shù)資料
型號(hào): R5F2L3AACDFA
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
封裝: 14 X 20 MM, 0.65 MM PITCH, PLASTIC, QFP-100
文件頁數(shù): 40/74頁
文件大小: 959K
代理商: R5F2L3AACDFA
46
2588F–AVR–06/2013
ATtiny261/461/861
1.
In the same operation, write a logical one to WDCE and WDE. Even though the WDE
always is set, the WDE must be written to one to start the timed sequence.
2.
Within the next four clock cycles, in the same operation, write the WDP bits as desired,
but with the WDCE bit cleared. The value written to the WDE bit is irrelevant.
8.3.2
Code Examples
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:
Assembly Code Example
WDT_off:
wdr
; Clear WDRF in MCUSR
ldi
r16, (0<<WDRF)
out
MCUSR, r16
; Write logical one to WDCE and WDE
; Keep old prescaler setting to prevent unintentional Watchdog Reset
in
r16, WDTCSR
ori
r16, (1<<WDCE)|(1<<WDE)
out
WDTCSR, r16
; Turn off WDT
ldi
r16, (0<<WDE)
out
WDTCSR, r16
ret
C Code Example
void
WDT_off(void)
{
_WDR();
/* Clear WDRF in MCUSR */
MCUSR = 0x00
/* Write logical one to WDCE and WDE */
WDTCSR |= (1<<WDCE) | (1<<WDE);
/* Turn off WDT */
WDTCSR = 0x00;
}
相關(guān)PDF資料
PDF描述
R5F2L3ACCDFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L38CCNFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
R5F2L388CNFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
R5F2L3A8CNFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L36CCNFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
R5F2L3AACDFA#U0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 96KB FLASH
R5F2L3AACDFP#U1 制造商:Renesas Electronics Corporation 功能描述:
R5F2L3AACDFP#V0 制造商:Renesas Electronics Corporation 功能描述:R8C/L3AC 96K+4K/10K 100LQFP14X14 -40-+85 - Trays
R5F2L3AACNFA#U0 制造商:Renesas Electronics Corporation 功能描述:R8CL3AC 96+4KB 1.8/5.5V -20 TO 85C 100QFP - Trays 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 96KB FLASH 100LQFP
R5F2L3AACNFP#30 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 96KB FLASH 100LQFP 制造商:Renesas Electronics Corporation 功能描述:R8C Series 16 bit 10 kB RAM 96 kB Flash Single Chip Microcontroller SMT-LQFP-100