2016-04-23 10:10 PM
Hello all,
i have a stm32F407VG setup which comunicates telemetry data over a RC receiver from FRSKY, which uses a ''inverted serial protocol''. I am wondering if its posible to invert polarity of the output from 32f4 without aditional hardware, only software based.2016-04-24 05:44 PM
The short answer to your question is, no, it's not possible to invert the output of the UART's on an STM32F4. It is possible to write a ''soft'' UART, or if you know what you're doing you can configure timer/s and DMA, or SPI and DMA, to behave like a UART; any of those could be inverted.
The more important question for you in the short term though is, what signalling levels does your RC system use? If it's inverted, chances are that it uses RS232 (nominally +/-12V) signalling, for which you require a level shifter IC. It may be using TTL levels, but are they 5V or 3.3V (or something else)? Failure to match signalling voltages may cause smoke to issue from one or more parts of your system.