STM32F4 Timer simplified block diagram

 

Timers TIM1 and TIM8 use 16-bit counters and are the most complex timers of all timers included in the microcontroller.

Timers TIM2 and TIM5 are 32-bit versions of TIM1/TIM8, but have less hardware included and therefore less options.

Timers TIM3 and TIM4 are 16-bit versions of TIM2/TIM5.

Timers TIM9, TIM10 and on are stripped-down versions of timer TIM4, and so on.

 

A simplified block diagram for timer TIM2 is given in Fig. 9.2 (reference manual RM0090, Figure 134, page 577).

The content of the counter CNT (yellow) is available in register TIM2_CNT.

 

The counter advances on transitions of the clock signal CK_PSC.

This clock signal comes through a set of modules (light blue boxes and light green multiplexors) at the top of Fig. 9.2.

Several signals are offered to become the source of the clock signal, and multiplexors select one of them as the ‘CK_PSC’.

The user can configure multiplexors to pass signals connected to pins marked TIMx_CH1 to TIMx_CH4 or TIMx_ETR.

Alternatively, multiplexors can be configured to pass internally generated signals ITR0 to ITR3

or even internal clock signal CK_INT as a clock CK_PSC.

The counter can also be fed by some internally derived signals like TI1FP1, TI2FP2, and then some.

Details are given in reference manual RM0090, chapter 18.

Due to the availability of pins at the STM32F4-Discovery board and the limitations imposed by the BaseBoard

we will use pin 15, port A, and designate it as a source of signal TIM2_ETR,

which will in turn be routed through multiplexors to become the clock signal CK_PSC.

This pin is available at the connector K406 at the edge of the BaseBoard.

The timer block houses additional sub-blocks, which will not be used in this experiment on counting.

These blocks include prescaler modules, capture and compare modules, output modules and reload logic;

this will be used in subsequent experiments.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值