2021-10-17 08:56 AM
I am trying to connect an SPI communication device and a UART communication device to my STM32H7B3I-DK using the STMod+. From the datasheet for the discovery board, SPI and UART use the same lines (pin numbers 3 and 4) to connect the connections on the STMod+ to the discovery board. But then after reading the datasheet for the STMod+, it says that pins 2 and 8, and pins 3 and 9 are the same? This is where I'm a bit confused. So here are my questions:
I have attached screenshots of the datasheets I'm referring to below. Thank you very much for your help!
Solved! Go to Solution.
2021-10-17 09:43 AM
The STMod+ pin 1..4 are the prime pins for Usart xor SPI interfaces. Optionally, if the mcu allows and if only simple 2 wire uart is used, uart and spi can be formed with rx tx using pin 2 and 3, while SPI are using pin 1, 4, 8 and 9. The mcu can output the same peripheral signals on different pins. The I2C bus using pin 7 and 10. The connector is 2mm pitch simple mix of PMOD, Click and Seed grove connectors which extend the ecosystem from Arduino on the Fan out board.
2021-10-17 09:43 AM
The STMod+ pin 1..4 are the prime pins for Usart xor SPI interfaces. Optionally, if the mcu allows and if only simple 2 wire uart is used, uart and spi can be formed with rx tx using pin 2 and 3, while SPI are using pin 1, 4, 8 and 9. The mcu can output the same peripheral signals on different pins. The I2C bus using pin 7 and 10. The connector is 2mm pitch simple mix of PMOD, Click and Seed grove connectors which extend the ecosystem from Arduino on the Fan out board.
2021-10-17 09:45 AM
Also some newer gen usart IP have RX TX swap functions.
2021-10-18 12:34 AM
I see. Thank you for your clarification!