Figure 21. spi write, 3a spi write, Cs4360 – Cirrus Logic CS4360 User Manual

Page 28

Advertising
background image

CS4360

28

DS517F2

4.9.3a

SPI Write

To write to the device, follow the procedure below while adhering to the control port Switching Specifica-
tions in section 3.

1) Bring CS low.

2) The address byte on the CDIN pin must then be 00100000.

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 section 4.9.1a) 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 repeat the procedure detailed from step 1. If no further writes to other registers are de-
sired, bring CS high.

M A P

MSB

L S B

DATA

by te 1

b yte n

R/W

M A P = M e m o ry A d dre s s P o in te r

ADDRESS

C H IP

C D IN

C C L K

CS

0 0 1 0 0 0 0

Figure 21. SPI Write

Advertising