Well the only pointer i can say
look for ADCON, ADCON0, ADCON1 and/or CMCON register. PORTA can be set as analog i/o by default. So you nbeed to set it to digital.
Well the only pointer i can say
look for ADCON, ADCON0, ADCON1 and/or CMCON register. PORTA can be set as analog i/o by default. So you nbeed to set it to digital.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I thought i have, the register that i thought was applicable was the ADCON1 which has been set to ADCON1 = %00001111.
Are there any others that i am missing.
I thought this was the only one, as if i set the code to:
When you push the button, it does jump to the Flash routine. So i am guessing it is in digital mode.Code:Main: if Switch = 1 THEN gosub flash endif GOTO Main Flash: For loop = 1 to 10 Redled = 1 Pause 50 Redled = 0 Pause 50 Next Loop Return
I have a pull-down resistor on the input pin, which when the switch is pressed the input line goes to 5v.
I'll keep trying for a solution. Of course it could be my code up the spout !!
Steve
Tissy,
Well, my original comment is still there, but I guess the thought behind it didn't make it through.
' use a pin with Schmitt Trigger input
<br>
DT
Bookmarks