anindyamitra15 / stm32f401-getting-started

Based on STM32F401

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started with STM32F401

Introduction

This is a repository where various features of STM32F401 are demonstrated with the help of simple projects. All the projects are developed for Black Pill, based on STM32F401CCU6, on STM32Cube IDE.

Contents

|_ blink-timer-interrupt
|_ pwm_dma
  1. Blink using Timer Interrupt: It is an LED blink program which is implemented using hardware timer interrupt.
    Demo-Blink

  2. DMA PWM: It is an LED fade program that keeps the CPU free and uses DMA to copy the PWM duty cycle values from a lookup table in the memory, in a cyclic mode.
    Demo-DMA-PWM

  3. sPWM Continuous Mode: 50Hz sPWM (sinusoidal PWM) generation using DMA transferred PWM. Useful for building a basic sPWM inverter circuit which can generate 50Hz sine wave signal.
    Demo-sPWM-1

  4. sPWM Push Pull Mode: Push pull mode 50Hz sPWM (sinusoidal PWM) generation using DMA transferred PWM. Useful for building a basic sPWM inverter circuit which can work in a push-pull (saving on the number of FETs, double-ended push-pull vs h-bridge switching, which are the main types of switching used in UPSs) mode and can generate a sine wave of 50Hz
    Demo-sPWM-2


Other experiments:

Also checkout my work with STM32F1: STM32F103 RTOS, STM32F103 UART, STM32F1 GPIO Alternate Functions and, STM32F1 PWM Modes

About

Based on STM32F401


Languages

Language:C 78.7%Language:Assembly 21.0%Language:Python 0.3%