actually wat i am doin here is, i have a xbee module on my system which acts:confused: as a transmitter and ther is a xbee receiver on a PIC16f877a. using this code i am transitting the data a to z. but on hyperterminal on PIC side, it dosent displaying any even a single charactr which i ve transmitted. its printing some other char and that hyperterminal page goes to black and still on. when i make new connection i could get a clear screan. whats going on? why its so?
here i have posted my code. pls go through this and pls pls pls pls tell me sum solutions…
#class auto
#define DINBUFSIZE 31
#define DOUTBUFSIZE 31
#ifndef _232BAUD
#define _232BAUD 9600
#endif
#define RS232_NOCHARASSYINBRK
main()
{
auto char cOut;
serDopen(_232BAUD);
serDwrFlush();
serDrdFlush();
for (cOut=‘a’;cOut<=‘z’;++cOut)
{
costate
{
waitfordone
{
cof_serDputc (cOut);
}
}
}while(!kbhit());
}