Monthly Archives: March 2013

2-D Linear Interpolation in C

Reader Mote wrote in with an interesting dsPIC programming query about estimating the value of a function of two variables using 2-D linear interpolation in a look-up table. We’re investigating how long it takes to compute a single interpolated value. … Continue reading

Posted in Uncategorized | Leave a comment

PIC18F development in Linux using XC8 and pk2cmd

This post summarises the process of developing a new program for a PIC18F under Linux and downloading it onto the microcontroller. Firstly, download the Linux version of XC8 from microchip.com and install it. Accept all default options. When it asks … Continue reading

Posted in Uncategorized | 4 Comments

Gitshots für Windows verwendet CommandCam

I originally wrote CommandCam (my command line webcam image grabber) for one of my engineering students who needed to add some simple machine vision functionality to his final-year project. To my surprise, we couldn’t find an existing free command line … Continue reading

Posted in Uncategorized | 3 Comments

Measuring phase difference between two 50Hz sine waves with the dsPIC30F4011

Reader Nand wrote in with a query about using the dsPIC30F4011 to measure the phase difference between two 50Hz sine waves. This could, for example, be used to measure the phase difference between voltage and current waveforms in a reactive … Continue reading

Posted in Uncategorized | 4 Comments