4 spi format, 1 writing in spi, Figure 7. control port timing, i·c format – Cirrus Logic CS4362 User Manual
Page 31: Figure 8. control port timing, spi format, Figure 7, Cs4362

DS257F2
31
CS4362
7.4
SPI Format
In SPI format, CS is the CS4362 chip select signal, CCLK is the control port bit clock, CDIN is the input data
line from the microcontroller
and the chip address is 0011000. CS, CCLK and CDIN are all inputs and data
is clocked in on the rising edge of CCLK.
Note:
The CS4362 is write-only when in SPI format.
7.4.1
Writing in SPI
shows the operation of the control port in SPI format. To write to a register, bring CS low. The
first 7 bits on CDIN form the chip address and must be 0011000. The eighth bit is a read/write indicator
(R/W), which must be low to write. The next 8 bits form the Memory Address Pointer (MAP), which is set
to the address of the register that is to be updated. The next 8 bits are the data which will be placed into
register designated by the MAP. To write multiple registers, keep CS low and continue providing clocks
on CCLK. End the read transaction by setting CS high.
S D A
S C L
0 0 1 1 0 0
A D D R
A D 0
R /W
S ta r t
A C K
D A T A
1 -8
A C K
D A T A
1 -8
A C K
S to p
N o te : If o p e r a tio n i s a w r ite , th is b y te c o n ta in s th e M e m o ry A d d r e s s P o in te r , M A P .
N o te 1
Figure 7. Control Port Timing, I²C Format
M A P
M S B
L S B
D A T A
b y t e 1
b y t e n
R / W
M A P = M e m o r y A d d r e s s P o i n t e r
A D D R E S S
C H I P
C D I N
C C L K
C S
0 0 1 1 0 0 0
Figure 8. Control Port Timing, SPI Format