Initializing Dspi In Master/Slave Modes - STMicroelectronics SPC572L series Reference Manual

Table of Contents

Advertisement

Deserial Serial Peripheral Interface (DSPI)
1.
Halt the DSPI by setting MCR[HALT].
2.
Clear the transmit and receive FIFOs by writing a '1' to the CLR_TXF and CLR_RXF
bits in MCR.
3.
Set the appropriate mode in MCR[MSTR] and enable the DSPI by clearing
MCR[HALT].
46.6.3

Initializing DSPI in Master/Slave Modes

Once the appropriate mode in MCR[MSTR] is configured, the DSPI is enabled by clearing
MCR[HALT]. It should be ensured that DSPI Slave is enabled before enabling DSPI Master.
This ensures the Slave is ready to be communicated with, before Master initializes
communication.
46.6.4
Baud rate settings
Table 651
prescaler PBR and the baud rate scaler BR in the CTARs. The values calculated assume a
100 MHz protocol frequency and the double baud rate DBR bit is clear.
Note:
The protocol clock frequency mentioned above is given as an example in this chapter. Refer
to the clocking chapter for the frequency used to drive this module in the device.
1216/2058
shows the baud rate that is generated based on the combination of the baud rate
DocID027809 Rev 4
RM0400

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SPC572L series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents