參數(shù)資料
型號(hào): TS80C58X2XXX-VIA
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 40 MHz, MICROCONTROLLER, PDIP40
封裝: PLASTIC, DIP-40
文件頁(yè)數(shù): 27/83頁(yè)
文件大?。?/td> 8336K
代理商: TS80C58X2XXX-VIA
25
8021G–AVR–03/11
ATmega329P/3290P
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.
Assembly Code Example
EEPROM_write:
; Wait for completion of previous write
sbic
EECR,EEWE
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 EEMWE
sbi
EECR,EEMWE
; Start eeprom write by setting EEWE
sbi
EECR,EEWE
ret
C Code Example
void
EEPROM_write(unsigned int uiAddress, unsigned char ucData)
{
/* Wait for completion of previous write */
while(EECR & (1<<EEWE))
;
/* Set up address and Data Registers */
EEAR = uiAddress;
EEDR = ucData;
/* Write logical one to EEMWE */
EECR |= (1<<EEMWE);
/* Start eeprom write by setting EEWE */
EECR |= (1<<EEWE);
}
相關(guān)PDF資料
PDF描述
TSC80C51CXXX-36CW 8-BIT, MROM, 36 MHz, MICROCONTROLLER, UUC40
TSC80C51TXXX-25IW 8-BIT, MROM, 25 MHz, MICROCONTROLLER, UUC40
TSC80C51TXXX-36IXD 8-BIT, MROM, 36 MHz, MICROCONTROLLER, UUC40
TSC80C51TXXX-L16CW 8-BIT, MROM, 16 MHz, MICROCONTROLLER, UUC40
TSC80C51XXX-44CWD 8-BIT, MROM, 44 MHz, MICROCONTROLLER, UUC40
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TS80C58X2XXX-VIB 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller 16/32 Kbytes ROM/OTP
TS80C58X2XXX-VIC 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller 16/32 Kbytes ROM/OTP
TS80C58X2XXX-VIE 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller 16/32 Kbytes ROM/OTP
TS80C58X2YYY-LCAD 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|8051 CPU|CMOS|DIP|40PIN|PLASTIC
TS80C58X2YYY-LCBB 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|8051 CPU|CMOS|LDCC|44PIN|PLASTIC