Thanks Darrel...
But, I guess that was not the only reason I am not getting this to work:
Take a look below. I have simplified what I am trying to do. Everything was working fine with my PICDEM PIC18 explorer board. But when I went off and built my own circuitry, nothing is happening.
I have external pull ups on the inputs. They are being pulled low, but the "output" pin is not doing anything at all. I dont 'think' it's electrical per se, because I am grounding the input pin manually.
What am I missing??
and by the way, it is OSCCON = %01010000 it does not show up correct on the code snippet for some reason.
Code:
DEFINE OSC 4
OSCCON = 010000 ; 4Mhz
ADCON1 = 15 ' All pins digital
STROBE var PORTA.0
STROBEOUT var PORTB.0
STROBEOUT = 0 'just making sure that it is off
do
IF STROBE = 0 THEN
PAUSE 10
STROBEOUT = 1
ELSE
STROBEOUT = 0
ENDIF
loop
Bookmarks