Created: 11 May 2013, Last modified: 17 May 2013
The LPC810M021FN8 is a very interesting MCU in a 8 pin DIP package, ideal for hobbyist breadboard or through-hole printed circuit board (PCB).
It is designed to replace its 8 bit competitors and part of the Cortex-M0+ family, the most energy efficient ARM processors available.
While only a few pins exist on the LPC810M021FN8 a configurable matrix makes its 2x USART, 1x I2C and 1x SPI available to six of its eight pins.
Memory is limited to 4KB flash and 1KB SRAM.
Clock speeds upto 30 MHz can be used and an internal oscillator is included, reducing to a near zero the need for external components.
In this example we will be using an inexpensive UART/USB adapter and Flashmagic to upload the binary to the MCU.
The needed circuit is very simple because, as stated before, the LPC810M021FN doesn't need any additional components to work.
Pin 5 works as a switch turning on In-System Programming (ISP) when connected to GND.
Pins 8 and 2 will connect to TX and RX on the UART/USB adapter and pins 6 and 7 to +3.3v and GND respectively.
Microbuilder provides an open source code base for LPC810 projects on github.com.
The sources can be compiled with LPCXpresso, a free IDE from NXP, but to save you some trouble here is an already compiled binary LPC810_Blinky_0_2.hex.
Flashmagic is a free and easy to use tool that can upload program files to a large variety of microcontrollers.
Make sure you select the correct COM port where the USB to TTL UART is connected in your computer. In this example COM 5 is selected.
Flashmagic can be downloaded from: http://www.flashmagictool.com/
After uploading the binary we can build the following simple circuit to see a connected led blink.
This time pin 4 is connected to a led followed by a resistor.
When connected +3.3v to pin 6 and GND to pin 7 the led will flash.
Copyright © 2013 João Vilaça