STR9 Timer Prescaler Problem

Hi All,

I've revisted some of the STR9 Firmware Library Examples and the TIM Example2 works fine and is straight forward but stops working properly when you increase the timer prescale value (TIM_CR2->CC).

The example sets a timer prescale value of 0x20 and an LED is toggled. Increasing the prescale value slows the toggle rate, up until a certain prescale value. At around 0x45 (or something) it doesn't toggle properly. The LED appears either always on or (almost) always off.

The same thing happens if you increase the pCLK prescaler high enough.

This might be unlikely but has anyone had a similar problem with the timer prescaler?

Regards Nick.

--------------------------------------- Posted through

formatting link

Reply to
Nick Harold
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.