Re: hex file problem
Very first thing I see is a missing config for HS_OSC . . .
Then your loop never turns off the LED, and do not forget a pause so you can see it go off
or use the command toggle with a pause.
NOT REQUIRED with HIGH / LOW are tris registers as those statements automatically set tris
for you, But It is good practice to set port status first, then set tris to make ports inputs or outputs
in that order, like so
PortB = %00000000
TrisB = %10000000
in this case PortB.7 is unaffected by the tris, but all other PortsB are set low and then as outputs
That way when they become outputs they do so in the state you want them, in this case all low.
Last edited by Archangel; - 24th May 2011 at 08:53.
Reason: add add add
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks