Content originally posted in LPCWare by bobi-one on Wed Jun 08 11:51:48 MST 2011 What is the fastest way to put some 16 bit value on port 2 and 3 of the lpc1343? this is the way I'm doing it. void Write16(unsigned int data)
{
LPC_GPIO2->MASKED_ACCESS[0xFFF] = data;
LPC_GPIO3->MASKED_ACCESS[0x00F] = data >> 12;
}