A concept for how to generate 2 synchronous PWM signals with independent duty cycle, and a synchronous interrupt for trigger ADC conversion. This is targeting PWM-ADC-BEMF velocity control of a brushed DC motor. Due to limitations in the routing of the mbed board, and the design of the peripherals in the LPC17xx MCU, the PWM's are synthesized with a combination of timer matches and software handling to shape the signal. Code is untested for functionality. Testing with a scope for correct function is critical.

Dependencies:   mbed

mbed.bld

Committer:
apullin
Date:
2016-02-24
Revision:
0:eeb86d8390aa

File content as of revision 0:eeb86d8390aa:

http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96