Copyright © 2010-2013 Ted Burke, All Rights Reserved.

Blog Stats
- 86,838 hits
-
Recent Posts
- Starting with Circuitry
- PWM servo control example for the PIC18F14K50
- First attempt at printing to an LCD display from a dsPIC30F4011
- A dsPIC program to display bytes received via serial link
- Simple PWM example for the PIC18F4620
- 2-D Linear Interpolation in C
- PIC18F development in Linux using XC8 and pk2cmd
- Gitshots für Windows verwendet CommandCam
- Measuring phase difference between two 50Hz sine waves with the dsPIC30F4011
- Sending a key to a window that’s not in focus (C program)
- Writing bytes to a serial port in C
- Simple command line trick for sending characters to a serial port in Windows
- Another Julia Set animation
- Creating Julia Set images in Python
- Simple interrupt-driven sampling example for the dsPIC30F4011
- Visualising transfer functions in the Z-domain
- Updated version of IGBT control program for buck-boost dc-dc converter
- Nasty 4-channel logic analyser using dsPIC30F4011
- Running CommandCam from Excel using VBA
- IGBT control in a buck-boost DC-DC converter
- Variable exponent in Mandelbrot algorithm
- More Mandelbrot
- Visualising the Mandelbrot Set
- Visualising logistic map chaos
- Vision: a DirectShow machine vision engine
- Setting the precise dimensions of a window
- RoboSlam: robots for beginners
- Simple dsPIC33FJ32MC202 example
- Rational Hunt: Finding a rational approximation to a value
- Servo motor control example for the PIC18F4620
- Polyphonic Keypad
- Creating a shadow template of a PGM image
- Working dsPIC30f4011 code to control servo angle from PC via serial
- Simulating a Ctrl-V keystroke in Win32 (C or C++) using SendInput
- Automating image creation with ImageMagick
- Posting C code on wordpress.com
- Short dsPIC30F4011 program to test output compare SFR values
- PWM Sinewave generation using output compare on dsPIC30F4011
- Drawing Trees with PyCairo
- Basic example program for MSP430G2231
- Ugly speech synthesis in C
- dsPIC Workshop: Digital i/o, timing, PWM, UART
- Using pk2cmd to transfer a hex file onto the dsPIC30F4011
- PWM generation with the dsPIC30F4011
- Printing text from the dsPIC30F4011 to a PC via UART
- Creating a new XC16 project in MPLAB X
- Next programming workshop: 2-4pm Thursday 30-8-2012
- Two square waves with arbitrary phase shift on dsPIC
- dsPIC Programming Workshop
- First Programming Workshop next Wednesday 1-8-2012
Archives
- May 2013 (1)
- April 2013 (4)
- March 2013 (4)
- February 2013 (5)
- January 2013 (5)
- December 2012 (6)
- November 2012 (7)
- October 2012 (7)
- September 2012 (2)
- August 2012 (8)
- July 2012 (1)
- June 2012 (2)
- May 2012 (4)
- April 2012 (7)
- February 2012 (5)
- January 2012 (1)
- December 2011 (2)
- November 2011 (11)
- October 2011 (3)
- August 2011 (1)
- July 2011 (1)
- May 2011 (1)
- April 2011 (4)
- December 2010 (4)
- November 2010 (2)
Tag Archives: PWM
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 dsPIC30F4011, dsPIC, PWM, output compare, IGBT, buck-boost, converter, OC1, OC2, OC3, OC4
22 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 dsPIC30F4011, dsPIC, PWM, duty cycle, output compare, IGBT, buck-boost, converter, OC1, OC2, OC3, OC4
7 Comments
Servo motor control example for the PIC18F4620
This is a simple servo motor control example for the PIC18F4620 microcontroller. The servo is controlled by the PWM signal from CCP1 (pin 17 on the PIC). The PWM period is 20ms and the pulse width varies between 1ms and … Continue reading
Posted in PIC, Uncategorized
Tagged CCP1, CCPR1L, PIC, PIC18F, PIC18F4620, PR2, pulse width, PWM, servo, Tcy
8 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 audio, dsPIC, dsPIC30F, dsPIC30F4011, frequency, keyboard, keypad, matrix, music, OC1R, OC1RS, octave, output compare, PDC1, pitch, polyphonic, PR2, PR3, PTPER, PWM
3 Comments
Working dsPIC30f4011 code to control servo angle from PC via serial
Here’s a working example of servo angle control from the PC, via serial communication to the dsPIC30F4011. The servo angle is set using a 5 character long command: The first character is ‘s’. The remaining four characters, which must all … Continue reading
Posted in Uncategorized
Tagged angle, dsPIC, dsPIC30F, dsPIC30F4011, PDC1, PICkit 2, PTPER, pulse width, PWM, serial, servo, UART
2 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 dead time, deadtime, dsPIC, dsPIC30F4011, inverter, MOSFET, OC1R, OC1RS, OC2R, OC2RS, OCxR, OCxRS, output compare, PR2, push-pull, PWM, XC, XC16
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 dead time, deadtime, dsPIC, dsPIC30F4011, inverter, modulation, MOSFET, OC1R, OC1RS, OC2R, OC2RS, OCxR, OCxRS, output compare, PR2, push-pull, PWM, sine, XC16, xc16-gcc
7 Comments
dsPIC Workshop: Digital i/o, timing, PWM, UART
Today’s dsPIC programming workshop will take place from 2-4pm in room KEG-036, DIT Kevin St. Conall O’Griofa will be co-presenting and Damon Berry will hopefully be helping out too. We’ll be using the following hardware: Laptops, PICkit 2, breadboard, dsPIC30F4011, … Continue reading
Posted in Uncategorized
Tagged C, delays, digital io, dsPIC, dsPIC30F4011, MPLAB, PICkit 2, PICkit2, PWM, UART, XC16
Leave a comment
PWM generation with the dsPIC30F4011
This is a simple example of PWM waveform generation using the dsPIC30F4011 microcontroller. This chip has three PWM channels (pins 33-38), each channel consisting of a pair of pins which can be configured in various ways. The code below enables … Continue reading
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 dsPIC, dsPIC30F, dsPIC30F4011, OC1R, OC1RS, OC2R, OC2RS, output compare, phase, phase shift, PR2, PWM, square wave
14 Comments