ZHCSHN9A February 2018 – April 2018 LMK05028
PRODUCTION DATA.
When started in SPI mode (HW_SW_CTRL = float), the device uses a 4-wire SPI interface with SDI, SCK, SDO, and SCS signals. The host device must present data to the device MSB first. A message includes a transfer direction bit (W/R), a 15-bit address field (A14 to A0), and a 8-bit data field (D7 to D0) as shown in Figure 63. The W/R bit is 0 for a SPI write and 1 for a SPI read.
A message frame is initiated by asserting SCS low. The frame ends when SCS is deasserted high. The first bit transferred is the W/R bit. The next 15 bits are the register address, and the remaining 8 bits are data. On write transfers, data is committed in bytes as the final data bit (D0) is clocked in on the rising edge of SCK. If the write access is not an even multiple of 8 clocks, the trailing data bits are not committed. On read transfers, data bits are clocked out from the SDO pin on the falling edges of SCK.