From 188be8138aa9b103a7d7c27e0c6866a8e01c5931 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 25 Jul 2013 23:53:17 +0000 Subject: bootloader 887 with com-spi works now git-svn-id: https://svn.spreadspace.org/pic/trunk@93 a09c6847-51d9-44de-8ef2-e725cf50f3c7 --- bootloader/com-16f887-spi.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bootloader/com-16f887-spi.inc') 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 -- cgit v1.2.3