2004-10-31 06:59 PM
2004-10-29 04:11 AM
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. Joe2004-10-31 06:59 PM
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