Expand description

Timer

Alternate function remapping

This is a list of the remap settings you can use to assign pins to PWM channels and the QEI peripherals

TIM1

Not available on STM32F101.

ChannelTim1NoRemapTim1FullRemap
CH1PA8PE9
CH2PA9PE11
CH3PA10PE13
CH4PA11PE14

TIM2

ChannelTim2NoRemapTim2PartialRemap1Tim2PartialRemap2Tim2FullRemap
CH1PA0PA15PA0PA15
CH2PA1PB3PA1PB3
CH3PA2PA2PB10PB10
CH4PA3PA3PB11PB11

TIM3

ChannelTim3NoRemapTim3PartialRemapTim3FullRemap
CH1PA6PB4PC6
CH2PA7PB5PC7
CH3PB0PB0PC8
CH4PB1PB1PC9

TIM4

Not available on low density devices.

ChannelTim4NoRemapTim4Remap
CH1PB6PD12
CH2PB7PD13
CH3PB8PD14
CH4PB9PD15

Re-exports

pub use pwm_input::*;
pub use delay::*;
pub use counter::*;
pub use pwm::*;

Modules

Delays

Pulse width modulation

This module allows Timer peripherals to be configured as pwm input. In this mode, the timer sample a squared signal to find it’s frequency and duty cycle.

Structs

Enums

Interrupt events

Constants

Traits

Type Definitions

FTimer with precision of 1 ms (1 kHz sampling)

FTimer with precision of 1 μs (1 MHz sampling)