| Electronic Components Datasheet Search |
|
STM32W108HB Datasheet(PDF) 63 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32W108HB Datasheet(HTML) 63 Page - STMicroelectronics |
|
63 / 179 page ![]() STM32W108CB, STM32W108HB Serial interfaces Doc ID 16252 Rev 2 63/179 7.1 Configuration Before using a serial controller, it should be configured and initialized as follows: 1. Set up the parameters specific to the operating mode (master/slave for SPI, baud rate for UART, etc.). 2. Configure the GPIO pins used by the serial controller as shown in Table 9 and Table 10. Section 6.1.2: Configuration on page 47 shows how to configure GPIO pins."If using DMA, set up the DMA and buffers. This is described fully in Section 7.7: DMA channel registers on page 72. 3. If using interrupts, select edge- or level-triggered interrupts with the SCx_INTMODE register, enable the desired second-level interrupt sources in the INT_SCxCFG register, and finally enable the top-level SCx interrupt in the NVIC. 4. Write the serial interface operating mode - SPI, TWI, or UART - to the SCx_MODE register. Table 9. SC1 GPIO usage and configuration Interface PB1 PB2 PB3 PB4 SPI - Master SC1MOSI alternate output (push-pull) SC1MISO input SC1SCLK alternate output (push-pull); special SCLK mode (not used) SPI - Slave SC1MISO alternate output (push-pull) SC1MOSI input SC1SCLK input SC1nSSEL input TWI - Master SC1SDA alternate output (open-drain) SC1SCL alternate output (open-drain) (not used) (not used) UART TXD alternate output (push-pull) RXD input nCTS input (1) 1. used if RTS/CTS hardware flow control is enabled. nRTS alternate output (push-pull) (1) Table 10. SC2 GPIO usage and configuration Interface PA0 PA1 PA2 PA3 SPI - Master SC2MOSI Alternate Output (push-pull) SC2MISO Input SC2SCLK Alternate Output (push-pull), special SCLK mode (not used) SPI - Slave SC2MOSI Alternate Output (push-pull) SC2MISO Input SC2SCLK Input SC2nSSEL Input TWI - Master (not used) SC2SDA Alternate Output (open-drain) SC2SCL Alternate Output (open-drain) (not used) |
|
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 |