LPC824 to LPC84x

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC824 to LPC84x

593 次查看
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 项奖励
回复
1 回复

561 次查看
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 项奖励
回复