cancel
Showing results for 
Search instead for 
Did you mean: 

Transmitting and receiving custom serial bitstream

FAJOL.1
Associate II

Hi Community,

 

1) I have to demodulated a continuous bitstream of 201bit (1ms per bit) sent by a host to my stm32F401RE. Which peripheral would you suggest to use?

2) If I have to transmitt and receive custom serial data  in half duplex with clock in Tx and Rx clock for sampling, which peripheral you suggest to use? In this case datarate is 1Mbps.

Thanks 

 

 

 

4 REPLIES 4
AScha.3
Chief II

Hi,

without more info about bit format or frame sync/start , i can say:

1. Timer input capture (as i use for IR remote signal, which is (also) 1ms bit time )

2. Usart in sync mode

If you feel a post has answered your question, please click "Accept as Solution".

Thanks,

 

Regarding 2, I forgot to say that the serial data is custom lenght bitstream of 200bit ( no pause in the bitstream, no stop bit between words etc..).

Thanks

Such a low bit rate? I would probably use TIM Input Capture or EXTI

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

So... for

1. Timer input capture (-> interrupt )

2. SPI (16bit mode) -> circular DMA ( and you analyse in half/full callbacks the received stream in int16_t arrays)

If you feel a post has answered your question, please click "Accept as Solution".