Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@Szidor, Thanks for your response. I have edited my code to add execTowerLamp(). Also I have traced it Manually, by providing 3.3v to its track. It works fine. Also as I mentioned, If I provide continuous Positive signal to Pin RA1 only, It works. RED_LAMP gets ON and remains ON. The Issue is coming only when I am trying to toggle it alone or with other Lamp. In Such case, its behaving abnormally (Random behaviour). Please check my circuit also. Might be design issue i am not able to get.