参数资料
型号: MB9AF312NPMC
元件分类: 微控制器/微处理器
英文描述: 32-BIT, FLASH, 40 MHz, RISC MICROCONTROLLER, PQFP100
封装: 0.50 MM PITCH, PLASTIC, LQFP-100
文件页数: 30/114页
文件大小: 1357K
代理商: MB9AF312NPMC
ATmega48PA/88PA/168PA [DATASHEET]
9223F–AVR–04/14
22
The calibrated oscillator is used to time the EEPROM accesses. Table 8-2 lists the typical programming time for EEPROM
access from the CPU.
The following code examples show one assembly and one C function for writing to the EEPROM. The examples assume
that interrupts are controlled (e.g. by disabling interrupts globally) so that no interrupts will occur during execution of these
functions. The examples also 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.
Table 8-2.
EEPROM Programming Time
Symbol
Number of Calibrated RC Oscillator Cycles
Typ Programming Time
EEPROM write (from
CPU)
26,368
3.3ms
Assembly Code Example
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
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);
}
相关PDF资料
PDF描述
MB9AF315NPF 32-BIT, FLASH, 40 MHz, RISC MICROCONTROLLER, PQFP100
MSM65P514-JS 8-BIT, OTPROM, 12 MHz, MICROCONTROLLER, PQCC68
MSM67P620-JS 16-BIT, OTPROM, 10 MHz, MICROCONTROLLER, PQCC68
MSM80C154-RS 8-BIT, 12 MHz, MICROCONTROLLER, PDIP40
MSM83C154-RS 8-BIT, MROM, 12 MHz, MICROCONTROLLER, PDIP40
相关代理商/技术参数
参数描述
MB9AF314LAPMC1-G-JNE2 制造商:FUJITSU 功能描述:
MB9AF314LAPMC-G-JNE2 制造商:Fujitsu 功能描述:Bulk
MB9AF314LAQN-G-AVE2 功能描述:ARM? Cortex?-M3 FM3 MB9A310A Microcontroller IC 32-Bit 40MHz 256KB (256K x 8) FLASH 64-QFN Exposed Pad (9x9) 制造商:cypress semiconductor corp 系列:FM3 MB9A310A 包装:托盘 零件状态:有效 核心处理器:ARM? Cortex?-M3 核心尺寸:32-位 速度:40MHz 连接性:CSIO,I2C,LIN,UART/USART,USB 外设:DMA,LVD,POR,PWM,WDT I/O 数:51 程序存储容量:256KB(256K x 8) 程序存储器类型:闪存 EEPROM 容量:- RAM 容量:32K x 8 电压 - 电源(Vcc/Vdd):2.7 V ~ 5.5 V 数据转换器:A/D 9x12b 振荡器类型:内部 工作温度:-40°C ~ 105°C(TA) 封装/外壳:64-VFQFN 裸露焊盘 供应商器件封装:64-QFN 裸露焊盘(9x9) 标准包装:260
MB9AF314LPMC1-ESE1 制造商:FUJITSU 功能描述:
MB9AF314LPMC1-GE1 制造商:FUJITSU 功能描述: