Please enable JavaScript.
Coggle requires JavaScript to display documents.
STM32F4 Config (Peripheral Config (UART Config Step (Enable the GPIO clock…
STM32F4 Config
Peripheral Config
GPIO Config Step
-
- Config GPIO pin(s):
- Pin mode/direction
- Pull-up pull-down resistors connection
- Others
-
- Enable the GPIO clock on the corresponding BUS
UART Config Step
- Enable the GPIO clock on the corresponding BUS
- Config GPIO pins as UART alternate function
- Enable the UART clock on the corresponding BUS
- Config UART:
- baudrate
- frame length
- stop bit
- parity
- mode: receive/transmit
- Others
4.1. For synchronous mode, enable the clock and program the polarity, phase and last bit
- Enable the NVIC and the corresponding UART interrupt
- Enable UART and start receiving/trasmitting
SPI Config Step
- Enable the UART clock on the corresponding BUS
- Config SPI:
- Polarity, Phase, First Data, Baud Rate Prescaler
- Others
- Config GPIO pins as SPI alternate function
- Enable the GPIO clock on the corresponding BUS
- Enable the NVIC and the corresponding SPI interrupt
- Enable SPI and start receiving/trasmitting
CAN Config Step
- Config GPIO pins as CAN alternate function
- Enable the CAN clock on the corresponding BUS
- Enable the GPIO clock on the corresponding BUS
- Config CAN:
- Baudrate Prescaler: 0 to 1023
- CAN Mode: normal/silent mode
- Sync Jump Width
- Time Segment 1
- Time Segment 2
4.1. Config CAN filter:
- Filter ID
- Filter mask ID
- Filter FIFO assignment
- Filter number
- Filter mode
- Filter Scale
-
-