Question
Using two UART
Posted on October 21, 2015 at 20:31
Hello,
I using STM periph. library and I would need to use two UARTs on STM32F103. One UART for serial Modbus RTU comunication with sensors and one UART for terminal interface which will show data from sensors and provide a possibility to set up some parameters like Slave ID, function code, etc. Now, I have implemented one UART with Rx and Tx FIFO buffers and I'm using printf function. How is it possible to implement second UART and using printf (or printf-like) function also for that?Thank you. Ivan