This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADuC812 with a external 4Mb Flash Memory:How to define the PAGE ADDRESS?

ADuC812 can access up to 16M bytes of enternal data memory,with the address A0-A23.

Port0 outputs the low address A0-A7(the data pointer DPL);
Port2 output the high address A8-A15(the data pointer DPH)and the page address A16-A23
(the page address DPP);


the Flash memory is 4Mb(512kx8)with the address A0-A18,and is written on a page basis,every page contains 256 bytes of data.

A8-A18 specify the page address,
A0-A7 specify the BYTE address within the page
The configuration of the hardware is:
Port0 serves as a multiplexed address/data
bus with a latch,Port2 provides the High
address and the PAGE address with a latch

Now ,since the flash memory is writted on a page basis,the page address A8-A15(DPH)and A16-18(DPP) is latched by ALE.
HOW can I define the page address?
if I want to write the 256 Bytes into the page(A8-A18) 0x03EE, can I give DPP the value 0x03 and the DPH 0xEE?

DPP=0x03;
DPH=0xEE;
for(i=0;i<=0xFF;i++){
XBYTE[i]=i;}

Parents Reply Children
No data