mcPWM A and B

Discussion to talk about hardware related topics only.
Post Reply
xt5160
Posts: 5
Joined: Mon Apr 29, 2013 2:05 pm

mcPWM A and B

Post by xt5160 »

I'm experiencing strange problems with the A and B outputs; if I set mcpwm.sm[0] = 0x0200 I can get an output on A (as expected). The SMVAL[1,2,and3] work exactly as fd9750's code describes (kudos there, Filip). When mcpwm.sm[0] = 0x0000 (INDEP=OFF), the A output disappears, and the B output generates a pulse of opposite polarity, but not the same width as the A output did. In fact, with a clock of 32 MHz, it's 17microseconds long with val[3] set to 1. Any clues? The documentation on the independent/dependent mode is less than clear to me... obviously I'm missing something.
Post Reply