I see GP2 is used to control a 'buzzer'. To me a 'buzzer' is an EN device needing a lot of current and cannot be driven from a PIC I/O pin. Please try an LED and 470r on GP2 and see if it functions properly. If the LED doesn't flash odds are you've damaged the PIC by trying to draw too much current using the 'buzzer'.
GP3 can ONLY be used as an INPUT not as an output. Please read the datasheet again, page 13. Little PICs are fun BUT you can quickly run out of pins ! You may be able to use GP3 for the 'sensor', and then GP0 for the output.
Also, you should NOT enable the Fuse 'Protect' unless you're actually selling the product and this is the final program for the PIC. There is no need to 'protect' the PIC until then. I don't even bother with client's PICs,not really necessary.
Jay
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Apr 13, 2016 9:09 am
Quote:
pin_b2 and pin_b3 are not going high nor low but other i/o's are working fine.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum