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

90USB82-16MU 参数 Datasheet PDF下载

90USB82-16MU图片预览
型号: 90USB82-16MU
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器具有ISP功能的Flash 8 / 16K字节 [8-bit Microcontroller with 8/16K Bytes of ISP Flash]
分类和应用: 微控制器和处理器外围集成电路异步传输模式ATM时钟
文件页数/大小: 306 页 / 2299 K
品牌: ATMEL [ ATMEL ]
 浏览型号90USB82-16MU的Datasheet PDF文件第107页浏览型号90USB82-16MU的Datasheet PDF文件第108页浏览型号90USB82-16MU的Datasheet PDF文件第109页浏览型号90USB82-16MU的Datasheet PDF文件第110页浏览型号90USB82-16MU的Datasheet PDF文件第112页浏览型号90USB82-16MU的Datasheet PDF文件第113页浏览型号90USB82-16MU的Datasheet PDF文件第114页浏览型号90USB82-16MU的Datasheet PDF文件第115页  
AT90USB82/162  
Assembly Code Example(1)  
TIM16_ReadTCNTn:  
; Save global interrupt flag  
in r18,SREG  
; Disable interrupts  
cli  
; Read TCNTn into r17:r16  
in r16,TCNTnL  
in r17,TCNTnH  
; Restore global interrupt flag  
outSREG,r18  
ret  
C Code Example(1)  
unsigned int TIM16_ReadTCNTn( void )  
{
unsigned char sreg;  
unsigned int i;  
/* Save global interrupt flag */  
sreg = SREG;  
/* Disable interrupts */  
__disable_interrupt();  
/* Read TCNTn into i */  
i = TCNTn;  
/* Restore global interrupt flag */  
SREG = sreg;  
return i;  
}
Note:  
1. See “About Code Examples” on page 7.  
The assembly code example returns the TCNTn value in the r17:r16 register pair.  
111  
7707D–AVR–07/08  
 复制成功!