deltatech
Joined: 22 Apr 2006 Posts: 87
|
RS232 Dilemma |
Posted: Tue Jun 20, 2006 8:35 am |
|
|
I need to read RS232 data stream which is sent by a RS232 Module . the Stream looks like this on the HyperTerminal .
If I type o and press enter the module sends the following . which is time, date etc
152344220060623
Is there a built in function in CCS to read this serial data ?
I have tried the code below that is not working.
If it cant be done using built in CCS functions can I read this in character at a time using any pin on the PIC, can any one point me in the right direction as to how to do this .?
Thanks in Advance .
#use rs232(debugger,baud=300,parity=e,rcv=PIN_C7,bits=7,stream=MSF)
char c;
c=fgetc(MSF);
fprintf(MSF,"%C",c); |
|