ST7 Microcontroller PWM Signal Start High Level Application Note AN1504

Explains how to synchronize the PWM signal output of the standard 16-bit timer.


ST7 Microcontroller PWM Signal Start High Level Application Note AN1504 - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
9
File format
PDF
File size
171 KB
Published
06 August, 2012
Updated
30 September, 2023
Model
ST7
MD5 checksum
D0594284F014780754A30B20CFB4F097

About this manual

The document describes an issue with the standard PWM mode of the ST7 microcontroller's 16-bit timer where the output signal starts low after initialization or restart. This delay can cause motors to stall during demagnetization phases because windings are not energized immediately.

To resolve this, the note provides software procedures for two specific cases based on the Output Level bits (OLVL1 and OLVL2). It details how to initialize registers with temporary values to force a high state immediately upon timer start, followed by restoring the correct duty cycle once the counter reaches zero.

What's inside

  • Introduction
  • PWM Mode Description
  • Normal Behaviour
  • First Case: OLVL2=1 and OLVL1=0
  • Second Case: OLVL2=0 and OLVL1=1
  • Initialization Procedures
  • Synchronization Flag Usage

Frequently asked questions

What is the purpose of this application note?

It explains how to synchronize the PWM signal output so it outputs a high state when the counter restarts or starts at the beginning.

Why is starting a PWM signal directly at high level important?

In applications like motor control, it is essential to energize windings immediately after demagnetization; otherwise, the motor can stall.

What happens if a PWM cycle is lost at startup?

If windings are not energized immediately after demagnetization, the motor can stall.

Download PDF (171 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →