Skip to main content
Visitor II
September 9, 2024
Question

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

  • September 9, 2024
  • 1 reply
  • 710 views

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?

    This topic has been closed for replies.

    1 reply

    Graduate
    September 9, 2024

    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.

    liweiAuthor
    Visitor II
    September 9, 2024

    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