Tag Archives: output compare

Using a dsPIC30F4011 to generating 4 PWM signals with equal duty cycles but at 90 degree phase increments

In a recent comment on one of my blog posts, Saptarshi De posed an interesting problem: How can the dsPIC30F4011 be used to generate four PWM signals of equal (but variable) duty cycle at 90 degree phase increments? Saptarshi wants … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | 18 Comments

Updated version of IGBT control program for buck-boost dc-dc converter

This is an updated version of my IGBT control example for the dsPIC30F4011, which appeared in an earlier post. In this version, an analog control signal on pin AN6 is used to vary the duty cycle of the waveforms produced. … Continue reading

Posted in PIC | Tagged , , , , , , , , , , | 23 Comments

IGBT control in a buck-boost DC-DC converter

Reader Jil Sutaria wrote in a with a query about controlling four IGBTs in a buck-boost DC-DC converter. Some of the main features of this application are: Two pairs of IGBTs need to be controlled. Each pair of IGBTs share … Continue reading

Posted in PIC | Tagged , , , , , , , , , , , | 17 Comments

Polyphonic Keypad

Inspired by Paul Leamy’s dsPIC musical instrument, the microKey, I’ve just created a little polyphonic instrument of my own using a 12-button keypad that Richard Hayes gave me a couple of months ago. The code is set up to scan … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , | 3 Comments

Short dsPIC30F4011 program to test output compare SFR values

I’ve been playing around with the output compare feature of the dsPIC30F4011 microcontroller for the last day or two and finding out some interesting things about it. There are two output compare channels (OC1 on pin 23, OC2 on pin … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

PWM Sinewave generation using output compare on dsPIC30F4011

Reader Manu Abraham wrote in with an interesting query about sinusoidal variation of PWM duty cycle using the output compare feature of the dsPIC30F4011. The 30F4011 has two output compare channels which can be used to very easily generate periodic … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , | 10 Comments

Two square waves with arbitrary phase shift on dsPIC

Reader Imad wrote in with an interesting query about generating two square waves with equal frequency but an arbitrary phase shift between them using a dsPIC microcontroller. I’m still working out the fine details, but here’s the general gist of … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , | 32 Comments