Figure 251. Ti Mode - Slave Mode, Single Transfer - ST STM32F207 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F207 Series:
Table of Contents

Advertisement

Serial peripheral interface (SPI)
After the last sampling clock edge the RXNE bit is set, a copy of the data byte received in
the shift register is moved to the Rx buffer. When the SPI_DR register is read, the SPI
peripheral returns this buffered value.
Clearing of the RXNE bit is performed by reading the SPI_DR register.
SPI TI protocol in slave mode
In slave mode, the SPI interface is compatible with the TI protocol. The FRF bit of the
SPI_CR2 register can be used to configure the slave SPI serial communications to be
compliant with this protocol.
The clock polarity and phase are forced to conform to the TI protocol requirements whatever
the values set in the SPI_CR1 register. NSS management is also specific to the TI protocol
which makes the configuration of NSS management through the SPI_CR1 and SPI_CR2
registers (such as SSM, SSI, SSOE) transparent for the user.
In Slave mode
- Slave mode, continuous
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
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.
NSS
input
SCK
input
MOSI
DONTCARE
input
MISO
output
690/1381
(Figure 251: TI mode - Slave mode, single transfer
transfer), the SPI baud rate prescaler is used to control the
t
baud_rate
×
----------------------------
+
4
t
2

Figure 251. TI mode - Slave mode, single transfer

trigger
sampling
edge
edge
MSBIN
1 or 0
MSBOUT
RM0033 Rev 9
t
baud_rate
<
<
t
----------------------------
pclk
release
trigger
sampling
edge
edge
and
Figure 252: TI mode
×
+
6
t
pclk
2
trigger
sampling
edge
edge
t
Release
LSBIN
DONTCARE
LSBOUT
RM0033
)
release
ai18434

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F207 Series and is the answer not in the manual?

Questions and answers

Table of Contents