I need help. this codes for 93C56 but I cant use this code for other microwire eeprom
where change this code for 93C06,93C14,93C46,93C66,93C76, 93c86
codes :
eeread:
CS = 1 ' Enable serial EEPROM
Shiftout DI, CLK, MSBFIRST, [%1100\4, addr93c] ' Send read command and address
Shiftin DO, CLK, MSBPOST, [data93c] ' Read data
CS = 0
'============================================
eewrite:
' Subroutine to enable writes to serial EEPROM
eewriteen: CSslave = 1 ' Enable serial EEPROM
Shiftout DIslave, CLKslave, MSBFIRST, [%10011\5, 0\7] ' Send write enable command and dummy clocks
CSslave = 0 ' Disable
' Subroutine to write data at addr in serial EEPROM
eewrite: CSslave = 1 ' Enable serial EEPROM
Shiftout DIslave, CLKslave, MSBFIRST, [%1010\4, addr93c, data93c] ' Send write command, address and data
CSslave = 0 ' Disable
Pause 1000 ' YAZDIKTAN SONRA BEKLE
Bookmarks