L6482
Serial interface
Doc ID 023768 Rev 1
41/73
8 Serial
interface
The integrated 8-bit serial peripheral interface (SPI) is used for a synchronous serial
communication between the host microprocessor (always master) and the L6482 (always
slave).
The SPI uses chip select (CS), serial clock (CK), serial data input (SDI) and serial data
output (SDO) pins. When CS is high the device is unselected and the SDO line is inactive
(high impedance).
The communication starts when CS is forced low. The CK line is used for synchronization of
data communication.
All commands and data bytes are shifted into the device through the SDI input, most
significant bit first. The SDI is sampled on the rising edges of the CK.
All output data bytes are shifted out of the device through the SDO output, most significant
bit first. The SDO is latched on the falling edges of the CK. When a return value from the
device is not available, an all zero byte is sent.
After each byte transmission the CS input must be raised and be kept high for at least t
disCS
in order to allow the device to decode the received command and put the return value into
the shift register.
All timing requirements are shown in
for values).
Multiple devices can be connected in daisy chain configuration, as shown in
.
Figure 23.
SPI timings diagram
AM1505
3
v1
CK
S
DI
S
DO
C
S
M
S
B
L
S
B
L
S
B
N-1
N-2
M
S
B
HiZ
N-1
N-2
t
s
etC
S
t
en
S
DO
t
s
et
S
DI
t
hol
S
DI
t
v
S
DO
t
hol
S
DO
t
rCK
t
fCK
t
hCK
t
lCK
t
di
sS
DO
t
holC
S
t
di
s
C
S
M
S
B