The best way is the one that Ioannis suggested you in post #9.
For "HSERIN" instruction you have to use specific pins of your pic micro (you didn't say the type), which are the USART module, plus the DT interrupt routine.
Serch the forum for DT interrupt to learn more or go to this link:
http://www.picbasic.co.uk/forum/showthread.php?t=3251
XXXXX you can download the project for sms controller at this link:
http://techni.caliti.es/blog/2008/12...ontroller.html
since the project is well documented, you could see the technique used to activate 8 relays or read the status of 8 inputs all via sms command.
Al.
Bookmarks