![]() |
PIC10F206, TOCKI not shutting off so I can use GP2... help?
Hello folks, I have a PIC10F206 Im working with here. It is connected to 3 LED's on GP0 GP1 GP2, and a push button switch that shorts to ground on GP3. GP0 does nothing, GP1 and GP2 are supposed to start blinking when the button is pushed. I'm having some trouble with the setup. It appears that GP2 is using the TOCKI option somehow, although I believe I have that disabled by setting bit 5 in the option to 0. When I push the button, GP1 starts blinking too, So I know that the program is functioning, Im just having a hard time with setup. How do I shut of TOCKI and make GP2 an output? Thanks in advance.
:
; |
well now that I've fiddled with it a bit more, it seem to be the 'buttonstate' or more specifically the BTFSS command that not working like it should be ... any suggestions?
Whats supposed to happen is when I push the button that is attached to GP3, GP1 and GP2 should start pulsing. It will get a bit more complicated than that, but I think its better to do this 1 step at a time. Thanks again! |
Heres the updated code. When I push the button on GP3, the LEDs on GP1 & GP2 blink. Now, I need to set up some type of count down, so that when I push the button and release it, the LED's will continue blinking for anouther 5 seconds. I can't figure out how to tell the PIC10F206 how to do two things at once?
:
; |
| All times are GMT -5. The time now is 10:17 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC