Tag Archives: sine

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

Modulo patterns in C (PGM and PPM)

During one my Engineering Computing classes last semester, I was writing an example C program to create a PGM image file when I accidentally produced an interesting pattern. I had been using a simple function of the pixel coordinates x … Continue reading

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