What's Up DOC?
The SD button is on portb.7, but at the very top TRISB is set to all outputs.
The button command never sees the pin.
HTH,
Darrel
What's Up DOC?
The SD button is on portb.7, but at the very top TRISB is set to all outputs.
The button command never sees the pin.
HTH,
Darrel
DT
Isn't the Button command supposed to take care of TRIS settings?
The manual says "Pin is automatically made an input."
http://www.melabs.com/resources/pbpm...5_4-5_6.htm#56
Ill give it a shot. It sounds logical. It may be overriding the button commands ability to make it an input.
Yes, someone keeping me in check. Good.
You're right RRacer, it does say that.
And now I'm back to gee, I don't know. Unless ...
Since there isn't a LOADER_USED define, can I assume you are using ICSP? And, is the programmer always connected? Is the programmer conflicting with the RB7 input? Just another thought.
<br>
Darrel
P.S. What chip are you using? 16F737? The ADCON1 seems odd. That won't affect PORTB.7, I'm just trying to figure out what chip it is.
Yes, I am using ICSP. I only have a pin header connected, I disconnect the programmer after each burn.
Like I said, I tried the same button on a pin on the porta side and still the same issue. The button registers voltage when pressed, so its not a hardware fault.
check out the photos of the LED up and in action! Damn, Lamina makes some really bright stuff.
http://share.shutterfly.com/action/w...=2CcN3DhozYuOg
Last edited by docwisdom; - 16th February 2006 at 22:21.
I am back, trying to get this problem solved again. Anyone have any new ideas on why this single button wont work?
Hi,
I would like to see the schematic and know which PIC you are using.
Regards
Sougata
Bookmarks