LPC-2478STK board and hexapod James

Hi all,

A couple of months ago I bought the LPC-2478stk board to experiment with.

I decided to make a hexapod called “James” :stuck_out_tongue: and initialized the board using a gnu compiler toolchain under eclipse. The code is currently running from the internal flash and the LCD framebuffer is in the SDRAM.

With an USB tiny probe I am able to upgrade/debug the board.

Here you can see a movie of my robot : http://www.youtube.com/watch?v=GMMxXjV6AHU

Now the board is currently running on 57.6MHz and runs very stable.

The settings I use at 57.6 MHz are

PLLCFG = PLL_MValue | (PLL_NValue << 16) where PLL_MValue = 11 and PLL_NValue = 0

PLLCON = 3 (fully enabled)

PCLKSEL0 and PCLKSEL0 = 0x55555555

CCLKCFG = 4

USBCLKCFG = 5

MAM settings :

MAMCR = 0;

MAMTIM = 5; (if <5 the uart data at 115200 becomes corrupt/controller hangs)

MAMCR = 2;

The dataspec says the controller can run up to 72MHz but I tried all kind of configurations and did not find a stable one.

Are there people out there that have the board working stable at 72MHz?

I am not an expert at these things so any help is welcome :slight_smile:

Jeroen