Turning ON light using RTC

Hi,

Can someone please help me. I need to automatically turn ON light automatically using RTC. I need to me able to send an SMS to my GSM ie 2014#d5 to turn ON/OFF light in 5mins. Can some help me with mikroC code to do this. i'm using a PIC18F2550 device.

I suspect you wont get much help for PIC devices in an Arduino forum. Perhaps look for one of the PIC forums?