]> hackdaworld.org Git - my-code/atmel.git/commitdiff
minimal season frimware (start), full of bullshit!
authorhackbard <hackbard>
Tue, 9 Dec 2003 19:42:21 +0000 (19:42 +0000)
committerhackbard <hackbard>
Tue, 9 Dec 2003 19:42:21 +0000 (19:42 +0000)
beginners/season_junior.asm [new file with mode: 0644]

diff --git a/beginners/season_junior.asm b/beginners/season_junior.asm
new file mode 100644 (file)
index 0000000..b955152
--- /dev/null
@@ -0,0 +1,59 @@
+; season - junior
+;
+; author: hackbard@hackdaworld.dyndns.org
+;
+
+include "../include/2313def.inc"
+
+;
+; interrupt vectors:
+;
+
+; reset
+rjmp INIT ; init routine
+
+; int 0
+rjmp REC_FROM_CARD ; smartcard sends data, we listen
+
+; int 1
+rjmp REC_FROM_CAM ; cam sends data, we listen
+
+; timer/counter capt 1
+reti ; we just count the smartcard clocks
+
+; timer/counter compare
+reti ; not in use
+
+; timer/counter overflow 1
+reti ; not in use
+
+; timer/counter overflow 0
+reti ; not in use
+
+; uart rx complete
+reti ; maybe we need it later
+
+; uart data register empty
+reti ; maybe we need it later
+
+; uart tx complete
+reti ; maybe we need it later
+
+; analog comparator
+reti ; not in use
+
+;
+; init routine
+;
+
+INIT:
+
+; set stackpointer
+ldi r16,low(RAMEND)
+out SPL,r16
+
+; enable interrupts (global)
+ldi r16,(1<<7)
+out SREG,r16
+
+