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

external memory

Hi,
I work on ST10F168 and i use external ram by EBC in 16 bits demux mode with keil V2.38
There are 4 Chip Select available for ram : CS1,CS2,CS3,CS4
and 23 adress bits : A1->A23
So, there are (2^23 * 4) bytes accessible <=> 32Mo
I would to know if i am right and if i can declare an external memory map of 32 Mo !
Thanks for any suggestions !

Regards,
Jim

Parents
  • Can i switch a 16Mo page with a simple bit use like chip select between 2 page of 16Mo (for example P3^5)

    Exactly. This is the so called bank switching. Remember that not exactly 16M bytes are accessisble via the external bus: 4K bytes are mapped to on-chip RAM and SFRs and 8K bytes are mapped to XRAM and CAN registers. So it's more like 16M-12K bytes, or even less with on-chip ROM (256K bytes) enabled. If you don't want to waste a byte, you could have 4 banks 8M bytes each.

    - mike

Reply
  • Can i switch a 16Mo page with a simple bit use like chip select between 2 page of 16Mo (for example P3^5)

    Exactly. This is the so called bank switching. Remember that not exactly 16M bytes are accessisble via the external bus: 4K bytes are mapped to on-chip RAM and SFRs and 8K bytes are mapped to XRAM and CAN registers. So it's more like 16M-12K bytes, or even less with on-chip ROM (256K bytes) enabled. If you don't want to waste a byte, you could have 4 banks 8M bytes each.

    - mike

Children