2017-02-28 04:10 AM
how can i configure stm32f103 for software uart implementation, are there any documents, reference manual or source code?
thanks in advance.#uart #stm32f103c8t6 #software-uart2017-03-01 07:59 AM
Hi @
sevim.samet
,You can have a look at
as previously mentioned by @Waclawek.Jan
.This application note provides a basic example of communication between a hardware and a software UART, as well as a summary of CPU load and firmware footprint.
The firmware package is associated to this application note; It contains the source code of the UART emulator with all firmware modules required to run the example. The firmware is provided for STM32F4 MCUs, but can be easily ported to STM32F1 MCUs.Khouloud.
2017-03-01 08:40 AM
The implementation would be very similar to those used for other micros, the more salient question is why, and to achieve what format/speed, input and/or output?
2017-03-07 10:19 AM
Technically, a decent and not high perf TIMER Capture (RX) and Compare (TX) channels should be able to implement a UART with limited baudrate.
2017-03-07 10:38 AM
waclawek.jan wrote:
[ ...] non-standard U[S]ART requirements.This. We're sadly not going to get NRZI clock recovery or hdlc-like zero stuffing out of these USARTs
2017-03-07 11:33 AM
For TX you could likely task an SPI or GPIO+DMA+TIM
For RX, TIM in Input Capture or PWM Input
Emulating chips of yore, consider CPLD/FPGA
2017-11-14 11:00 PM
Can you give some pointer on porting Software UART driver to STM32F3 ?