Understanding the difference between USART and SPI controllers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-04-28 6:16 AM
Hi, we are surveying microcontrollers for a new product where we need at least 2 SPI interfaces and 2 uart interfaces. All of these 4 interfaces will have to be able to operate concurrently.
I have some trouble understanding if e.g. the STM32F401VB will suffice. It is listed with 4 SPI interfaces and 3 USART interfaces. Are all of these actually independent serial bus controllers, or are some of these the same?In short: Requiring communication on 2 UART lines and 2 SPI lines, all in concurrency, will the STM32F401(VB) meet my demands?//Audun Knudsrod #!stm32f4-!stm32f401-!spi-!usart- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-04-28 6:25 AM
The USART and SPI peripherals are independent. You would need to review the Data Manual for the specific part and identify the pins you need for the RX, TX, MISO, MOSI, CLK, etc
I'd expect the part to be able to escape pins for 2x SPI and 3x USART, but you'll need to do the due diligence work on that.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-04-29 12:17 AM
The STM32CubeMX tool from ST will allow you to choose the microcontroller and select the peripherals you want and map them to pins graphically. It's a useful sanity check even if you don't want to use the code generation features.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-04-29 12:17 AM
Thanks.
I am used to SPI controllers being extensions to USART controllers, so I was a bit uncertain about how that actually added up- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-04-30 2:25 AM
