2011-06-01 08:18 PM
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
2011-06-02 08:46 AM
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