... a long shot but try blinking RB0 instead of RC2 (and report back).
... a long shot but try blinking RB0 instead of RC2 (and report back).
Paul Borgmeier
Salt Lake City, UT
USA
__________________
I have moved my LED to RB0 and change my code, but not one of them are working now.
Am I missing something?
<code>
Include "Modedefs.bas"
DEFINE OSC 4 ' Set the Xtal frequency to 4mHz
LEDPin VaR PORTB.0
i var byte
Main:
for i = 1 to 10
High LEDPin
Pause 400
Low LEDPin
Pause 400
next i
end
</code>
Have you tried Oscillator setting on "HS"?
Dave
Always wear safety glasses while programming.
Attach the compiled .HEX file that you are programming into the PIC here. If there's a
problem with your config settings, that makes it easy for someone to spot.
Bruce
Attached the zipped hex file.
Thank you very much for your time!
Bookmarks