cancel
Showing results for 
Search instead for 
Did you mean: 

How to realize send a data buffer through one gpio?STM32F429

liwei
Associate II

Requirement:

   I need to repeated sending  a data buffer out through one GPIO like PA1,the buffer data is 16bit ,the buffer length about 100, frequency no more than 10MHZ.Can I use the DMA +TIM way to get it?

2 REPLIES 2
mbrossett
Associate III

I don’t think you will be able to use timer and DMA to achieve this. You didn’t specify your minimum bit rate. What about using UART (Tx only)? You should be able to get at least 2Mbps from UART. At the higher UART speeds you may want to consider using the parity bit as well and/or you could append the stream with a checksum.

Hi, Mbrossett,

      Thanks for your advice, my output pulse should be 5-10MHZ,but because I have another requirements, one is the GPIO output pulse quantity should be controlled ,so I think UART  may can't be available. As the below photo shows, the GCK pulse quantity is fixed between two LCK pulse.

 

liwei_0-1725862918748.png