summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2012-06-20 22:51:58 +0000
committerChristian Pointner <equinox@mur.at>2012-06-20 22:51:58 +0000
commita206fef95759bc1b1b16d294cd70d4ffaad5cf7d (patch)
treeb0120476ee967d47783a67c63db4af63465ea58e
parentadc sampling starts now via timer1 and ccp4 (less jitter) (diff)
cleanup
git-svn-id: https://svn.spreadspace.org/mur.sat@542 7de4ea59-55d0-425e-a1af-a3118ea81d4c
-rw-r--r--software/idm/idm.asm9
1 files changed, 4 insertions, 5 deletions
diff --git a/software/idm/idm.asm b/software/idm/idm.asm
index 9cbaf41..50a4fab 100644
--- a/software/idm/idm.asm
+++ b/software/idm/idm.asm
@@ -99,7 +99,7 @@ fsr_wraparound
movwf PTRL
inc_fsr_end
ENDM
-
+
;; -------------------------------------
;; Reset Vector
org .0
@@ -173,7 +173,7 @@ int_spi
;; other commands
bcf CMD_READ
retfie
-
+
int_spi_0
btfss CMD_READ
retfie
@@ -348,9 +348,6 @@ endif
movwf ANSELA
clrf ANSELB ; PORTB0:7 digital
- ;; BANK 2
- movlb b'00000010'
-
;; BANK 1
movlb b'00000001'
movlw b'00101111'
@@ -389,6 +386,8 @@ endif
;; -------------------------------------
;; MAINLOOP
main
+ btfsc CS
+ bcf CMD_READ
if DEBUG == 1
bcf SPEAKER
btfss DBG0