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.
|_ blink-timer-interrupt
|_ pwm_dma
-
Blink using Timer Interrupt: It is an LED blink program which is implemented using hardware timer interrupt.
-
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.
-
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.
-
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
Also checkout my work with STM32F1: STM32F103 RTOS, STM32F103 UART, STM32F1 GPIO Alternate Functions and, STM32F1 PWM Modes