Pirates and SPIs

“Pirates and SPIs” sounds like a cheesy adventure story, but I’m afraid it’s more likely to be a serial than an exciting drama. A few days ago I had a delivery of some components I had ordered, including a MCP3002 analogue to digital converter. The data sheet for this device claims that it can do …

Continue reading ‘Pirates and SPIs’ »

Testing memory-mapped IO

Following on from yesterday’s post about developing code which uses the memory-mapped IO on the Raspberry Pi, but on a separate development system which does not have the same hardware, I began to think about the steps needed for testing such code. The first stage is unit-level testing. As much of the code as possible …

Continue reading ‘Testing memory-mapped IO’ »