‎2018-09-03 05:28 AM
try to understand the softuart but i couldn't get any example so please send me the sample code of that
thank you in advance
‎2018-09-03 06:24 AM
Hello @RANGASWAMY HB​ ,
You can have a look to any UART example available in STM32CubeF4 firmware package, as:
STM32Cube_FW_F4_V1.21.0\Projects\STM32F401-Discovery\Examples\UART
You may re-use sections available in the example or get inspired from them.
With Regards,
Imen
‎2018-09-03 07:01 AM
The OP is looking for a software (bit-bang, timer) USART implementation not a hardware (peripheral) USART.
‎2018-09-03 07:02 AM
There is no soft uart example for the F407.
And it doesn't make sense, if you have 6 real uarts available.
TI used to have soft driver variants for their TM4C series, for UART, I2C, and SPI AFAIK.
‎2018-09-03 11:24 AM
https://www.st.com/en/embedded-software/stsw-stm32156.html
> And it doesn't make sense, if you have 6 real uarts available.
You'd be surprised how much sense it may make, at times... :)
JW
‎2018-09-03 09:36 PM
hello JW
please some one provide me any example of softuart for stm32 series board.
thank you
‎2018-09-03 10:40 PM
> You'd be surprised how much sense it may make, at times... =)
I know, there is a pin mux problem sometimes. I would resort to tricks like external switches, instead of re-implementing an uart peripheral. Had to do "soft" versions for PICs with 2 uarts, and don't miss it.
@ RANGASWAMY:
Get the TI soft-uart code for their M4 and port it to the STM32.
Or write it yourself, which is not really difficult.