how to user SER_F

hi, i have 5600 demo board and usa this program to write on serial ports


#class auto

/*****************************************************
     The input and output buffers sizes are defined here. If these
     are not defined to be (2^n)-1, where n = 1...15, or they are
     not defined at all, they will default to 31 and a compiler
     warning will be displayed.
******************************************************/
#define CINBUFSIZE 15
#define COUTBUFSIZE 15
#use "rcm56xxw.lib"


#define LEDON  0
#define LEDOFF 1
#define DS1 0

void main()
{
   char h,l;
   h = 'U';
    serFopen(9600);
   brdInit();


   while (1) {
      serXwrite(SER_PORT_F, &h, 1);
     costate
		{

                //blink led	     
              BitWrPortI(PDDR, &PDDRShadow, LEDON, DS1);
			waitfor(DelayMs(100));       // On for 50 ms.
	      BitWrPortI(PDDR, &PDDRShadow, LEDOFF, DS1);
			waitfor(DelayMs(100));      // Off for 100 ms.
		}

   }
}

why my signal exit on ser_c port ???

By default serial port F will use the port C pins for RX/TX if you want to use another port you must define the SERF_TXPORT and SERF_RXPORT macros.

For example, in the RCM5700 port of the BACnet stack I use the following to select serial port F as the port to use instead of port D and have it use the PORT E pins (the same would apply to the RCM5600W).

#define ALT_RCM5700_SER 1

#if ALT_RCM5700_SER
#define SERF_TXPORT PEDR
#define SERF_RXPORT PEDR
#define FINBUFSIZE 1023 // start out with big buffers and serial port F
#define FOUTBUFSIZE 1023
#endif

Regards,
Peter