This program outputs a 50Hz complimentary Sinusoidal PWM signal on PA8 and PB13 on the STM32 Nucleo F103 board. The switching speed is 10kHz. The program uses a mix of mbed functions and/ direct register writes. It makes use of a lookup table generated in Octave (Thanks Richard Hayes) and interrupts to update the duty cycle.

Dependencies:   mbed

Download repository: zip gz

Files at revision 0:d2382fd0cc1a

Name Size Actions
[up]
main.cpp 3997 Revisions Annotate
mbed.bld 65 Revisions Annotate