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

ATMEGA16L-8MI 参数 Datasheet PDF下载

ATMEGA16L-8MI图片预览
型号: ATMEGA16L-8MI
PDF下载: 下载PDF文件 查看货源
内容描述: 8位AVR微控制器具有16K字节的系统内可编程闪存 [8-bit AVR Microcontroller with 16K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器和处理器外围集成电路异步传输模式ATM时钟
文件页数/大小: 315 页 / 2880 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA16L-8MI的Datasheet PDF文件第151页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第152页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第153页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第154页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第156页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第157页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第158页浏览型号ATMEGA16L-8MI的Datasheet PDF文件第159页  
ATmega16(L)  
Accessing UBRRH/  
UCSRC Registers  
The UBRRH Register shares the same I/O location as the UCSRC Register. Therefore  
some special consideration must be taken when accessing this I/O location.  
Write Access  
When doing a write access of this I/O location, the high bit of the value written, the  
USART Register Select (URSEL) bit, controls which one of the two registers that will be  
written. If URSEL is zero during a write operation, the UBRRH value will be updated. If  
URSEL is one, the UCSRC setting will be updated.  
The following code examples show how to access the two registers.  
Assembly Code Example(1)  
...  
; Set UBRRH to 2  
ldi r16,0x02  
out UBRRH,r16  
...  
; Set the USBS and the UCSZ1 bit to one, and  
; the remaining bits to zero.  
ldi r16,(1<<URSEL)|(1<<USBS)|(1<<UCSZ1)  
out UCSRC,r16  
...  
C Code Example(1)  
...  
/* Set UBRRH to 2 */  
UBRRH = 0x02;  
...  
/* Set the USBS and the UCSZ1 bit to one, and */  
/* the remaining bits to zero. */  
UCSRC = (1<<URSEL)|(1<<USBS)|(1<<UCSZ1);  
...  
Note:  
1. The example code assumes that the part specific header file is included.  
As the code examples illustrate, write accesses of the two registers are relatively unaf-  
fected of the sharing of I/O location.  
155  
2466E–AVR–10/02  
 复制成功!