
    SFRPAGE   = CONFIG_PAGE;


    P0MDOUT   = 0x31;
    P1MDOUT   = 0x07;					//no point configuring this it is spare
//    P1MDOUT   = 0xFF;					//no point configuring this it is spare


	P2MDIN    = 0xFF;					//this is the default for Open drain inputs
	P2MDOUT   = 0x00;					//this is the default for Open drain inputs
	P2 		  = 0xFF;					//write ones to the port to ensure it is an input

    P3MDOUT   = 0x0F;
    XBR0      = 0x14;					//PCA 0 & 1 to port pins, UART0 to port pins
    //XBR1      = 0x14;					//Int0 & Int1 to port pins
    XBR3      = 0x80;					//CAN is push pull
    XBR2      = 0x44;					//uart 1 to port pins, enable XBAR

