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
Original Attachment has been moved to: interrupt.rar
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!
-----------------------------------------------------------------------------------------------------------------------
Roy
Probably this line in your code is wrong:
UART_Init(DEMO_UART, &config, CLOCK_GetFreq(DEMO_UART1_CLKSRC));
Regards
Mark