Page 1 of 1

rs232

Posted: Thu Feb 23, 2012 5:45 am
by brandonb
was wondering if anyone was game for helping me out with rs232 pic to pic communication... i have not used comm before and know nothing about it, the things i would like to do is obviously send information between micros but what info can i send? i see i can send a string, i guess what i could do here is have the pic output a signal before the message is sent to the other micro to get ready to receive it, then i can print the string variable on lcd with the receiving pic, for some reason i dont think its gonna be this simple :lol: .... it appears i can send a string varible number but i cant convert it to a = variable to use on the receiving chip as a decision.... what about crystal speeds and baud rates? how could i use an interrupt to let the receiving chip know to look for a message, any way maybe you guys can make some sense out of this and shoot me a few good links or flowcharts so i can ask better questions :oops:

Re: rs232

Posted: Thu Feb 23, 2012 7:07 pm
by DavidA
Dont know if it will be of any help but I did a very basic article a long while back which has an example of sending rs232 data between two pics, dont know whether you could use that as a starting point:

http://www.matrixmultimedia.com/resourc ... php?id=382

Re: rs232

Posted: Fri Feb 24, 2012 5:21 am
by brandonb
thanks david,it seems rs232 is just too slow for my application, what is the fastest protocol for pic to pic comm that would be comfortable to use since im new to this

Re: rs232

Posted: Fri Feb 24, 2012 10:31 am
by Benj
Hello,

SPI is generally the fastest form of on board communication with clock speeds running up to MHz. If you are going off board then maybe CAN would be an option for noise rejection etc.