AMIS--30532
Registers are updated with
the internal status at the
rising edge of CS
The NEW DATA is written into the
correspondinginternal register at
the rising edge of CS
CS
DI
COMMAND
DATA
COMMAND
READ DATA
from ADDR2
WRITE DATA
to ADDR2
NEW DATA
for ADDR2
COMMAND
or DUMMY
DATA from previous
command or NOT VALID
after POR or RESET
DATA
DATA
DATA
DATA
NEW DATA
from ADDR2
OLD DATA
or NOT VALID
OLD DATA
fromADDR2
OLD DATA
from ADDR2
DO
Figure 23. A WRITE Operation Where DATA from the Master is Written in SPI Register with Address 2 Followed
by a READ Back Operation to Confirm a Correct WRITE Operation
NOTE: The internal data--out shift buffer of AMIS--30532 is updated with the content of the selected SPI register only at the last (every
eight) falling edge of the CLK signal (see SPI Transfer Format and Pin Signals). As a result, new data for transmission cannot be
written to the shift buffer at the beginning of the transfer packet and the first byte shifted out might represent old data.
Table 13. SPI CONTROL REGISTERS (All SPI control registers have Read/Write Access and default to “0” after power--on or
hard reset)
Structure
Bit 7
R/W
0
Bit 6
R/W
0
Bit 5
R/W
0
Bit 4
R/W
0
Bit 3
R/W
0
Bit 2
Bit 1
R/W
0
Bit 0
R/W
0
Content
Access
Reset
Data
R/W
0
--
Address
WR (00h)
CR0 (01h)
CR1 (02h)
CR2 (03h)
CR2 (08h)
WDEN
WDT[3:0]
--
--
Data
SM[2:0]
NXTP
SLP
CUR[4:0]
PWMJ
--
Data
DIRCTRL
MOTEN
--
--
PWMF
EMC[1:0]
Data
SLAG
SLAT
--
--
--
--
Data
M[1:0]
StrB[1:0]
StrC
StrE[1:0]
Where:
R/W
Reset:
Read and Write access
Status after power--On or hard reset
http://onsemi.com
24