DocID018909 Rev 11
873/1731
RM0090
Serial peripheral interface (SPI)
918
In Slave mode (
Figure 249: TI mode - Slave mode, single transfer
- Slave mode, continuous transfer
), the SPI baud rate prescaler is used to control the
moment when the MISO pin state changes to HI-Z. Any baud rate can be used thus allowing
to determine this moment with optimal flexibility. However, the baud rate is generally set to
the external master clock baud rate. The time for the MISO signal to become HI-Z (t
release
)
depends on internal resynchronizations and on the baud rate value set in through BR[2:0] of
SPI_CR1 register. It is given by the formula:
Note:
This feature is not available for Motorola SPI communications (FRF bit set to 0).
To detect TI frame errors in Slave transmitter only mode by using the Error interrupt (ERRIE
= 1), the SPI must be configured in 2-line unidirectional mode by setting BIDIMODE and
BIDIOE to 1 in the SPI_CR1 register. When BIDIMODE is set to 0, OVR is set to 1 because
the data register is never read and error interrupt are always generated, while when
BIDIMODE is set to 1, data are not received and OVR is never set.
Figure 249. TI mode - Slave mode, single transfer
Figure 250. TI mode - Slave mode, continuous transfer
t
baud_rate
2
----------------------
4 t
pclk
×
+
t
release
t
baud_rate
2
----------------------
6 t
pclk
×
+
<
<
AI
-3").
-/3)
INPUT
.33
INPUT
3#+
INPUT
TRIGGER
EDGE
SAMPLING
EDGE
TRIGGER
EDGE
SAMPLING
EDGE
TRIGGER
EDGE
SAMPLING
EDGE
$/.4#!2%
,3").
$/.4#!2%
-)3/
OUTPUT
OR
-3"/54
,3"/54
T
2ELEASE
AI
-3").
-/3)
INPUT
.33
INPUT
3#+
INPUT
TRIGGER
SAMPLING TRIGGER
SAMPLING
TRIGGER
SAMPLING
$/.4#!2%
,3").
$/.4#!2%
-)3/
OUTPUT
OR
-3"/54
,3"/54
-3").
,3").
-3"/54
,3"/54
&2!-%
&2!-%