; at90s2313
; setup:
-; vcc card --- vcc cam
-; rst card --- rst cam --- atmel t0 (pd4)
-; clk card --- clk cam --- atmel t1 (pd5)
+; vcc card --- atmel vcc
+; vcc cam ---
+; rst cam --- atmel int0 (pd2)
+; rst card --- atmel (pb4)
+; clk card -\
+; - atmel t1 (pd5)
+; clk cam -/
; gnd card --- gnd cam --- atmel gnd
-; i/o card --- atmel int0 (pd2)
+; i/o card --- atmel icp (pd6)
; i/o cam --- atmel int1 (pd3)
.include "../include/2313def.inc"
rjmp INIT
; int0
-rjmp REC_CARD
+rjmp RST_CAM
; int1
rjmp REC_CAM
; timer/counter capt 1
-reti
+rjmp REC_CARD
; timer/counter compare
reti
; timer/counter overflow 1
-rjmp T1_OVERFLOW
+rjmp CLK_OVERFLOW
; timer/counter overflow 0
reti
reti
; uart data register empty
-reti
+rjmp UART_OUT
; uart tx complete
reti
; init routine
;
+MAIN:
+rjmp MAIN
+
INIT:
; set stackpointer
ldi r16,low(RAMEND)
out SPL,r16
+;
+; hier weiter ....
+;
+
; enable interrupts int0,int1
ldi r16,((1<<INT0)|(1<<INT1))
out GIMSK,r16