EmbeddedRelated.com
Forums

STR9 Timer Prescaler Problem

Started by Nick Harold January 23, 2010
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 http://www.EmbeddedRelated.com