On 23-02-2009 at 20:34, Anonymous wrote:
It appears you're trying to fire an interrupt at your target output clock rate (3.57 MHz). I'm sorry to say that I don't think the STM32 can handle interrupts that fast. In fact, I think you maxed out your ISR rate at 666 KHz.
On 24-02-2009 at 00:58, Anonymous wrote:
It's a programmer exercise. Take a look at any PWM example on a timer output pin. You'll never achive the rate you're looking for with an interrupt handler. You'll need the help of the timer peripheral. The PWM example will hsow you how. You'll need to experiment. You might not be able to achieve the exact frequency you want because the clock divisors will be small.
Retrieving data ...