Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| stm32:peripherals:spi [2022/12/27 17:42] – ruan | stm32:peripherals:spi [2022/12/28 08:36] (current) – [SPI_CR1 Configuration register 1] ruan | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| ===== Configuration Registers ===== | ===== Configuration Registers ===== | ||
| - | ==== CRx ==== | + | ==== SPI_CR1 - Configuration register 1 ==== |
| - | + | ||
| - | === CR1 === | + | |
| - | + | ||
| - | Configuration register 1 \\ | + | |
| (not used in I²S mode) | (not used in I²S mode) | ||
| Line 44: | Line 40: | ||
| |:::|1|Data frame: 16 bit|| | |:::|1|Data frame: 16 bit|| | ||
| - | === CR2 === | + | ==== SPI_CR2 - Configuration register 2 ==== |
| - | + | ||
| - | Configuration register 2 | + | |
| \\ {{spi_reg_cr2.svg}} \\ \\ | \\ {{spi_reg_cr2.svg}} \\ \\ | ||
| Line 62: | Line 56: | ||
| |:::|1|TX empty interrupt enabled| | |:::|1|TX empty interrupt enabled| | ||
| - | ==== CRCPR ==== | + | ==== SPI_CRCPR - CRC polynomial register |
| - | + | ||
| - | CRC polynomial register \\ | + | |
| (not used in I²S mode) | (not used in I²S mode) | ||
| Line 71: | Line 63: | ||
| Contains polynomial used to calculate CRC. Reset value: '' | Contains polynomial used to calculate CRC. Reset value: '' | ||
| - | ==== RXCRCR | + | ==== SPI_RXCRCR - RX CRC register |
| - | + | ||
| - | RX CRC register \\ | + | |
| (not used in I²S mode) | (not used in I²S mode) | ||
| Line 80: | Line 70: | ||
| Contains computed CRC value of received bytes. \\ | Contains computed CRC value of received bytes. \\ | ||
| - | ==== TXCRCR | + | ==== SPI_TXCRCR - TX CRC register |
| - | + | ||
| - | TX CRC register \\ | + | |
| (not used in I²S mode) | (not used in I²S mode) | ||
| Line 89: | Line 77: | ||
| Contains computed CRC value of transmitted bytes. \\ | Contains computed CRC value of transmitted bytes. \\ | ||
| - | ==== I2SCFGR | + | ==== SPI_I2SCFGR - I²S configuration register |
| - | + | ||
| - | I²S configuration register \\ | + | |
| (not used in SPI mode) | (not used in SPI mode) | ||
| \\ {{spi_reg_i2scfgr.svg}} \\ \\ | \\ {{spi_reg_i2scfgr.svg}} \\ \\ | ||
| - | ==== I2SPR ==== | + | ==== SPI_I2SPR - I²S prescaler register |
| - | + | ||
| - | I²S prescaler register \\ | + | |
| (not used in SPI mode) | (not used in SPI mode) | ||
| Line 105: | Line 89: | ||
| ===== Data Register ===== | ===== Data Register ===== | ||
| - | ==== DR ==== | + | ==== SPI_DR - Data register |
| - | + | ||
| - | Data register | + | |
| \\ {{spi_reg_dr.svg}} \\ \\ | \\ {{spi_reg_dr.svg}} \\ \\ | ||
| Line 115: | Line 97: | ||
| * Reading from DR reads from RX Buffer. | * Reading from DR reads from RX Buffer. | ||
| \\ | \\ | ||
| - | |||
| - | ===== Legend ===== | ||
| - | |||
| - | \\ {{legende.svg}} \\ \\ | ||
| ===== Programming Example ===== | ===== Programming Example ===== | ||