English
Language : 

ZAMC4100 Datasheet, PDF (56/155 Pages) Integrated Device Technology – Actuator and Motor Controller
ZAMC4100 Datasheet
Figure 3.10 SPI Frames
CSN
A) Data WRITE Frame
7
MOSI
7
MISO
CMD
SSB
07
0
WR DATA
07
0
PTR DATA
B) Data READ Frame
CSN
7
MOSI
7
MISO
CMD
SSB
07
0
07
0
RD DATA
7
0
7
0
RD DATA
C) Command Byte Structure
76
210
R/W Address[4:0] B
Legend:
R/W = Read / not Write
B= Burst read enable
Reserved bits (keep at 0)
D) Slave Status Byte Structure
ACCSIG
ADCRDYIF
ADCCMPIF
HBOCIF
HSOCIF
ECMCLIF
SEIF
LINIF
76543210
3.7.2. SPI Write Access
In order to write data in the SBC registers, the MCU should send a WRITE frame as shown in Figure 3.10-A.
There are two bytes that the MCU master should send to SBC:
1. Command byte (CMD) with the R/ W bit = 0, 5-bit address value and bit B = 0.
2. Data byte with the binary value that is going to be written into the corresponding address
When the data is shifted into the SBC, it shifts out the following bytes:
3. Slave status byte.
4. The value of the register pointed to by the SPIDPTR register (for more details, see Table 3.50). By
default, SPIDPTR points to the SBC interrupt status register (IRQSTAT).
Note: Because the burst mode is not allowed during an SPI write, the B bit value is “don’t care.” Keep this value
as ‘0’ for future product compatibility.
In order to have a successful data write, the SPI frame length should be exactly 2 bytes, i.e., 16 clocks. If the SPI
slave receives more than 16 clocks between the falling and rising CSN edges, the WRITE frame is ignored and
no WRITE command is executed.
© 2016 Integrated Device Technology, Inc.
56
January 26, 2016