參數(shù)資料
型號: X24C01A
英文描述: Serial EEPROM(二線接口串行EEPROM)
中文描述: 串行EEPROM(二線接口串行EEPROM的)
文件頁數(shù): 4/6頁
文件大小: 21K
代理商: X24C01A
Xicor Application Note
AN02
AN02-4
;********************************************************************
;* WRITE A BYTE "BYTE WRITE SEQUENCE". THE ADDRESS TO WRITE IS STORED
;* IN LOADDR AND HIADDR. THE DATA TO WRITE IS STORED IN DATA1.
;********************************************************************
WRBYT: push DATA1 ; WRITE TO BYTE POINTED TO BY ADDR
call START ; SEND START COMMAND
ld DATA1,HIADDR ; BUILD THE SLAVE ADDRESS
rl DATA1
or DATA1,#0A0h
call OUTBYT ; SEND SLAVE ADDRESS
call NACK ; SET SDA HI TO RECEIVE ACKNOWLEDGE
ld DATA1,LOADDR
call OUTBYT ; SEND WORD ADDRESS
call NACK ; SET SDA HI TO RECEIVE ACKNOWLEDGE
pop DATA1
call OUTBYT ; SEND WRITE DATA
call NACK ; SET SDA HI TO RECEIVE ACKNOWLEDGE
call STOP ; SEND STOP
ret
;********************************************************************
;* READ 8 BITS FROM THE EEPROM. THE RESULTS ARE RETURNED IN DATA1.
;********************************************************************
INBYT: ld p2m,SDAHI ; READ 8 BITS, MAKE SDA AN INPUT
ld COUNT,#08h
LOOPI: call CLOCK ; CLOCK DATA
rlc DATA1 ; STORE DUT DATA IN DATA1
djnz COUNT,LOOPI ; LOOP UNTIL 8 BITS ARE READ
ld p2m,#00h ; MAKE SDA AN OUTPUT
ret
;********************************************************************
;* WRITE 8 BITS TO THE EEPROM. THE DATA TO SEND IS IN DATA1.
;********************************************************************
OUTBYT: ld COUNT,#08h ; PREPARE TO SHIFT OUT 8 BITS
LOOPO: rlc DATA1 ; ROTATE BIT TO SEND INTO CARRY FLAG
jp c,IS1 ; SEND CARRY TO SDA
and p2,SDALO ; WRITE 0 TO SDA
jp BITSET
IS1: or p2,SDAHI ; WRITE 1 TO SDA
BITSET: call CLOCK ; SEND CLOCK SIGNAL TO DUT
djnz COUNT,LOOPO ; LOOP UNTIL ALL 8 BITS HAVE BEEN
; SENT
ret
相關(guān)PDF資料
PDF描述
X24C01 Serial EEPROM(二線接口串行EEPROM(128×8))
X24C02(中文) Serial EEPROM(寫保護(hù)引腳,串行EEPROM)
X24C02 Serial EEPROM(寫保護(hù)引腳,串行EEPROM)
X24C04P-2.7 Circular Connector; MIL SPEC:MIL-C-26482, Series I, Crimp; Body Material:Aluminum; Series:PT02; Number of Contacts:5; Connector Shell Size:14; Connecting Termination:Crimp; Circular Shell Style:Box Mount Receptacle
X24C04S14M-2.7 2 CHANNEL DVI SWITCH W/ AUDIO
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
X24C01AP 制造商:XICOR 制造商全稱:Xicor Inc. 功能描述:Serial E2PROM
X24C01AP-3 制造商:ICMIC 制造商全稱:IC MICROSYSTEMS 功能描述:Serial E2PROM
X24C01AP-3.5 制造商:ICMIC 制造商全稱:IC MICROSYSTEMS 功能描述:Serial E2PROM
X24C01APG 制造商:ICMIC 制造商全稱:IC MICROSYSTEMS 功能描述:Serial E2PROM
X24C01APG-3 制造商:ICMIC 制造商全稱:IC MICROSYSTEMS 功能描述:Serial E2PROM