diff options
Diffstat (limited to 'bootloader/com-16f887-spi.inc')
-rw-r--r-- | bootloader/com-16f887-spi.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bootloader/com-16f887-spi.inc b/bootloader/com-16f887-spi.inc index 000e05b..4fb41c8 100644 --- a/bootloader/com-16f887-spi.inc +++ b/bootloader/com-16f887-spi.inc @@ -48,16 +48,13 @@ com_rx_byte goto com_rx_byte com_rx_got_byte - bsf STATUS,RP0 + bcf STATUS,RP0 movf SSPBUF,w return ;; ----- initialize com (this is called by bootmacro, it's not a subroutine - no return at the end) com_init ;; bank 3 - we are already there, see bootmacro - btfsc BOOTPIN - goto USERVECT - ;; bank 1 bcf STATUS,RP1 movlw b'01110000' ; set internal OSC to 8MHz @@ -69,6 +66,8 @@ com_init ;; bank 0 bcf STATUS,RP0 + btfsc BOOTPIN + goto USERVECT movlw b'00100100' ; SSPEN=1,CKP=0,SSPM=0100(SPI Slave with SS) movwf SSPCON bsf INTPIN |