UART1 in K64 not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART1 in K64 not working

877件の閲覧回数
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 返答(返信)

694件の閲覧回数
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 件の賞賛
返信

694件の閲覧回数
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 件の賞賛
返信