Usart TX function is not working

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

Usart TX function is not working

1,414 Views
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 Kudos
5 Replies

1,380 Views
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 Kudos

1,377 Views
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 Kudos

1,356 Views
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 Kudos

1,402 Views
k_sunilgupta
Contributor II

PLEASE REPLY.

0 Kudos

1,394 Views
k_sunilgupta
Contributor II

.

0 Kudos