7.6.7 Write SRAM/Register

Description

The SPI command “Write SRAM / Register” writes n (n = length) consecutive data bytes to the SRAM or hardware registers.

Command Frame

Host

0x07

length

addr_high

addr_low

data

data

ATA8510/15

events.system

events.events

dummy

dummy

0x00

0x00

Parameters

  • 0x07 – Command ID
  • length – Number of bytes to be written to SRAM or registers
  • addr_high – High byte of the destination start address
  • addr_low – Low byte of the destination start address
  • data – Data byte 1
  • data – Data byte 2
  • data – Data byte n (n = length)

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)
  • 0x00 – Dummy byte (no information)
  • 0x00 – Dummy byte (no information)
  • 0x00 – Dummy byte (no information)