FAQ: How do I access the full memory space of the SPI slave?

Document created by ColinJ on Jul 24, 2014Last modified by ColinJ on Aug 1, 2014
Version 2Show Document
  • View in full screen mode

Q:

How do I access the full memory space of the SPI slave?

 

--------------

 

A:

In order to provide unconstrained access to the full memory space of the SPI slave, address translation is supported. The SPI host provides the 24-bit address to the SPIHP. The SPIHP base address register holds the 8-bit address offset to be pre-pended to the address supplied by the host. The base address offset (BAO) value of the selected SPIHP_BAR[n] register is used as bits 31–24 for the local address.

 

For instance, If the master wants to access L1 SRAM(0x11800000), the SPIHP_BAR0 register is programmed with a value 0x11(upper 8-bits of target memory location) and the master will send the 24-bit address 0x800000 along with the opcode.

Attachments

    Outcomes