Tag Archives: xc16-gcc

Simple dsPIC33FJ32MC202 example

This is a very simple example circuit and C program for Microchip’s dsPIC33FJ32MC202 microcontroller. The basic circuit used to connect the PICkit 2 to the dsPIC33FJ32MC202 is shown below. One thing that confused me when I tried to wire this … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 19 Comments

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

Using pk2cmd to transfer a hex file onto the dsPIC30F4011

Since upgrading to MPLAB X, I’ve had difficulty using the PICkit2 from within the IDE, so I’ve mainly been using the PICkit2 helper application to transfer my compiled hex files to the dsPIC. However, there is another handy way of … Continue reading

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