summaryrefslogtreecommitdiff
path: root/software/pic.bootloader/com-16f1847-spi.inc
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-08-04 17:16:26 +0000
committerChristian Pointner <equinox@mur.at>2013-08-04 17:16:26 +0000
commit3ef3de9d5d7a4937f54e6b9ecc43323796e6e7e5 (patch)
treed13d90e565b7842db3d1a0df3002e1914268a10b /software/pic.bootloader/com-16f1847-spi.inc
parentmoved to 437.525 MHz as assigned by IARU for RDA (diff)
upgraded pic bootloader
git-svn-id: https://svn.spreadspace.org/mur.sat@819 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/pic.bootloader/com-16f1847-spi.inc')
-rw-r--r--software/pic.bootloader/com-16f1847-spi.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/software/pic.bootloader/com-16f1847-spi.inc b/software/pic.bootloader/com-16f1847-spi.inc
index c8c3f1d..e7ae182 100644
--- a/software/pic.bootloader/com-16f1847-spi.inc
+++ b/software/pic.bootloader/com-16f1847-spi.inc
@@ -27,12 +27,14 @@ com_tx_byte
movlb .0
bcf INTPIN
xorwf csum,f
+ movlb .4
com_tx_byte_wait1
- btfsc PORTB,5
+ btfss SSPSTAT,BF
goto com_tx_byte_wait1
-com_tx_byte_wait2
- btfss PORTB,5
- goto com_tx_byte_wait2
+ movlb .0
+com_tx_byte_wait2 ; also wait for SS to go up again
+ btfss PORTB,5 ; this lowers the risk for raise conditions
+ goto com_tx_byte_wait2 ; with next byte (INT pin)
movlb .4
movf SSP1BUF,w
movlb .0