| Electronic Components Datasheet Search |
|
STM32W108HB Datasheet(PDF) 108 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32W108HB Datasheet(HTML) 108 Page - STMicroelectronics |
|
108 / 278 page ![]() Serial interfaces STM32W108HB STM32W108CC STM32W108CB STM32W108CZ 108/278 Doc ID 16252 Rev 14 Direction GPIO configuration SC1 pin SC2 pin 9.3.1 Setup and configuration Both serial controllers, SC1 and SC2, support SPI master mode. SPI master mode is enabled by the following register settings: ● The serial controller mode register (SCx_CR) is ‘2’. ● The MSTR bit in the SPI configuration register (SCx_SPICR) is ‘1’. ● The ACK bit in the I2C control register (SCx_I2CCR2) is ‘1’. The SPI serial clock (SCLK) is produced by a programmable clock generator. The serial clock is produced by dividing down 12 MHz according to this equation: Rate 12MHz LIN 1 + ()x2EXP ----------------------------------------- = EXP is the value written to the SCx_CRR2 register and LIN is the value written to the SCx_CRR1 register. The SPI master mode clock may not exceed 6 Mbps, so EXP and LIN cannot both be zero. The SPI master controller supports various frame formats depending upon the clock polarity (CPOL), clock phase (CPHA), and direction of data (LSBFIRST) (see SPI master mode formats on page 109). The bits CPOL, CPHA, and LSBFIRST are defined within the SCx_SPICR register. Table 21. SPI master GPIO usage Parameter MOSI MISO SCLK Output Input Output Alternate Output (push-pull) Input Alternate Output (push-pull) Special SCLK mode PB1 PB2 PB3 PA0 PA1 PA2 |
|
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 |