MUKESH.K.S
Full Member level 1
- Joined
- Jan 31, 2014
- Messages
- 98
- Helped
- 14
- Reputation
- 28
- Reaction score
- 13
- Trophy points
- 1,288
- Location
- KERALA
- Activity points
- 1,891
I am here with an very unexpected problem with 16f877a . In my circuit i used ports d,a& e as output port and ports d &c as output port. I have an 16*2 lcd display in my circuit. When i power the circuit the display works finely ie, it displays what i want. But the problem is pic doesn't senses any key press.
i used 10k and .1uf for the reset circuit . Then i removed the capacitor from the reset circuit and manually resetted the uc by connecting mclr to ground. After repeating this steps many times ,the uc starts reading the key press. It woks fine only after i manually resetting the uc several times .
What is the problem ? Please help me ....my code for setting the ports & circuit is given below
ADCON1=0X0F;
TRISD=0X00;
TRISA=0X00;
TRISB=0XFF;
TRISC=0XfF;
TRISE=0X00;
PORTE=0X02;
i used 10k and .1uf for the reset circuit . Then i removed the capacitor from the reset circuit and manually resetted the uc by connecting mclr to ground. After repeating this steps many times ,the uc starts reading the key press. It woks fine only after i manually resetting the uc several times .
What is the problem ? Please help me ....my code for setting the ports & circuit is given below
ADCON1=0X0F;
TRISD=0X00;
TRISA=0X00;
TRISB=0XFF;
TRISC=0XfF;
TRISE=0X00;
PORTE=0X02;