Usart TX function is not working

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

Usart TX function is not working

1,575 次查看
k_sunilgupta
Contributor II

Hi to all,

i am using USART0 of LPC54606J512BD100, All configrations are working properly when i put the same code to the developmemnt board but when i suppose to burn same code into my hardware card USART0 Tx not working, i don know why ?

void USART_WRITE(unsigned char *string)
{
while(*string!='\0') // Loop run till value not equal to NULL Character
{
USART0->FIFOWR = *string; // Data Write into FIFO Write Register
string++; // Increment in i variable for next character
}
}

 

while (Tx_NOTFULL & USART0->FIFOSTAT)
{
  USART_WRITE(S_string); // USART_WRITE Function Call

}

 

my core clock is 180MHz

please tell me why Tx function is not working?

 

 

0 项奖励
回复
5 回复数

1,541 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How about  using logic analyzer measure Tx signal, also pay attention whether connected to the right TX pin.

And what is the difference about "Development board" and "Hardware card"?

 

BR

Alice

0 项奖励
回复

1,538 次查看
k_sunilgupta
Contributor II

hi..

i have verified tx pin its ok and Hardware card is the product PCB.

when i am using lpcxpresso54628 development board the same code running  ok and tx signal is showing on CRO as well.

but when i am bruning same code in LPC54606J512BD100 its not working.

here i have also verify the TX pin with datasheet.

0 项奖励
回复

1,517 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

You can check the difference about pin, UART, and clock between the two chips, confirm configure them right.

Also check hardware connection.

Or  create a new project based on LPC54606J512BD100 , then copy function code into it. 

 

BR

Alice

0 项奖励
回复

1,563 次查看
k_sunilgupta
Contributor II

PLEASE REPLY.

0 项奖励
回复

1,555 次查看
k_sunilgupta
Contributor II

.

0 项奖励
回复