Hello guys,
I am currently trying to use the MCPWM on my pic18F4331 (20 MHZ external oscillator)
I am trying to control a brushless dc motor with 12 IGBT's so I need 12 outputs. Amongst these 6 outputs, I want to use the PMW0 to PMW5 one at a time. Because I get inputs from my encoder, telling me when to switch which PWM.
I have been searching the forum, and it helped me a lot, I have used the code described here : http://www.picbasic.co.uk/forum/show...3820#post43820
I'm looking over the datasheet, i'm still pretty new at this but, i can't figure out how to use one pwm at a time. (I only need one duty cycle for all of them)
Thank you very much in advance for your answers..
Bookmarks