summaryrefslogtreecommitdiff
path: root/software/idm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2012-06-07 17:20:28 +0000
committerChristian Pointner <equinox@mur.at>2012-06-07 17:20:28 +0000
commitba92d6947f1cf6d6c2434a2c6fb49003a2e0fc34 (patch)
treeeae000f1f7f7785c9b3426dca9d161951a81feea /software/idm
parenttmr2 as 8kHz clock (diff)
better Port Pin definitions
git-svn-id: https://svn.spreadspace.org/mur.sat@509 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/idm')
-rw-r--r--software/idm/idm.asm42
1 files changed, 21 insertions, 21 deletions
diff --git a/software/idm/idm.asm b/software/idm/idm.asm
index dfef5ce..ca1233e 100644
--- a/software/idm/idm.asm
+++ b/software/idm/idm.asm
@@ -38,21 +38,21 @@ BUF_ENDL EQU 0BFh
;; I/O Pins
;; PortA
-C1m EQU .0
-C2p EQU .1
-AMP_OUT EQU .2
-ADC_IN EQU .3
-SPEAKER EQU .4
-DBG1 EQU .6
-DBG2 EQU .7
+#define C1m PORTA,0
+#define C2p PORTA,1
+#define AMP_OUT PORTA,2
+#define ADC_IN PORTA,3
+#define SPEAKER PORTA,4
+#define DBG1 PORTA,6
+#define DBG2 PORTA,7
;; PortB
-DBG0 EQU .0
-SDI EQU .1
-SDO EQU .2
-INT EQU .3
-SCK EQU .4
-CS EQU .5
-FILTER_EN EQU .7
+#define DBG0 PORTB,0
+#define SDI PORTB,1
+#define SDO PORTB,2
+#define INT PORTB,3
+#define SCK PORTB,4
+#define CS PORTB,5
+#define FILTER_EN PORTB,7
;; variables
;; all Pages
@@ -90,7 +90,7 @@ int_tmr2
retfie
int_spi
- bsf PORTA,7
+ bsf DBG2
bcf PIR1,SSP1IF
movlb b'00000100'
movf SSP1BUF,w
@@ -98,7 +98,7 @@ int_spi
movf TMP,w
movwf SSP1BUF
movlb b'00000000'
- bcf PORTA,7
+ bcf DBG2
retfie
;; -------------------------------------
@@ -246,12 +246,12 @@ init
movlw b'11000000' ; GIE,PEIE
movwf INTCON
- bcf PORTA,FILTER_EN
- bsf PORTB,INT
+ bcf FILTER_EN
+ bsf INT
- bcf PORTB,DBG0
- bcf PORTA,DBG1
- bcf PORTA,DBG2
+ bcf DBG0
+ bcf DBG1
+ bcf DBG2
;; -------------------------------------
;; MAINLOOP