mcPWM A and B
Posted: Wed Jun 19, 2013 6:08 pm
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.