I'm trying to generate a modulated UART signal from the standard Tx coming out of my microcontroller. What I'm trying to accomplish is to have a 100us wide pulse generated on every edge (rising/falling) of my UART signal.
My plan was to send the UART out over the Tx pin of the STM32 I'm using, and loop it back into a GPIO. Then I could trigger an interrupt on the rising/falling edges of the GPIO and generate a pulse on an output pin for each interrupt.
My questions are:
Does this make sense?
Is there a better way to do this?
What's the best way to generate the clock (2* Baud Rate) for the modulation?
**Looking for software solutions only if possible.