summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-07-25 23:13:14 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2013-07-25 23:13:14 (GMT)
commit66f435079039b678090515cf686c01e3a4442ca7 (patch)
treeb95b9a4de20afbe4a2ddbea02fb55e03aeece738
parent842ab9ffa0a0f36314c6421ab12af9cc9e95f622 (diff)
fixed raise condition for SPI/SS and INT Pin
git-svn-id: https://svn.spreadspace.org/pic/trunk@92 a09c6847-51d9-44de-8ef2-e725cf50f3c7
-rw-r--r--bootloader/com-16f887-spi.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/bootloader/com-16f887-spi.inc b/bootloader/com-16f887-spi.inc
index 08a3b84..000e05b 100644
--- a/bootloader/com-16f887-spi.inc
+++ b/bootloader/com-16f887-spi.inc
@@ -25,11 +25,12 @@ com_tx_byte
movwf SSPBUF
bcf INTPIN
xorwf csum,f
- bsf STATUS,RP0
-com_tx_byte_wait
- btfss SSPSTAT,BF
- goto com_tx_byte_wait
- bcf STATUS,RP0
+com_tx_byte_wait1
+ btfsc PORTA,5
+ goto com_tx_byte_wait1
+com_tx_byte_wait2
+ btfss PORTA,5
+ goto com_tx_byte_wait2
movf SSPBUF,w
bsf INTPIN
return