參數(shù)資料
型號(hào): R5F2L387CDFP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
封裝: 12 X 12 MM, 0.50 MM PITCH, PLASTIC, LQFP-80
文件頁(yè)數(shù): 40/74頁(yè)
文件大?。?/td> 959K
代理商: R5F2L387CDFP
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描述
R5F2L387CNFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
R5F2L368CDFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
R5F2L3AACDFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L3ACCDFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L38CCNFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
R5F2L387CNFA#V0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH
R5F2L387CNFP#30 制造商:Renesas Electronics Corporation 功能描述:R8C/L38C FL-48K, PLQP0080KB-A - Trays 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH 80LQFP
R5F2L387MDFA#V0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH
R5F2L387MNFA#V0 制造商:Renesas Electronics Corporation 功能描述:R8C/L38M 48+4/6 80LQFP 14X14 -20 TO +85 - Trays 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH 80LQFP
R5F2L387MNFP#30 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH 80LQFP