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

Download repository: zip gz

Files at revision 0:eeb86d8390aa

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