LPC824 to LPC84x

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC824 to LPC84x

594 Views
Will0328
Contributor I

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.

0 Kudos
Reply
1 Reply

562 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply