Nigel Goodwin said:You're not going to be able to, but why would you want to anyway? - it's not a peripheral, it's system memory.
I am trying what Eric suggested, since he said it's possible.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Nigel Goodwin said:You're not going to be able to, but why would you want to anyway? - it's not a peripheral, it's system memory.
ericgibbs said:What have you now done thats different from my suggestion, to get it to work?
ericgibbs said:Can you post more code than the last fragment?
;configure EEPROM
;starting address 8000h (A19=1, A18..A13=0, refer to MCS control register in datasheet)
;32-bit port, output in 2 separate writes.
MOV AX, 1000000000000100B
MOV DX, 0FFA6H ;address of MCS control register
OUT DX, AL
MOV AL, AH
MOV DX, 0FFA7H
OUT DX, AL
;block size = 256KB accessible in 4 active ranges, each of 64KB.
MOV AX, 0010000000000100B
MOV DX, 0FFA8H ;address of MPCS control register
OUT DX, AL
MOV AL, AH
MOV DX, 0FFA9H
OUT DX, AL
;test read from EEPROM
MOV BX, 0 ;offset
readeprom:
MOV DX, 08000h ;base address
MOV ES, DX
MOV AL, ES:[BX] ;physical address of EEPROM = ES*10 + BX
CALL FAR PTR PRINT_2HEX ;procedure to print the value read
INC BX
CMP BX, 0FFFFh
JE finished
loop readeprom
finished:
............................
ericgibbs said:When I said you could access the EEPROM as a peripheral.
It was the intention to use additional address and page latches with decoding, this is the method I have used in the past.
I did say, its a little slower to access.