Thanks a lot, the problem was solved in other forum and I want to share, the solution is U5 and U6 are "hard pinned" and not support PPS, we need use directly the "use rs232". With this now I can make tests with the six UART port, I only made some change in the assignation pins and for now, I donīt see problems, thanks and have a good day
Example code
#include <24FJ1024GB606.h>
#use delay(clock=32MHz)
#pin_select U1TX = PIN_F4
#pin_select U1RX = PIN_F5
#use rs232(UART1,BAUD=115200, PARITY=N, BITS=8, STOP=1, RESTART_WDT, ERRORS , STREAM=UART1_STREAM)
#pin_select U2TX = PIN_D4
#pin_select U2RX = PIN_C14
#use rs232(UART2,BAUD=115200, PARITY=N, BITS=8, STOP=1, RESTART_WDT, ERRORS , STREAM=UART2_STREAM)
#pin_select U3TX = PIN_G9
#pin_select U3RX = PIN_D1
#use rs232(UART3,BAUD=115200, PARITY=N, BITS=8, STOP=1, RESTART_WDT, ERRORS , STREAM=UART3_STREAM)
#pin_select U4TX = PIN_B2
#pin_select U4RX = PIN_B4
#use rs232(UART4,BAUD=115200, PARITY=N, BITS=8, STOP=1, RESTART_WDT, ERRORS , STREAM=UART4_STREAM)
// For UART5 and UART6 use hard pinned by datasheet (We can't move these pins)
// TX UART5 = RD1
// RX UART5 = RD6
#use rs232(UART5,BAUD=115200, PARITY=N, BITS=8, STOP=1, RESTART_WDT, ERRORS , STREAM=UART5_STREAM)
// TX UART6 = RB7
// RX UART6 = RB12
#use rs232(UART6,BAUD=115200, PARITY=N, BITS=8, STOP=1, RESTART_WDT, ERRORS , STREAM=UART6_STREAM)
void main() {
while(TRUE);
}