Programming the LPC810M021FN8

Created: 11 May 2013, Last modified: 17 May 2013

A tiny 32 bit Cortex M0+

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.

Circuit for In-System Programming

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.

LPC810 ready for ISP programming

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.

Open source example program

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.

Uploading the program with Flashmagic

Flashmagic is a free and easy to use tool that can upload program files to a large variety of microcontrollers.

Flash magic screenshot

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/

Simple circuit for blinking led

After uploading the binary we can build the following simple circuit to see a connected led blink.

LPC1114 circuit

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.

LPC810M021FN8 Pinout Diagram

LPC810M021FN8

LPC810M021FN8 Pin reference

PIN GPIO ISP JTAG Other
1 PIO0_5 RESET
2 PIO0_4 TX TRST WAKEUP
3 PIO0_3 TCK SWCLK
4 PIO0_2 TMS SWDIO
5 PIO0_1 TDI CLKIN
6 Vdd
7 Vss
8 PIO0_0 RX TDO

Copyright © 2013 João Vilaça