Hi all,
Anyone have code and suggestions to begin with PIC18F452 , for simplest case blinking led I will use 4MHZ XT crystal
Hi all,
Anyone have code and suggestions to begin with PIC18F452 , for simplest case blinking led I will use 4MHZ XT crystal
how about
give it a try and reply if you need moreCode:Main: toggle portb.0 pause 500 GOTO Main END
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Oky I try this part of code , but nothing is working , always off , I think there is aproblem is defining the oscillator
Oky It's working now with the same code without any changing , I think the problem is that the chip which is not working with code is damaged , I replace it and everything is working now
define osc 4
trisb=0
main:
portb=0
pause 1000
portb=255
pause 1000
goto main
end
Note: Put all your DEFINE's in all CAPS. I make it a habit of putting the complete DEFINE in all CAPs. That way there's no question in my mind later on.
As far as the chip dying....Ya...you'll have that... Probably happened to every one of us once or twice...scratch our heads for days on end...asked a millions questions...questioned our own abilities (or lack thereof)...only to find out that the core of the problem is the core of the problem...
Go figure...
Bookmarks