Re: Tiny Bootloader



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: 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)
  • PIC timing
    ... goto ISR ... clrf IOCB ... BANKSEL TRISA ... BANKSEL SSPCON ...
    (sci.electronics.basics)
  • 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. ... ;clrf STATUS ...
    (comp.arch.embedded)