Help with Hellebuyck reverse flashing led
This is what is in his book but it will not programme
symbol led = b0
pins = %00000000
dirs = %11111111
main:
for led = 0 to 7
high led
pause 1000
low led
pause 1000
low led
next
then the same only reversed
goto main
end
also
I have seached two books but I cant find what dirs means
Re: Help with Hellebuyck reverse flashing led
What PIC are you using? What PBP and assembler versions? What CONFIGs are you using?
Robert
Re: Help with Hellebuyck reverse flashing led
Looks like it's written for the PICAXE to me
Re: Help with Hellebuyck reverse flashing led
Quote:
Originally Posted by
firsttimer
This is what is in his book but it will not programme
symbol led = b0
pins = %00000000
dirs = %11111111
main:
for led = 0 to 7
high led
pause 1000
low led
pause 1000
low led
next
then the same only reversed
goto main
end
also
I have seached two books but I cant find what dirs means
Go check out Parralax basic stamp for dirs, they use it, ME Labs PBP does not.
Use instead TRIS and flip all the bits from what dirs says.
edit:
Ok looking at Chuck's book it appears that PBC does indeed use dirs, I have never used PBC and I do not believe it is still available, but might be wrong in that belief. If you and I have the same book then this is Project 1 and the chip is a 16F876.
Go to the next page and use the P Basic Pro code listed, it should work.
Re: Help with Hellebuyck reverse flashing led
Thanks the next page version worked ok.