Basic PWM

<< Click to Display Table of Contents >>

Navigation:  STM32F0 Target > Block References > On-chip Peripherals > TIM >

Basic PWM

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?


What can be configured?


Configuration item

Selectable option/ Value



(Select time module for available list)

List of timers available depending on MCU part

PWM Period (seconds)

(Specify period value of PWM pulse)

Note: Period (sec) = 1/Frequency (Hz)


Active High | Active Low

Specify Positive or Negative PWM pulse

Channel 1

(Select Pin for PWM channel 1)

Channel 2

(Select Pin for PWM channel 2)

Channel 3

(Select Pin for PWM channel 3)

Channel 4

(Select Pin for PWM channel 4)

Sample Time (Sec)


Specify block sample time.

When to use this block?

For application which need to encode a data value into PWM signal, for interface with external hardware circuit.