diff options
author | Christian Pointner <equinox@mur.at> | 2013-08-04 17:16:26 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-08-04 17:16:26 +0000 |
commit | 3ef3de9d5d7a4937f54e6b9ecc43323796e6e7e5 (patch) | |
tree | d13d90e565b7842db3d1a0df3002e1914268a10b /software/pic.bootloader/com-16f1847-spi.inc | |
parent | moved 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.inc | 10 |
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 |