Data Sheet

AMIS30543
http://onsemi.com
33
DI
CS
DO
WRITE DATA to ADDR3
NEW DATA for ADDR3
OLD DATA from ADDR3OLD DATA or NOT VALID
COMMAND
DATA DATA
DATA from previous command or
NOT VALID after POR or RESET
DATA
Figure 21. Single WRITE Operation Where DATA from the Master is Written in SPI Register with Address 3
The NEW DATA is written into the corresponding
internal register at the rising edge of CS
Examples of combined READ and WRITE
Operations
In the following examples successive READ and WRITE
operations are combined. In Figure 22 the Master first reads
the status from Register at ADDR4 and at ADDR5 followed
by writing a control byte in Control Register at ADDR2.
Note that during the write command the old data of the
pointed register is returned at the moment the new data is
shifted in
DI
CS
DO
READ DATA
from ADDR4
OLD DATA
or NOT VALID
COMMAND
DATA
DATA
DATA from previous
command or NOT VALID
after POR or RESET
COMMAND
COMMAND
DATA
DATA
DATA
DATA
from ADDR4
READ DATA
from ADDR5
DATA
from ADDR5
WRITE DATA
to ADDR 2
NEW DATA
for ADDR2
OLD DATA
from ADDR2
Figure 22. 2 Successive READ Commands Followed by a WRITE Command
Registers are updated with the internal
status at the rising edge of the internal
AMIS30543 clock when CS
= 1
The NEW DATA is written into the
corresponding internal register at
the rising edge of CS
After the write operation the Master could initiate a read
back command in order to verify the data correctly written
as illustrated in Figure 23. During reception of the READ
command the old data is returned for a second time. Only
after receiving the READ command the new data is
transmitted. This rule also applies when the master device
wants to initiate an SPI transfer to read the Status Registers.
Because the internal system clock updates the Status
Registers only when CS
line is high, the first read out byte
might represent old status information.