欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA16U2-MUR 参数 Datasheet PDF下载

ATMEGA16U2-MUR图片预览
型号: ATMEGA16U2-MUR
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器具有ISP功能的Flash 8/16 / 32K Butes [8-bit Microcontroller with 8/16/32K Butes of ISP Flash]
分类和应用: 微控制器异步传输模式PCATM
文件页数/大小: 310 页 / 4432 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第48页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第49页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第50页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第51页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第53页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第54页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第55页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第56页  
ATmega8U2/16U2/32U2  
when the counter reaches a given time-out value. The WDT gives an interrupt or a system reset  
when the counter reaches two times the given time-out value. In normal operation mode, it is  
required that the system uses the WDR - Watchdog Timer Reset - instruction to restart the coun-  
ter before the time-out value is reached. If the system doesn't restart the counter, an interrupt or  
system reset will be issued.  
Figure 10-8. Watchdog Timer  
128kHz  
OSCILLATOR  
OSC/1  
OSC/3  
CLOCK  
DIVIDER  
OSC/5  
OSC/7  
WDP0  
WDP1  
WDP2  
WDP3  
WATCHDOG  
RESET  
WDE  
MCU RESET  
WDIF  
INTERRUPT  
WDIE  
EARLY WARNING  
INTERRUPT  
WDEWIE  
In Interrupt mode, the WDT gives an interrupt when the timer expires two times. This interrupt  
can be used to wake the device from sleep-modes, and also as a general system timer. One  
example is to limit the maximum time allowed for certain operations, giving an interrupt when the  
operation has run longer than expected.  
In System Reset mode, the WDT gives a reset when the timer expires two times. This is typically  
used to prevent system hang-up in case of runaway code.  
The third mode, Interrupt and System Reset mode, combines the other two modes by first giving  
an interrupt and then switch to System Reset mode. This mode will for instance allow a safe  
shutdown by saving critical parameters before a system reset.  
In addition to these modes, the early warning interrupt can be enabled in order to generate an  
interrupt when the WDT counter expires the first time.  
The Watchdog always on (WDTON) fuse, if programmed, will force the Watchdog Timer to Sys-  
tem Reset mode. With the fuse programmed the System Reset mode bit (WDE) and Interrupt  
mode bit (WDIE) are locked to 1 and 0 respectively. To further ensure program security, altera-  
tions to the Watchdog set-up must follow timed sequences. The sequence for clearing WDE or  
changing time-out configuration is as follows:  
1. In the same operation, write a logic one to the Watchdog change enable bits WDCE  
and WDE. A logic one must be written to WDE regardless of the previous value of the  
WDE bit and even if it will be cleared after the operation.  
2. Within the next four clock cycles, write the WDE and Watchdog prescaler bits (WDP) as  
desired, but with the WDCE bit cleared. This must be done in one operation.  
52  
7799D–AVR–11/10  
 复制成功!