Re: Tiny Bootloader



If I don't put a GOTO in first four instructions it does indeed warn me
that there isn't a GOTO instruction. I also understand how the program
is suppose to work in the PIC. What I don't know and the site doesn't
tell you is what the download program does to your original code.

Yes I have downloaded the example code as it that is is the program I'm
trying to get working.

Neil wrote:
CLIPPED
JohnT wrote:
How do I post my code, I can't see of a way to upload a file. The
start of my code is as follows though.

ORG 0x00 ; Start of the program
CLRF STATUS
MOVLW 0x00
MOVWF PCLATH
GOTO INIT


ORG 0x04 ; Interrupt address
GOTO INT_HAND

All I'm doing after it goes to the INIT routine is set all the outputs
on for PortA and B. I've simulated this and it works fine.

John

the instructions show:


org 0
;clrf STATUS
clrf PCLATH
goto Main

or

org 0
;clrf STATUS
pagesel Main
goto Main

The web site says the PC Side will give a warning if the GOTO is wrong.

Did you try to send his sample?

.



Relevant Pages

  • Re: PIC timing
    ... I've set OSCCON to 8MHz, so at 4 clock/instruction I should see ... goto ISR ... clrf IOCB ... If you are only measuring the part of the pulse that is high, ...
    (sci.electronics.basics)
  • Re: Tiny Bootloader
    ... that there isn't a GOTO instruction. ... goto MyStart ...
    (comp.arch.embedded)
  • Re: PIC timing
    ... I've set OSCCON to 8MHz, so at 4 clock/instruction I should see ... goto ISR ... clrf IOCB ... BANKSEL TRISA ...
    (sci.electronics.basics)
  • Re: Tiny Bootloader
    ... JohnT wrote: ... All I'm doing after it goes to the INIT routine is set all the outputs ... ;clrf STATUS ... goto Main ...
    (comp.arch.embedded)
  • PIC timing
    ... goto ISR ... clrf IOCB ... BANKSEL TRISA ... BANKSEL SSPCON ...
    (sci.electronics.basics)