Contents RM0394 40.2 SPI main features 1304 40.3 SPI implementation 1304 40.4 SPI functional description 1305 40.4.1 General description 1305 404.2 Communications between one master andone slave 1306 40.4.3 Standard multi-slave communication 1308 40.4.4 Multi-master communication 130g 40.4.5 Slave select (NSS)pin management ....................... .1310 40.4.6 Communication formats 1311 404.7 Configuration of SPI. 1313 40.4.8 Procedure for enabling SPl. 1314 40.4.9 Data transmission and reception procedures 1314 404.10 1324 40.4.11 SPI error flags 1325 40.412 NSS pulse mode 1326 404.13T1m0de.........1326 40.4.14 CRC calculation 1327 40.5 SPlinterrupts............................................ 1329 40.6 SPI registers 1330 40.6.1 SPI control register 1 (SPIx CR1).................... 1330 40.6.2 SPI control register 2(SPIx_CR2) 1332 40.63 SPI status register(SPIx_SR) 1334 40.6.4 SPI data register (SPIx_DR)............................ .1335 40.6.5 SPI CRC polynomial register(SPIx_CRCPR) 1336 40.6.6 SPI Rx CRC register (SPIx RXCRCR)...................... .1336 4067 SPI Tx CRC register(SPIx TXCRCR) 1336 40.6.8 SPI register map 1338 Serial audio interface(SAl) 1339 41.1 Introduction 1339 41.2 SAl main features 1339 41.3 SAl implementation 1340 41.4 SAl functional description 1341 414.1 Sal block diagram .1341 4142 SAl pins and 1342 44444”44444 41.4.3 Main SAl modes .1342 36/1600 RM0394 Rev 4 7
Contents RM0394 36/1600 RM0394 Rev 4 40.2 SPI main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1304 40.3 SPI implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1304 40.4 SPI functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 40.4.1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 40.4.2 Communications between one master and one slave . . . . . . . . . . . . 1306 40.4.3 Standard multi-slave communication . . . . . . . . . . . . . . . . . . . . . . . . . 1308 40.4.4 Multi-master communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1309 40.4.5 Slave select (NSS) pin management . . . . . . . . . . . . . . . . . . . . . . . . . 1310 40.4.6 Communication formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1311 40.4.7 Configuration of SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1313 40.4.8 Procedure for enabling SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1314 40.4.9 Data transmission and reception procedures . . . . . . . . . . . . . . . . . . 1314 40.4.10 SPI status flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1324 40.4.11 SPI error flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1325 40.4.12 NSS pulse mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326 40.4.13 TI mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326 40.4.14 CRC calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1327 40.5 SPI interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1329 40.6 SPI registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1330 40.6.1 SPI control register 1 (SPIx_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1330 40.6.2 SPI control register 2 (SPIx_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1332 40.6.3 SPI status register (SPIx_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1334 40.6.4 SPI data register (SPIx_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1335 40.6.5 SPI CRC polynomial register (SPIx_CRCPR) . . . . . . . . . . . . . . . . . . 1336 40.6.6 SPI Rx CRC register (SPIx_RXCRCR) . . . . . . . . . . . . . . . . . . . . . . . 1336 40.6.7 SPI Tx CRC register (SPIx_TXCRCR) . . . . . . . . . . . . . . . . . . . . . . . 1336 40.6.8 SPI register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1338 41 Serial audio interface (SAI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339 41.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339 41.2 SAI main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339 41.3 SAI implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1340 41.4 SAI functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1341 41.4.1 SAI block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1341 41.4.2 SAI pins and internal signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1342 41.4.3 Main SAI modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1342
RM0394 Contents 414.4 SAl synchronization mode 1343 414.5 Audio data size 1344 41.46 frame synchronization 1344 41.4.7 Slot configuration 1347 414.8 SAl clock generator 134g 4149 Internal FIFOs 1351 41.4.10 AC'97 link controlle 1353 41.4.11 SPDIF output 1354 41.4.12 Specific features 1357 41.4.13 Error flags... 136 41.4.14 Disabling the SAl 1364 41.4.15 SAI DMA interface 1364 41.5 SAl interrupts 1365 41.6 SAI registers. 1366 41.6.1 Configuration register 1 (SAI ACR1) 1366 41.6.2 Configuration register 1(SAIBCR1) 1368 41.6.3 Configuration register 2(SAI ACR2) 1370 41.6.4 Configuration register 2(SAI_BCR2) 1372 416.5 Frame configuration register(SAI_AFRCR) 1374 416.6 Frame configuration register (SAl BFRCR) 1375 41.6.7 Slot register(SAI_ASLOTR) 1377 41.6.8 Slot register(SAI BSLOTR) .1378 4169 Interrupt mask register (SAl AIM) 1379 41.610 Interrupt mask register(SAI_BIM) 1380 41.6.11 Status register (SAl ASR) 1381 416.12 Status register(SAI_BSR) 1383 41.6.13 Clear flag register(SAI_ACLRFR) 1386 41.6.14 Clear flag register(SAl BCLRFR) 1386 41.6.15 Data register(SAI_ADR) 1387 41.6.16 Data register (SAI BDR) 1388 41.6.17 SAl register map .1389 42 Single Wire Protocol Master Interface(SWPMI)................ 1390 42.1 Introduction 1390 42.2 SWPMI main features 1391 42.3 SWPMI functional description 1392 42.3.1 SWPMI block diagram .1392 7 RM0394 Rev 4 3711600
RM0394 Rev 4 37/1600 RM0394 Contents 43 41.4.4 SAI synchronization mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1343 41.4.5 Audio data size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1344 41.4.6 Frame synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1344 41.4.7 Slot configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1347 41.4.8 SAI clock generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1349 41.4.9 Internal FIFOs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351 41.4.10 AC’97 link controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353 41.4.11 SPDIF output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1354 41.4.12 Specific features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1357 41.4.13 Error flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1361 41.4.14 Disabling the SAI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364 41.4.15 SAI DMA interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364 41.5 SAI interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1365 41.6 SAI registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366 41.6.1 Configuration register 1 (SAI_ACR1) . . . . . . . . . . . . . . . . . . . . . . . . . 1366 41.6.2 Configuration register 1 (SAI_BCR1) . . . . . . . . . . . . . . . . . . . . . . . . . 1368 41.6.3 Configuration register 2 (SAI_ACR2) . . . . . . . . . . . . . . . . . . . . . . . . . 1370 41.6.4 Configuration register 2 (SAI_BCR2) . . . . . . . . . . . . . . . . . . . . . . . . . 1372 41.6.5 Frame configuration register (SAI_AFRCR) . . . . . . . . . . . . . . . . . . . 1374 41.6.6 Frame configuration register (SAI_BFRCR) . . . . . . . . . . . . . . . . . . . 1375 41.6.7 Slot register (SAI_ASLOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1377 41.6.8 Slot register (SAI_BSLOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1378 41.6.9 Interrupt mask register (SAI_AIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1379 41.6.10 Interrupt mask register (SAI_BIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1380 41.6.11 Status register (SAI_ASR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1381 41.6.12 Status register (SAI_BSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1383 41.6.13 Clear flag register (SAI_ACLRFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1385 41.6.14 Clear flag register (SAI_BCLRFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1386 41.6.15 Data register (SAI_ADR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1387 41.6.16 Data register (SAI_BDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1388 41.6.17 SAI register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1389 42 Single Wire Protocol Master Interface (SWPMI) . . . . . . . . . . . . . . . . 1390 42.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1390 42.2 SWPMI main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1391 42.3 SWPMI functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1392 42.3.1 SWPMI block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1392
Contents RM0394 4232 SWP initialization and activation 1392 42.3.3 SWP bus states...............1393 42.3.4 SWPMI IO (internal transceiver)bypass. .1394 42.3.5 SWPMI Bit rate 1394 42.3.6 SWPMI frame handling 1395 42.3.7 Transmission procedure 1395 42.3.8 Reception procedure 790 42.3.9 Error management 1404 42.3.10 Loopback mode 1406 42.4 SWPMI low-power modes 1406 42.5 SWPMI interrupts 1407 42.6 SWPMI registers 1408 42.6.1 SWPMI Configuration/Control register (SWPMI CR)........ .1408 4262 SWPMI Bitrate reaister (SWPMI BRR) 1400 42.63 SWPMI Intemupt and Status register(SWPMI_ISR) 1410 42.6.4 SWPMI Interrupt Flag Clear register (SWPMI ICR) 1411 42.6.5 SWPMI Interrupt Enable register(SMPMI_IER) 1412 42.66 SWPMI Receive Frame Length register(SWPMI_RFL) 1413 426.7 SWPMI Transmit data register(SWPMI TDR) 1414 42.6.8 SWPMI Receive data register(SWPMIRDR) 1414 42.6.9 SWPMI Option register (SWPMI OR)...................... .1414 42.6.10 SWPMI register map and reset value table 1416 43 SD/SDIO/MMC card host inte rfa e (SDMMC) 1417 43.1 SDMMC main features 1417 43.2 SDMMC bus topology 1417 43.3 SDMMC functional description............................ 1419 43.3.1 SDMMC adapter 1421 43.3.2 SDMMC APB2 interface 1432 43.4 Card functional description. 1433 43.4.1 Card identification mode 1433 43.4.2 Card reset....... 1433 43.4.3 Operating voltage range validation 1434 434.4 Card identification proces 1434 43.4.5 Block write 1435 4346 Block read 1436 38/1600 RM0394Rev4 7
Contents RM0394 38/1600 RM0394 Rev 4 42.3.2 SWP initialization and activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1392 42.3.3 SWP bus states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1393 42.3.4 SWPMI_IO (internal transceiver) bypass . . . . . . . . . . . . . . . . . . . . . . 1394 42.3.5 SWPMI Bit rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1394 42.3.6 SWPMI frame handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1395 42.3.7 Transmission procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1395 42.3.8 Reception procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1400 42.3.9 Error management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1404 42.3.10 Loopback mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1406 42.4 SWPMI low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1406 42.5 SWPMI interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1407 42.6 SWPMI registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1408 42.6.1 SWPMI Configuration/Control register (SWPMI_CR) . . . . . . . . . . . . 1408 42.6.2 SWPMI Bitrate register (SWPMI_BRR) . . . . . . . . . . . . . . . . . . . . . . . 1409 42.6.3 SWPMI Interrupt and Status register (SWPMI_ISR) . . . . . . . . . . . . . 1410 42.6.4 SWPMI Interrupt Flag Clear register (SWPMI_ICR) . . . . . . . . . . . . . 1411 42.6.5 SWPMI Interrupt Enable register (SMPMI_IER) . . . . . . . . . . . . . . . . 1412 42.6.6 SWPMI Receive Frame Length register (SWPMI_RFL) . . . . . . . . . . 1413 42.6.7 SWPMI Transmit data register (SWPMI_TDR) . . . . . . . . . . . . . . . . . 1414 42.6.8 SWPMI Receive data register (SWPMI_RDR) . . . . . . . . . . . . . . . . . 1414 42.6.9 SWPMI Option register (SWPMI_OR) . . . . . . . . . . . . . . . . . . . . . . . . 1414 42.6.10 SWPMI register map and reset value table . . . . . . . . . . . . . . . . . . . . 1416 43 SD/SDIO/MMC card host interface (SDMMC) . . . . . . . . . . . . . . . . . . 1417 43.1 SDMMC main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1417 43.2 SDMMC bus topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1417 43.3 SDMMC functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1419 43.3.1 SDMMC adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1421 43.3.2 SDMMC APB2 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1432 43.4 Card functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1433 43.4.1 Card identification mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1433 43.4.2 Card reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1433 43.4.3 Operating voltage range validation . . . . . . . . . . . . . . . . . . . . . . . . . . 1434 43.4.4 Card identification process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1434 43.4.5 Block write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1435 43.4.6 Block read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1436
RM0394 Contents 43.4.7 St ss stream write and stream read Mtmeacaaamw ..1436 43.4.8 Erase:group erase and sector erase .1438 43.49 Wide bus selection or deselection 1438 43.4.10 Protection management 1438 43.4.11 Card status register 1442 43.4.12 SD status register 1445 43.4.13 SD l/O mode 1449 43.4.14 Commands and responses 1450 43.5 Response formats 1453 43.51 R1(normal response command) 1454 43.5.2 R1b. 1454 4353 R2(CID,CSD register) 145 43.5.4 R3(OCR register)… .1455 43.5.5 R4(Fast O) ,1455 43.5.6 R4b.............. 145 43.5.7 R5 (interrupt request) 1456 43.5.8 R6 1456 43.6 SDIO l/O card-specific operations 1457 4361 SDIO/read wait operation by SDMMC_D2 signalling... 1457 43.6.2 SDIO read wait operation by stopping SDMMC CK ......... 1458 43.6.3 SDIO suspend/resume operation 1459 43.6.4 SDIO interrupts 1458 43.7 HW flow control... 1458 43.8 SDMMC registers 1459 43.8.1 SDMMC power control register(SDMMC_POWER) 1450 43.82 SDMMC clock control register (SDMMC_CLKCR 1459 43.8.3 SDMMC argument register (SDMMC ARG)............. 1461 43.8.4 SDMMC cor ommand register(SDMMC_CMD) 1461 43.8.5 SDMMC command response register(SDMMC_RESPCMD) 1462 43.8.6 SDMMC response 1..4 register(SDMMC RESPx). 1462 43.8.7 SDMMC data timer register (SDMMC_DTIMER) 1463 43.8.8 SDMMC data length register (SDMMC DLEN)....... 1464 43.8.9 SDMMC data control register(SDMMC_DCTRL) 1464 43.810 SDMMC data counter register(SDMMC_DCOUNT) 1467 43.8.11 SDMMC status register(SDMMC_STA)............. ,1467 43.8.12 SDMMC interrupt clear register(SDMMC_ICR) .1468 RM0394 Rev 4 39/1600
RM0394 Rev 4 39/1600 RM0394 Contents 43 43.4.7 Stream access, stream write and stream read (MultiMediaCard only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1436 43.4.8 Erase: group erase and sector erase . . . . . . . . . . . . . . . . . . . . . . . . 1438 43.4.9 Wide bus selection or deselection . . . . . . . . . . . . . . . . . . . . . . . . . . . 1438 43.4.10 Protection management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1438 43.4.11 Card status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1442 43.4.12 SD status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1445 43.4.13 SD I/O mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1449 43.4.14 Commands and responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1450 43.5 Response formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1453 43.5.1 R1 (normal response command) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1454 43.5.2 R1b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1454 43.5.3 R2 (CID, CSD register) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1454 43.5.4 R3 (OCR register) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455 43.5.5 R4 (Fast I/O) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455 43.5.6 R4b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455 43.5.7 R5 (interrupt request) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1456 43.5.8 R6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1456 43.6 SDIO I/O card-specific operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1457 43.6.1 SDIO I/O read wait operation by SDMMC_D2 signalling . . . . . . . . . . 1457 43.6.2 SDIO read wait operation by stopping SDMMC_CK . . . . . . . . . . . . . 1458 43.6.3 SDIO suspend/resume operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 1458 43.6.4 SDIO interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1458 43.7 HW flow control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1458 43.8 SDMMC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1459 43.8.1 SDMMC power control register (SDMMC_POWER) . . . . . . . . . . . . . 1459 43.8.2 SDMMC clock control register (SDMMC_CLKCR) . . . . . . . . . . . . . . 1459 43.8.3 SDMMC argument register (SDMMC_ARG) . . . . . . . . . . . . . . . . . . . 1461 43.8.4 SDMMC command register (SDMMC_CMD) . . . . . . . . . . . . . . . . . . 1461 43.8.5 SDMMC command response register (SDMMC_RESPCMD) . . . . . . 1462 43.8.6 SDMMC response 1..4 register (SDMMC_RESPx) . . . . . . . . . . . . . . 1462 43.8.7 SDMMC data timer register (SDMMC_DTIMER) . . . . . . . . . . . . . . . . 1463 43.8.8 SDMMC data length register (SDMMC_DLEN) . . . . . . . . . . . . . . . . . 1464 43.8.9 SDMMC data control register (SDMMC_DCTRL) . . . . . . . . . . . . . . . 1464 43.8.10 SDMMC data counter register (SDMMC_DCOUNT) . . . . . . . . . . . . . 1467 43.8.11 SDMMC status register (SDMMC_STA) . . . . . . . . . . . . . . . . . . . . . . 1467 43.8.12 SDMMC interrupt clear register (SDMMC_ICR) . . . . . . . . . . . . . . . . 1468
Contents RM0394 43.8.13 SDMMC mask register(SDMMC_MASK) 1470 43.8.14 SDMMC FIFO counter register(SDMMC_FIFOCNT)............1472 43.8.15 SDMMC data FIFO register(SDMMC FIFO) ..1473 43.8.16 SDMMC register map 1474 Controller area network(bxCAN) 1476 44.1 Introduction 1476 44.2 bxCAN main features 1476 44.3 bxCAN general description.... 1477 4431 CAN2.0B active core 1477 44.32 Control,status and configuration registers 14> 443.3 Tx mailboxes. 1477 44.3.4 Acceptance filters 1478 44.4 bxCAN operating modes 1478 44.4.1 Initialization mode 1478 44.4.2 Normal mode 1479 44.4.3 Sleep mode (low-power) 1479 44.5 Test mode................. 1480 44.5.1 Silent mode 1480 44.5.2 Loop back mode 1487 44.5.3 Loop back combined with silent mode 1481 44.6 Behavior in debug mode 1482 44.7 bxCAN functional description 1482 44.7.1 Transmission handling............,.................... .1482 44.7.2 Time triggered communication mode .1484 44.7.3 Reception handling 1484 44.7.4 ldentifier filtering 1485 4475 Message storage 1489 44.76 Error management 149 44.7.7 Bit timing 1491 44.8 bxCAN interrupts 1494 44.9 CAN registers. 1495 44.9.1 Register access protection 1495 4492 CAN control and status registers 14g5 44.9.3 CAN mailbox registers.............................. 1505 44.9.4 CAN filter registers. ,1512 40/1600 RM0394 Rev 4 7
Contents RM0394 40/1600 RM0394 Rev 4 43.8.13 SDMMC mask register (SDMMC_MASK) . . . . . . . . . . . . . . . . . . . . . 1470 43.8.14 SDMMC FIFO counter register (SDMMC_FIFOCNT) . . . . . . . . . . . . 1472 43.8.15 SDMMC data FIFO register (SDMMC_FIFO) . . . . . . . . . . . . . . . . . . 1473 43.8.16 SDMMC register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1474 44 Controller area network (bxCAN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1476 44.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1476 44.2 bxCAN main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1476 44.3 bxCAN general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477 44.3.1 CAN 2.0B active core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477 44.3.2 Control, status and configuration registers . . . . . . . . . . . . . . . . . . . . 1477 44.3.3 Tx mailboxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477 44.3.4 Acceptance filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1478 44.4 bxCAN operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1478 44.4.1 Initialization mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1478 44.4.2 Normal mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1479 44.4.3 Sleep mode (low-power) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1479 44.5 Test mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1480 44.5.1 Silent mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1480 44.5.2 Loop back mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1481 44.5.3 Loop back combined with silent mode . . . . . . . . . . . . . . . . . . . . . . . . 1481 44.6 Behavior in debug mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1482 44.7 bxCAN functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1482 44.7.1 Transmission handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1482 44.7.2 Time triggered communication mode . . . . . . . . . . . . . . . . . . . . . . . . . 1484 44.7.3 Reception handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1484 44.7.4 Identifier filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1485 44.7.5 Message storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1489 44.7.6 Error management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1491 44.7.7 Bit timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1491 44.8 bxCAN interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1494 44.9 CAN registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1495 44.9.1 Register access protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1495 44.9.2 CAN control and status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1495 44.9.3 CAN mailbox registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1505 44.9.4 CAN filter registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1512