Tag Archives: C

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

Variable exponent in Mandelbrot algorithm

In my previous two posts, I generated images of the Mandelbrot Set using the conventional iterative mapping function to generate the sequence of complex values for each point in the area of the complex plane that was shown. I’m struggling … Continue reading

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

More Mandelbrot

Here’s a modified version of the mandelbrot program from the previous post. This time, the generated images are in colour and output in binary PPM format (which is still uncompressed, but a bit more space efficient than the plain text … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 1 Comment

Visualising the Mandelbrot Set

I suppose it’s about 20 years since I first read about Benoit Mandelbrot and his pioneering work on fractal geometry. Ever since then, I have been intrigued by how fractal images with beautiful and complex textures can emerge from very … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 7 Comments

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

Rational Hunt: Finding a rational approximation to a value

Earlier this afternoon, I was trying to work out why the internal fast RC oscillator in every dsPIC microcontroller (well, every one I’ve used) has a frequency of 7.37MHz. It turns out that it’s because it facilitates the convenient production … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Creating a shadow template of a PGM image

I’ve just been cleaning up a scanned copy of a line drawing on paper. The background of the scanned image is quite dark and the shadowing is a bit uneven over the full image region, which makes it difficult to … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , | 1 Comment