Skip to main content
saimaddy123
Associate III
June 2, 2011
Question

Timer pulse of period 10 microseconds(4 microseconds delay + 1 microsecond pulse + 5 microseconds delay)

  • June 2, 2011
  • 1 reply
  • 749 views
Posted on June 02, 2011 at 05:18

Hi,

I would like to generate a timer pulse of period 10microseconds, where first 5 microseconds is LOW and then a pulse of width 1 microsecond followed by 5 microseconds LOW again. 

I looked at examples in ST library like one pulse, external Trigger synchronization etc. They do not appear to fit what I want. Could any one throw any ideas on how this can be done?

Sai

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 2, 2011
    Posted on June 02, 2011 at 17:46

    Not sure if you want one shot, or repetitive.

    SPI in slave mode you can drive the clock, and shift arbitrary patterns, with a controlled frequency/period. The ST part is less flexible than most (8 and 16 bit only). For your pattern shifting at 8 MHz might be viable. If the SPI was programmable for 10 bit you could have used 1 MHz clock.

    Pattern generation could also be achieved by DMAing to a GPIO port. Clocked via a timer set to 1 MHz
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..