PWM Init

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Revision as of 12:36, 22 March 2017 by Jasonvankolfschoten (talk | contribs) (Created page with "{{HANcoder/block| info= A 'PWM Init' block configures one of the STM32 timer modules for PWM functionality, allowing a PWM signal to be generated on up to 4 timer channels an...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Supported Targets: Olimexino, E407, P405

General information about PWM Init

A 'PWM Init' block configures one of the STM32 timer modules for PWM functionality, allowing a PWM signal to be generated on up to 4 timer channels and their associated output pins. Additionally, a function-call subsystem can be connected to the IRQ output. The subsystem will execute each time a PWM period completes.

The generation of the PWM signal can be enabled and disabled per channel.

The frequency of the PWM signal is configured on a module level. So the same configured frequency is used on all enabled channels.

The timer module 1 on the STM32 (TIM1) has a special feature on the first 3 channels. It can output 2 signals on 2 micro controller pins where the second signal is the inverted of the first signal.

Block

PWMInit.png

Mask

PWMInitMask.png