UART1 in K64 not working

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

UART1 in K64 not working

882 次查看
roymessinger
Contributor V

Hi, 

In continuous to my thread here, which dealt with something else, I'm posting my modified UART Interrupt project, from the driver example. I've modified it to work with UART1 but for some reason it does not work. with UART0 (the default) it works great.

The small board below is an RS485 to UART. The UART RX from the small board is connected to J2/4 (TX), the UART TX is connected to J1/16 (RX).

Kerry Zhou, or someone else, can you help?

Thanks,

Roy

 

178444_178444.jpgpastedImage_1.jpg

 

178460_178460.jpgpastedImage_2.jpg

Original Attachment has been moved to: interrupt.rar

0 项奖励
回复
2 回复数

699 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Roymessinger,

   I have modified your interrupt code, now it can work with PTC3,PTC4, UART1. I have test it on my FRDM-K64 board.

   Please unzip my attached .c file to your project.

  •  

     

    Wish it helps you!

    Have a great day,
    Kerry

     

    -----------------------------------------------------------------------------------------------------------------------
    Note: If this post answers your question, please click the Correct Answer button. Thank you!
    -----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

699 次查看
mjbcswitzerland
Specialist V

Roy

Probably this line in your code is wrong:

UART_Init(DEMO_UART, &config, CLOCK_GetFreq(DEMO_UART1_CLKSRC));

Regards

Mark

0 项奖励
回复