7.6.8 Read SRAM/Register

Description

The SPI command “Read SRAM / Register” reads n consecutive data bytes from the SRAM or hardware registers, and sends them back to the host.

Command Frame

Host

0x08

length

addr_high

addr_low

0x00

0x00

0x00

ATA8510/15

events.system

events.events

dummy

dummy

dummy

data

data

Parameters

  • 0x08 – Command ID
  • length – Number of bytes to be read from SRAM or registers
  • addr_high – High byte of the destination start address
  • addr_low – Low byte of the destination start address
  • 0x00 – Dummy byte (no information)
  • 0x00 – Dummy byte (no information)
  • 0x00 – Dummy byte (no information)

Return Values

  • events.system – Event byte (for details see SPI command “Get Event Bytes”)
  • events.events – Event byte (for details see SPI command “Get Event Bytes”)
  • dummy – Dummy byte (no information)
  • dummy – Dummy byte (no information)
  • dummy – Dummy byte (no information)
  • data – Data byte
  • data – Data byte n (n = length)