| Electronic Components Datasheet Search |
|
DSP56857 Datasheet(PDF) 289 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
DSP56857 Datasheet(HTML) 289 Page - Freescale Semiconductor, Inc |
|
289 / 662 page ![]() Error Conditions Serial Peripheral Interface (SPI), Rev. 4 Freescale Semiconductor 11-19 Figure 11-12. Clearing SPRF When OVRF Interrupt is Not Enabled 11.9.2 Mode Fault Error Setting the SPMSTR bit selects the Master mode, configuring the SCLK and MOSI pins as outputs and the MISO pin as an input. Clearing SPMSTR selects the Slave mode, configuring the SCLK and MOSI pins as inputs and the MISO pin as an output. The Mode Fault (MODF) bit becomes set any time the state of the Slave Select (SS) pin is inconsistent with the mode selected by SPMSTR. To prevent SPI pin contention and damage to the DSC, a Mode Fault Error occurs if: •The SS pin of a Slave SPI goes high during a transmission. •The SS pin of a Master SPI goes low at any time. To set the MODF flag, the Mode Fault Error Enable (MODFEN) bit must be set. Clearing the MODFEN bit does not clear the MODF flag, but it does prevent the MODF from being set again after the MODF is cleared. MODF generates a Receiver/Error Interrupt request if the Error Interrupt Enable (ERRIE) bit is also set. It is not possible to enable MODF or OVRF individually to generate a Receiver/Error Interrupt request. However, leaving MODFEN low prevents MODF from being set. READ SPDRR READ SPSCR OVRF SPRF DATA 1 DATA 2 DATA 3 DATA 4 1 DATA 1 SETS SPRF BIT. DSC READS SPSCR WITH SPRF BIT SET DSC READS DATA 1 IN SPDRR, DSC READS SPSCR AGAIN DATA 2 SETS SPRF BIT. DSC READS SPSCR WITH SPRF BIT SET DATA 3 SETS OVRF BIT. DATA 3 IS LOST. DSC READS DATA 2 IN SPDRR, DSC READS SPSCR AGAIN DSC READS DATA 2 SPDRR, DATA 4 SETS SPRF BIT. DSC READS SPSCR. DSC READS DATA 4 IN SPDRR, DSC READS SPSCR AGAIN 1 2 3 CLEARING SPRF BIT. 4 TO CHECK OVRF BIT. 5 6 7 8 9 CLEARING SPRF BIT. TO CHECK OVRF BIT. 10 CLEARING OVRF BIT. 11 12 13 14 2 3 4 5 6 7 8 9 10 11 12 13 14 CLEARING SPRF BIT. TO CHECK OVRF BIT. SPI RECEIVE COMPLETE AND OVRF BIT CLEAR. AND OVRF BIT CLEAR. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |