Added an ADC test program to the LPC824 example set over on eleceng.dit.ie
Month: May 2015
Sample code for the LPC824
I’ve been experimenting with the LPC824 microcontroller from NXP. Details can be found here over at eleceng.dit.ie. The examples program the device using its In System Programming (ISP) bootloader. The basic circuit is as follows:
.
Big thanks to Joe Desbonnet for the chips and adapter.
Patching LPC21ISP for lpc824
LPC21ISP (http://sourceforge.net/projects/lpc21isp/) is a great program for loading firmware on to NXP’s LPC family of microcontrollers. Version 1.97 doesn’t support the new lpc824 chip so I had to patch it by inserting a new entry in the LPCtypes array in lpcprog.c as shown below.
static LPC_DEVICE_TYPE LPCtypes[] =
{
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, CHIP_VARIANT_NONE }, /* unknown */
// id, id2, use id2, name of product, flash size, ram size, total number of sector, max copy size, sector table, chip variant
{ 0x00008100, 0x00000000, 0, "810M021FN8", 4, 1, 4, 256, SectorTable_8xx, CHIP_VARIANT_LPC8XX },
{ 0x00008110, 0x00000000, 0, "811M001FDH16", 8, 2, 8, 1024, SectorTable_8xx, CHIP_VARIANT_LPC8XX },
{ 0x00008120, 0x00000000, 0, "812M101FDH16", 16, 4, 16, 1024, SectorTable_8xx, CHIP_VARIANT_LPC8XX },
{ 0x00008121, 0x00000000, 0, "812M101FD20", 16, 4, 16, 1024, SectorTable_8xx, CHIP_VARIANT_LPC8XX },
{ 0x00008122, 0x00000000, 0, "812M101FDH20", 16, 4, 16, 1024, SectorTable_8xx, CHIP_VARIANT_LPC8XX },
{ 0x00008242, 0x00000000, 0, "824M201JDH20", 32, 8, 32, 1024, SectorTable_8xx, CHIP_VARIANT_LPC8XX },
Save, make and run.