cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Manchester Encoded bitstream from a GPIO STM32F4

SPaud.1
Associate II

Hello,

I need to generate a Manchester Encoded bitstream from one of the GPIO of STM32F4 with a data rate higher than 1 Mbps. Is it possible to do so? If yes, how can I do so?

5 REPLIES 5

Use a TIM on APB2 to establish rate, use DMA2, and move a pattern buffer to &GPIOx->BSRR

Create the pattern buffer deep enough, and circular, interrupting on DMA HT, TC, so that you can output continuously while decimating interrupt loading.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I Will try it, thanks.

SPaud.1
Associate II

Hi, for now, I tried to transfer bits 0 and 1 to the ODR register of Port D via DMA2 Stream triggered with Timer. I am getting no response on pin PD0. Attached is the source code I have tried.

SPaud.1
Associate II
 
SPaud.1
Associate II