i would like to know how to implement a 16bit counter with the st libraries. in fact, in functions, there's no timer mode as counter possible (just compare, pwm, etc, see 91x_tim.h ) ?? Have you any example ? thx Regards
I have a little problem :when I want to change TIM_CLK_APB in order to increase my frequecy of timer, the timer is blocked (no interruptions) ? (with oscillator of 25mhz). Can't go over 32khz ! ! So,What Is the a limitation in frequency for timers?
I don't understand exactly what are you doing, sorry :)
For what I read in the ref. manual you can chose from an external clock or a Peripheral clock divided by prescaler.. Check the setting of APBDIV in the SCU_CLKCTRL. I'm working with a Peripheral clock of 96MHz... theoretically you can work with a tick of 1usec or less. Unfortunately the irq routine require a certain time to be served ;)