欢迎访问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文件第49页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第50页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第51页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第52页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第54页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第55页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第56页浏览型号ATMEGA16U2-MUR的Datasheet PDF文件第57页  
ATmega8U2/16U2/32U2  
While the WDT prescaler allows only even division factors (2, 4, 8...), the WDT peripheral also  
includes a clock divider that directly acts on the clock source. This divider handles odd division  
factors (3, 5, 7). In combination with the prescaler, a large number of time-out values can be  
obtained.  
The divider factor change is also ruled by the secure timed sequence : first the WDE and WDCE  
bits must be set, and then four cycles are available to load the new divider value into the  
WDTCKD register. Be aware that after this operation WDE will still be set. So keep in mind the  
importance of order of operations. When setting up the WDT in Interrupt mode with specific val-  
ues of prescaler and divider, the divider register must be loaded before the prescaler register :  
1. Set WDCE and WDE  
2. Load the divider factor into WDTCKD  
3. Wait WDCE being automatically cleared (just wait 2 more cycles)  
4. Set again WDCE and WDE  
5. Clear WDE, set WDIE and load the prescaler factor into WDTCSR in a same operation  
6. Now the system is properly configured for Interrupt only mode. Inverting the two opera-  
tions would have been resulted into “Reset and Interrupt mode” and needed a third  
operation to clear WDE.  
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.  
53  
7799D–AVR–11/10  
 复制成功!