User's Manual

Table Of Contents
38.3.4.1 When Parity is Disabled (SPCR2.SPPE = 0) ................................................................1375
38.3.4.2 When Parity is Enabled (SPCR2.SPPE = 1) .................................................................1379
38.3.5 Transfer Format ......................................................................................................................1383
38.3.5.1 CPHA = 0 ......................................................................................................................1383
38.3.5.2 CPHA = 1 ......................................................................................................................1384
38.3.6 Communications Operating Mode ..........................................................................................1385
38.3.6.1 Full-Duplex Synchronous Serial Communications (SPCR.TXMD = 0) .......................1385
38.3.6.2 Transmit Operations Only (SPCR.TXMD = 1) .............................................................1386
38.3.7 Transmit Buffer Empty/Receive Buffer Full Interrupts .........................................................1387
38.3.8 Error Detection .......................................................................................................................1389
38.3.8.1 Overrun Error ................................................................................................................1390
38.3.8.2 Parity Error ....................................................................................................................1392
38.3.8.3 Mode Fault Error ...........................................................................................................1393
38.3.9 Initializing RSPI .....................................................................................................................1394
38.3.9.1 Initialization by Clearing the SPE Bit ...........................................................................1394
38.3.9.2 System Reset .................................................................................................................1394
38.3.10 SPI Operation .........................................................................................................................1395
38.3.10.1 Master Mode Operation .................................................................................................1395
38.3.10.2 Slave Mode Operation ...................................................................................................1405
38.3.11 Clock Synchronous Operation ................................................................................................1409
38.3.11.1 Master Mode Operation .................................................................................................1409
38.3.11.2 Slave Mode Operation ...................................................................................................1413
38.3.12 Loopback Mode ......................................................................................................................1415
38.3.13 Self-Diagnosis of Parity Bit Function ....................................................................................1416
38.3.14 Interrupt Sources .....................................................................................................................1417
38.4 Link Operation by Event Linking ....................................................................................................1418
38.4.1 Receive Buffer Full Event Output ..........................................................................................1418
38.4.2 Transmit Buffer Empty Event Output ....................................................................................1418
38.4.3 Mode Fault, Overrun, or Parity Error Event Output ...............................................................1418
38.4.4 RSPI Idle Event Output ..........................................................................................................1419
38.4.5 Transmission-Completed Event Output .................................................................................1419
38.5 Usage Notes .....................................................................................................................................
1420
38.5.1 Setting Module Stop Function ................................................................................................1420
38.5.2 Note on Low Power Consumption Functions .........................................................................1420
38.5.3 Notes on Starting Transfer ......................................................................................................1420
38.5.4 Notes on the SPRF and SPTEF flags ......................................................................................1420
39. CRC Calculator (CRC) ............................................................................................................... 1421
39.1 Overview .........................................................................................................................................1421
39.2 Register Descriptions .......................................................................................................................1422
39.2.1 CRC Control Register (CRCCR) ............................................................................................1422
39.2.2 CRC Data Input Register (CRCDIR) .....................................................................................1422