I am trying to print using the second UART it prints nothing on hyperteminal, but UART1 works fine.
Its a development board so I guess it wouldnt be any hardware connection error.
To use UART2 any setting recommended ?
I used sp3232ebcy-lt/R for connecting. in the schematic it doesnt look like any multiplexing done. they are connected separately. UART 1 - 51(RP16, TX) & 52(RP30,RX) pins , UART 2 - 53(RP15,TX) & 50(RP17,RX) pins.
Yes they are not the same set of pins, though schematic showed its TX2 for uart2, pins are as UART 1 - 51(RP16, TX) & 52(RP30,RX) pins , UART 2 - 53(RP15,TX) & 50(RP17,RX). so need to configure UART3 for the processor.
even then it didn't work.
You are just using the same code for two UARTs but one is working and another one is not working.
Why don you interchange them one by one like,
code of U3 first and U1 second
pins of U1 to U3 and
pins of U3 to U1
In this process you will find the reason for your problem. Please report me after doing this, I cant execute the code bcs proteus is not having pic24F.