欢迎访问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文件第18页浏览型号90USB82-16MU的Datasheet PDF文件第19页浏览型号90USB82-16MU的Datasheet PDF文件第20页浏览型号90USB82-16MU的Datasheet PDF文件第21页浏览型号90USB82-16MU的Datasheet PDF文件第23页浏览型号90USB82-16MU的Datasheet PDF文件第24页浏览型号90USB82-16MU的Datasheet PDF文件第25页浏览型号90USB82-16MU的Datasheet PDF文件第26页  
assume that no Flash Boot Loader is present in the software. If such code is present, the  
EEPROM write function must also wait for any ongoing SPM command to finish.  
Assembly Code Example(1)  
EEPROM_write:  
; Wait for completion of previous write  
sbic EECR,EEPE  
rjmp EEPROM_write  
; Set up address (r18:r17) in address register  
out EEARH, r18  
out EEARL, r17  
; Write data (r16) to Data Register  
out EEDR,r16  
; Write logical one to EEMPE  
sbi EECR,EEMPE  
; Start eeprom write by setting EEPE  
sbi EECR,EEPE  
ret  
C Code Example(1)  
void EEPROM_write(unsigned int uiAddress, unsigned char ucData)  
{
/* Wait for completion of previous write */  
while(EECR & (1<<EEPE))  
;
/* Set up address and Data Registers */  
EEAR = uiAddress;  
EEDR = ucData;  
/* Write logical one to EEMPE */  
EECR |= (1<<EEMPE);  
/* Start eeprom write by setting EEPE */  
EECR |= (1<<EEPE);  
}
Note:  
1. See “About Code Examples” on page 7.  
22  
AT90USB82/162  
7707D–AVR–07/08  
 复制成功!