參數(shù)資料
型號(hào): ATTINY13
廠商: Atmel Corp.
元件分類: 8位微控制器
英文描述: -bit AVR Microcontroller with 8K Bytes In- System Programmable Flash
中文描述: 位AVR微控制器具有8K字節(jié)的系統(tǒng)內(nèi)可編程閃存
文件頁數(shù): 88/176頁
文件大小: 2962K
代理商: ATTINY13
19
2535J–AVR–08/10
ATtiny13
The next code examples show assembly and C functions for reading the EEPROM. The exam-
ples assume that interrupts are controlled so that no interrupts will occur during execution of
these functions.
5.3.6
Preventing EEPROM Corruption
During periods of low VCC, the EEPROM data can be corrupted because the supply voltage is
too low for the CPU and the EEPROM to operate properly. These issues are the same as for
board level systems using EEPROM, and the same design solutions should be applied.
An EEPROM data corruption can be caused by two situations when the voltage is too low. First,
a regular write sequence to the EEPROM requires a minimum voltage to operate correctly. Sec-
ondly, the CPU itself can execute instructions incorrectly, if the supply voltage is too low.
EEPROM data corruption can easily be avoided by following this design recommendation:
Keep the AVR RESET active (low) during periods of insufficient power supply voltage. This can
be done by enabling the internal Brown-out Detector (BOD). If the detection level of the internal
BOD does not match the needed detection level, an external low VCC reset protection circuit can
be used. If a reset occurs while a write operation is in progress, the write operation will be com-
pleted provided that the power supply voltage is sufficient.
Assembly Code Example
EEPROM_read:
; Wait for completion of previous write
sbic
EECR,EEPE
rjmp
EEPROM_read
; Set up address (r17) in address register
out
EEARL, r17
; Start eeprom read by writing EERE
sbi
EECR,EERE
; Read data from data register
in
r16,EEDR
ret
C Code Example
unsigned char
EEPROM_read(unsigned char ucAddress)
{
/* Wait for completion of previous write */
while(EECR & (1<<EEPE))
;
/* Set up address register */
EEARL = ucAddress;
/* Start eeprom read by writing EERE */
EECR |= (1<<EERE);
/* Return data from data register */
return EEDR;
}
相關(guān)PDF資料
PDF描述
AT93C56AY1-10YI-1.8 3-wire Serial EEPROMs 2K (256 x 8 or 128 x 16)
AT93C56AY1-10YI-2.7 Circular Connector; No. of Contacts:4; Series:; Body Material:Aluminum Alloy; Connecting Termination:Solder; Connector Shell Size:22; Circular Contact Gender:Pin; Circular Shell Style:Straight Plug; Insert Arrangement:22-10 RoHS Compliant: No
AT93C56A-10SU-2.7 24 Characters x 2 Lines, 5x7 Dot Matrix Character and Cursor
AT93C56A-10TU-1.8 240 x 128 pixel format, CFL Backlight with power harness
AT17LV128A-10BJC FPGA Configuration EEPROM Memory
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ATTINY13_08 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13_10 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13-10SU 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13-12PI 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash
ATTINY13-12PJ 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash