STM32_ST_TIM

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
halba
Posts: 18
Joined: Sun May 10, 2015 9:13 am

STM32_ST_TIM

Post by halba »

Hello Giovanni,

I need to use different timer than timer 2 for STM32_ST_TIM on the STM32F072C8 and there is no other 32-bit timer. Can I use 16-bit timer? What is the limitation? Can I eventually use the RTC?

Thanks,
halba
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32_ST_TIM

Post by Giovanni »

Hi,

The limitation is that your system time is a 16 bits variable, so assuming the systick is 10kHz it is a 6.5seconds maximum interval.

You may want to use a lower frequency, 1kHz for example (65 seconds).

RTC cannot be used for this, make sure to select 16 bits in chconf.h.

Giovanni
Post Reply