Sorry another problem need to be figured

Hey! After my first thread,i came again for this question.
I have an EasyPIC Fusion board with a PIC24FJ128GA310 MCU card. I’m having problems getting the UART to work. The project settings are set for an 8.00 Mhz clock. I went through the datasheet but I’m still unclear if there are more specific clock settings that need to be configured. Here’s my test code. Any help would be greatly appreciated.
PIC24FJ128GA310 datasheet If you need.
Cheers,
ED
Code: Select all
/*******************************************************************************
UART1 Setup 9600-N-8-1

*******************************************************************************/
void UART1_setup()
{
Unlock_IOLOCK();
PPS_Mapping_NoLock(0, _INPUT, _U1RX); // Sets pin RP0 to be Input, and maps U1RX to it Chip Pin 25
PPS_Mapping_NoLock(2, _OUTPUT, _U1TX); // Sets pin RP2 to be Output, and maps U1TX to it Chip Pin 68
Lock_IOLOCK();
U1MODEbits.UART1 = 1;
U1STAbits.UTXEN=1;

UART1_Init(9600); // Initialize UART module at 9600 bps
Delay_ms(100); // Wait for UART module to stabilize
}
/******************************************************************************/

void main() {

UART1_setup();

while(1)
{
UART1_Write_Text(“TEST”);
UART1_Write(10);
UART1_Write(13);
}

}

No idea about the micro code but are you sure the modem is set to 9600bps? Default for everything as a rule is 115200.

Regards

Matt