STMicroelectronics AN3332 Application Note Generating PWM signals using STM8S-DISCOVERY

This application user manual provides a short description of how to use the Timer 2 peripheral (TIM2) on the STM8S-DISCOVERY development board to generate three PWM signals. Even though the STM8S-DISCOVERY is built around an STM8S105C6T6, it allows evaluation of the main features of all the STM8S MCUs.


STMicroelectronics AN3332 Application Note Generating PWM signals using STM8S-DISCOVERY - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
7
File format
PDF
File size
86 KB
Published
06 August, 2012
Updated
28 September, 2023
MD5 checksum
0180E7EBBB5DBEB19F538DA9CC85454F

About this manual

This document explains how to configure the Timer 2 (TIM2) peripheral of the STM8S microcontroller, specifically on the STM8S-DISCOVERY evaluation board, to generate Pulse Width Modulation (PWM) signals. It details the hardware requirements and the underlying principle of PWM generation using the TIM2 counter.

What's inside

  • Application overview
  • Hardware requirement
  • Application schematics
  • Application principle
  • Default PWM signals
  • Software description
  • STM8S standard firmware library configuration

Frequently asked questions

What external equipment is required to evaluate the PWM signals?

An oscilloscope is needed as an external resource.

What is the default frequency of the generated PWM signals?

The default frequency for all three channels is 2 KHz.

What is the default duty cycle for Channel 1?

Channel 1 generates a PWM signal with a duty cycle of 50%.

Download PDF (86 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →