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

mbed.bld

Committer:
f3d
Date:
2015-12-07
Revision:
0:d2382fd0cc1a

File content as of revision 0:d2382fd0cc1a:

http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b