8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
###Clock sources Timers get their clock source from External pins or Internal timer sources.
####External External = pins: TI1 or TI2 or ETR
If ETR is to be input clock:
####Internal One Timer can be used as the prescaler for another.
The first timer update_event, or output_compare signal is used as clock for the second. Uses TRGI to map. Counter mode is set using the TIMx_CR1 reg and CMS bits as indicated in the example below. The counter mode sets whether the update_event occurs on overflow and/or underflow of the Timer.
##Time Base generation A Timer can be used as a Time base generator. A 16bit timer can generate update_events from nanoseconds up to a few minutes.
The calculation is:
update_event = TIM_CLK / (( PSC + 1) * (APR + 1) * (RCR + 1))
where:
####Examples: Basic single update_event
####External clock mode 1 TIM_CLK is replaced by T1x_CLK - an ext freq applied to pins TI1 or 2
####External clock mode 2 TIM_CLK is replaced by ETR_CLK. ETR_PSC is also factored in as follows:
update_event = ETR_CLK / ((ETR_PSC + 1) * ( PSC + 1) * (APR + 1) * (RCR + 1))
####Internal trigger clock mode 1 (ITRx) TIM_CLK is replaced by ITRx_CLK which is the internal trigger freq mapped to timer Trigger input TRGI.
The counter mode indicates if the update_event is generated:
The update_event is also generated by:
refer to Timer app note: DM00042534.pdf