summaryrefslogtreecommitdiff
path: root/bootloader/bootloader-887.asm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-08-04 17:09:14 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-08-04 17:09:14 +0000
commit1233898b3bcc6e8fc2ac0c2eafc7743aff0f7ee2 (patch)
tree2ffad6e7d75557bf2a430a6ce8de6bd4322f8a8f /bootloader/bootloader-887.asm
parentdropped useless supported flags (diff)
improved spi send byte
git-svn-id: https://svn.spreadspace.org/pic/trunk@99 a09c6847-51d9-44de-8ef2-e725cf50f3c7
Diffstat (limited to 'bootloader/bootloader-887.asm')
-rw-r--r--bootloader/bootloader-887.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/bootloader/bootloader-887.asm b/bootloader/bootloader-887.asm
index e29136b..1ab7501 100644
--- a/bootloader/bootloader-887.asm
+++ b/bootloader/bootloader-887.asm
@@ -29,9 +29,9 @@
;; -------------------------------------
;; DEFINES (chip/com specific)
-#define BOOTPIN PORTC,7 ; use this for com-uart
-;; #define BOOTPIN PORTA,5 ; use this for com-spi
-;; #define INTPIN PORTA,4 ; use this for com-spi
+;; #define BOOTPIN PORTC,7 ; use this for com-uart
+#define BOOTPIN PORTA,5 ; use this for com-spi
+#define INTPIN PORTA,4 ; use this for com-spi
USERVECT EQU H'100'
ISRVECT EQU USERVECT + H'4'
FLASH_BOUNDARY EQU b'00001111' ; flash write boundary is at 16 bytes boundaries
@@ -67,19 +67,19 @@ flags EQU H'007D'
cnt EQU H'007F'
;; Boot Macro
-bootmacro macro ; use this for com-uart
- btfsc BOOTPIN
- goto USERVECT
- goto com_init
- endm
-
-;; bootmacro macro ; use this for com-spi
-;; bsf STATUS,RP0
-;; bsf STATUS,RP1
-;; bcf ANSEL,ANS4 ; RA5/SS as digital input -> BOOTPIN
+;; bootmacro macro ; use this for com-uart
+;; btfsc BOOTPIN
+;; goto USERVECT
;; goto com_init
;; endm
+bootmacro macro ; use this for com-spi
+ bsf STATUS,RP0
+ bsf STATUS,RP1
+ bcf ANSEL,ANS4 ; RA5/SS as digital input -> BOOTPIN
+ goto com_init
+ endm
+
;; -------------------------------------
;; DEFINES (defines)
#include "generic-defines.inc"
@@ -90,8 +90,8 @@ bootmacro macro ; use this for com-uart
;; -------------------------------------
;; Bootloader (com specific subroutines and init)
-#include "com-16f887-uart.inc"
-;; #include "com-16f887-spi.inc"
+;; #include "com-16f887-uart.inc"
+#include "com-16f887-spi.inc"
;; -------------------------------------
;; Bootloader (generic init/body)