Thanks Kef v.v.v. .. much for your help, I'm really grateful
about point 1, I was not planning to use more than 1 device, I thought to use 1 memory chip of 4MB for ex., and I was wondering how the MCU will know for ex.:
assuming FLASH_LOW address is $6F_FFFF then CS0 ranges from ($6F_FFFF-$3F_FFFF) corresponds to the address range ($0000 -$30_0000) on the memory chip
CS1($1F_FFFF-$3F_FFFF) corresponds to addresses ($30_0000-$50_0000) and so on
or as I understood from your description above I should use 4 memory external chips that each would be connected to chip line select?
About point 4:writing to internal EEPROM:
I tried several times but none of my code worked:
I just want to save the chapter no. and the word no. to load them again on next power on or on specific interrupt
I write ANSI C in Codewarrior IDE
I wish you can help me in this
//first trial
extern volatile EPAGESTR _EPAGE @0x0800;
EPAGE=chapter_no;
extern volatile EPAGESTR _EPAGE @0x0802;
EPAGE=word_no;
//2nd trial
asm{
EPAGE=chapter_no
ld &EPAGE,#0x0802
EPAGE=word_no
}
//3rd trial
EPAGE=chapter_no;
address_of_EPROM=&EPAGE;
address_of_EPROM+2;
&EPAGE+2;
EPAGE=word_no;
Thanks in advance for your time and effort