Tag Archives: dsPIC30F4011

Generating antiphase PWM signals with the dsPIC30F4011

I frequently receive queries from people who are using a dsPIC microcontroller to control power electronics of some kind, such as in an inverter, a voltage converter, or similar. Many of these queries relate to the generation of different combinations … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 2 Comments

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 , , , , , , , , , , , , , , , | 16 Comments

First attempt at printing to an LCD display from a dsPIC30F4011

The following example is my first attempt at printing to an LCD display using the dsPIC30F4011 microcontroller. The display I’m using is a 16×1 character screen with what I think is a standard Hitachi interface. It’s my first time using … Continue reading

Posted in Uncategorized | Tagged , , , , | 35 Comments

Simple interrupt-driven sampling example for the dsPIC30F4011

Reader Swetha wrote in with a query about performing 10Hz sampling on a dsPIC30F4011 in some kind of energy monitoring system. The following example illustrates a basic structure for interrupt-driven sampling using Timer 1. I compiled this program with Microchip’s … Continue reading

Posted in PIC | Tagged , , , , , , , , | 6 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

Nasty 4-channel logic analyser using dsPIC30F4011

This post is about a quick and dirty 4-channel logic analyser that I hacked together to get a snapshot of four parallel binary signals from something I was building. I just want to quickly capture this information here for the … Continue reading

Posted in PIC | Tagged , , , , , , , , | 2 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