Page 1 of 1

PIC24FJ256GA406 UART Interrupt.(Solved)

Posted: Thu Apr 09, 2020 9:08 am
by seokgi
Please help me.

I am using PIC24FJ256GA406 because I want to use six UARTs.
  UART 1,2,5,6 works fine with TX RX.
However, in UART 3 and 4, TX works well, but interrupt of RX does not work.

Please help me by referring to the program I made.

Thank you.

Re: PIC24FJ256GA406 UART Interrupt.

Posted: Tue Apr 14, 2020 4:15 pm
by Benj
Hello,

It seems odd that specific channels are not working. The code is fairly straightforward so it should either work or give compile errors.

One thing I noticed is that you are calling the same TX function from all of the RX interrupts which could potentially be problematic. It might be better to use a seperate circular buffer component for each RX interrupt and pop any incoming data into the buffer. Then in your main check all of the buffers for data and send this onto the TX function. This should get rid of any potential collisions.

Re: PIC24FJ256GA406 UART 인터럽트.

Posted: Wed Apr 15, 2020 11:50 pm
by seokgi
Hello!
I tested it in many ways, but it failed. The solution was solved by moving the RX pin to another pin. But I still don't know if it's a bad pin.

Thank you.