Hi there,
It's been a while since I played here and I'm a bit rusty...
A while ago I was loading tiny bootloader into the 16F88 and it was working but now, I cant figure what the heck I'm doing wrong, my program wont install using the bootloader, I get a error come up:
WARNING: PCLATH not initialised before GOTO! ... could not repair.,
Maybe you sould use some directive in your compiler to enable the use of bootloaders
The tiny website recommends that the program must meet this requirement:
it must have in the first 4 words of memory a GOTO to the start of the main program. (this is what the majority of the bootloaders require). So in assembler it should look something like this:
asm
org 0
;clrf STATUS
clrf PCLATH
goto Main
endasm
This codedoesnt make a lot of sense to me but perhaps there is somebody out there that can point me in the right direction.
BTW What the heck does LATH in PCLATH stand for???
Oh yeah, I use MCS and PICBASIC pro for compilying.. dur!
Cheers
J
Bookmarks