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 ???