Linux Format

Learn how to program the 50 pence chip

OUR EXPERT

Mike Bedford discovered PICs many years ago and felt an immediate affinity since they provided an ideal way of working on hardware and software together.

With the entry-level boards in Raspberry Pi family costing less than £5, we’re fully conversant with the low cost of computing power. Yet if you’ve not encountered them before, the price of chips in the PIC microcontroller range from Microchip Technology might still be surprising. The fact is that an entry-level PIC chip can be bought for about 40p, and this drops to as little as 25p in high volumes.

Needless to say, these chips don’t offer a lot of processing power – in fact many of them wouldn’t even be able to support an operating system. Yet in many embedded applications – that’s where the processor works invisibly in the background – the requirement for number crunching is minimal, and an operating system is unnecessary. What’s more, as we’re about to see, those cheap chips contain a lot of circuitry like memory that you might expect to be external to the processor.

Here we introduce you to PIC microcontroller chips and show you how to program them using the MPLAB Xpress IDE and a Curiosity development board. Although real-world applications of PIC devices involve using just the chip which you’d incorporate into your own circuit board, using a ready-made board for learning to develop code offers a simple, ready-to-go solution at low-cost.

A key thing to bear in mind about PIC chips is that they’re microcontrollers, not microprocessors. This means that they’re effectively microprocessors with the addition of on-chip RAM, flash storage, non-volatile program memory, and input/ output circuitry for interfacing to real-world devices. For this reason they

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format9 min read
Create Old-school Pixel Art Images
Credit: www.gimp.org Think of retro games and you’ll probably think of the pixellated look of titles released on consoles such as the NES. Games such as Bomberman and Kid Icarus worked within the limitations of ’80s technology, yet offered hours of f
Linux Format5 min read
Vintage PC options
Having got LMDE installed on our woefully underpowered EeePC, it became apparent that the machine wasn’t going to be very useful. Except for pandering to our sense of nostalgia. According to Systemd-analyze, it took a minute to boot (as far as the lo
Linux Format1 min read
Tom’s HARDWARE
No matter if you're building a PC, buying a laptop or learning about robots, Tom’s Hardware has all the comprehensive knowledge you need. Scan & Subscribe for free! ■

Related