In the LPC824 based project, I used the following code to initialize the UART:
LPC_SWM->PINASSIGN[0] &= ~( 0xFFFF << 0 );
LPC_SWM->PINASSIGN[0] |= ( 4 << 0 );
LPC_SWM->PINASSIGN[0] |= ( 0 << 8 );
LPC_SYSCON->UARTCLKDIV = 1;
LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 14);
...............
But I couldn't find the definition of UARTCLKDIV in the syscon of LP844.h and LP845.h files.
Hello @Will0328
They are not the same, please refer to UART demo for LPC845 under SDK.
Download from:
https://mcuxpresso.nxp.com/en/select
BR
Alice