Skip to main content
Visitor II
November 1, 2004
Question

ST10 EBC and external RAM

  • November 1, 2004
  • 2 replies
  • 730 views
Posted on November 01, 2004 at 03:59

ST10 EBC and external RAM

    This topic has been closed for replies.

    2 replies

    jwb3Author
    Visitor II
    October 29, 2004
    Posted on October 29, 2004 at 13:11

    I am trying to interface an external SRAM to the ST10. I am setting it up so I use the first 16K of fllash from 0x0 - 0x3FFF then from 0x4000 - 0xBFFF I want to create a ''hole'' for the RAM. So I set up the EBC for a non multiplexed bus on BUSCON1 but I am not sure how to program the ADDRSEL1 register. I know my RGSZ is going to be 32K or 0011 but what do I program into the RGSAD field???

    I think it should be 0x0043 but am not sure.

    Joe
    Visitor II
    November 1, 2004
    Posted on November 01, 2004 at 03:59

    Hello,

    Normally, RGSAD field is the Range Start Address which defines the upper bits of the start address of the respective address area. In your case, the start address is 0x0000 and not 0x4000 so you should put in the ADDRSEL1 register 0x0003H and not 0x0043H