Instead of END, try STOP, or a read/portb/goto loop, see what happens.
Do you have anything across Vss & Vdd?
Instead of END, try STOP, or a read/portb/goto loop, see what happens.
Do you have anything across Vss & Vdd?
Try..
and make sure you have MCLR pin tied to VCC via a resistor. Cap always have to be there. 0.1, 0.22, 0.47 or whatever else in that range.Code:@ __CONFIG _XT_OSC & _WDT_OFF & _CP_OFF PORTB = 0 TRISB = 0 DATA 0,1,2,4,8,16,32,64,128 Addr var byte for Addr=0 to 8 read Addr, PORTB PAUSE 500 NEXT STOP
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
ok, i copied that exactly. it wouldnt compile because of the top line so i removed it and set the fuses in the programmer software. i borrowed one of those caps from another circuit and its still not working. im getting the exact same result
Edit: MCLR is connected to vdd with a 10K resistor
Last edited by The Master; - 11th June 2007 at 20:46.
OK, so what happen if you change the loop to
If it doesn't work... or you have a faulty crystal, or your crystal capacitor are bad, or the PSU is bad, or the PIC is bad... OR everything previously listedCode:for Addr=0 to 7 PORTB = DCD ADDR PAUSE 500 NEXT
EDIT: config fuses..
http://www.picbasic.co.uk/forum/showthread.php?t=543
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
That was then, this is now... Just bad design practice NOT to use one, I don't think you'll find anybody who will dispute that fact. Just because it worked once, doesn't mean it'll work like that every time...however, conversely, you'll have a hard time finding a PIC that won't run because one is installed (vs. one without a cap installed).
Bookmarks