/********************************
Dependencies:   xc.h, libpic30.h, stdio.h
Processor:      dsPIC33FJ256GP710
Complier:       XC16 v1.21 
Debugger:       Simulator 
********************************/
#inlcude <xc.h>
#include <libpic30.h> 
#include <stdio.h>

_FOSCSEL(FNOSC_PRI );
_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_XT);
_FWDT(FWDTEN_OFF);

int main() {
__C30_UART=2;            // Divert printf output to UART2
while (1)
{ 
printf("Hello world\n");
    }
    return 0; 
}