2 spi read, Figure 22. software mode timing, spi mode, Figure 22 – Cirrus Logic CS4270 User Manual
Page 30: Cs4270

30
DS686F1
CS4270
1. Bring CS low.
2. The address byte on the CDIN pin must then be 10011110 (R/W = 0).
3. Write to the memory address pointer, MAP. This byte points to the register to be written.
4. Write the desired data to the register pointed to by the MAP.
5. If the INCR bit (see
) is set to 1, repeat the previous step until all the desired registers
are written, then bring CS high.
6. If the INCR bit is set to 0 and further SPI writes to other registers are desired, it is necessary to bring
CS high, and follow the procedure detailed from step 1. If no further writes to other registers are
desired, bring CS high
6.2.2
SPI Read
To read from the device, use the following procedure while adhering to the values specified in
Characteristics - Software Mode - SPI Format” section on page 18
.
1. Bring CS low.
2. The address byte on the CDIN pin must then be 10011111 (R/W = 1).
3. CDOUT pin will then output the data from the register pointed to by the MAP, which is set during the
SPI write operation.
4. If the INCR bit (see
) is set to 1, keep CS low and continue providing clocks on CCLK
to read from multiple consecutive registers. Bring CS high when reading is complete.
5. If the INCR bit is set to 0 and further SPI reads from other registers are desired, it is necessary to bring
CS high, and follow the procedure detailed from step 1. If no further reads from other registers are
desired, bring CS high.
M A P
MSB
LSB
DATA
b y te 1
b y te n
R/W
R/W
A D D R E S S
C H IP
ADDRESS
C H IP
MSB
LSB MSB
LSB
MAP = Memory Address Pointer, 8 bits, MSB first
High Impedance
1001111
1001111
CCLK
CDIN
CDOUT
CS
Figure 22. Software Mode Timing, SPI Mode