參數(shù)資料
型號: R5F2L388CNFP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
封裝: 12 X 12 MM, 0.50 MM PITCH, PLASTIC, LQFP-80
文件頁數(shù): 40/74頁
文件大?。?/td> 959K
代理商: R5F2L388CNFP
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描述
R5F2L3A8CNFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L36CCNFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
R5F2L367CDFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
R5F2L358CNFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP52
R5F2L36ACDFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
R5F2L388MDFA#V0 制造商:Renesas Electronics Corporation 功能描述:R8C/L38M 64+4/8 80LQFP 14X14 - 制造商:Renesas Electronics Corporation 功能描述:R8C/L38M 64+4/8 80LQFP 14X14 -40 TO +85 - Trays 制造商:Renesas Electronics Corporation 功能描述:MCU 16BIT 64KB FLASH 80LQFP
R5F2L388MDFP#V0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 64KB FLASH 80LQFP
R5F2L388MNFA#V0 制造商:Renesas Electronics Corporation 功能描述:R8C/L38M 64+4/8 80LQFP 14X14 -20 TO +85 - Trays 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 64KB FLASH 80LQFP
R5F2L388MNFP#V0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 64KB FLASH 80LQFP
R5F2L38ACDFA#U1 制造商:Renesas Electronics Corporation 功能描述: