How do we access the port to output a byte of data in paralle
Searched a lot but couldn't find a answer.
LPC_GPIO0->MASK = ~mask;LPC_GPIO0->OUT = val << shift_bits;LPC_GPIO0->MASK = mask;
REG_PIOD_OWER= 0xff; // you only need to do this once REG_PIOD_ODSR = data;
REG_PIOC_OWER= 0x3fc; // again you should only need this once REG_PIOC_ODSR = data << 2;