Quote Originally Posted by Jumper View Post
Hi,

A good idea is to remove the radio modules and just put a short cable with 3 lines.. GND RX and TX and see what happens.
May be I didn't made myself clear, I am just using one IC only Both modules are connected to one IC.

TURN OFF the Watch Dog.. it seems as you have it turned on in the config bits but you are not clearing it anywhere in the code so it will come out and bite you. The WDT is constantly resetting your PIC and that will account for at least some of the erratic behaviour (or alot).
I have turned off the watchdog timer
Code:
 ....& WDT_OFF....
Behaviour is still the same. As soon as RX ISR led glows, the main loop LED hangs, only timer LED is blinking.
(HSERIN IS COMMENTED CURRENTLY IN RX ISR)