3 ; author: hackbard@hackdaworld.dyndns.org
10 ; rst card --- rst cam --- atmel t0 (pd4)
11 ; clk card --- clk cam --- atmel t1 (pd5)
12 ; gnd card --- gnd cam --- atmel gnd
13 ; i/o card --- atmel int0 (pd2)
14 ; i/o cam --- atmel int1 (pd3)
16 include "../include/2313def.inc"
32 ; timer/counter capt 1
35 ; timer/counter compare
38 ; timer/counter overflow 1
41 ; timer/counter overflow 0
47 ; uart data register empty
66 ; enable interrupts int0,int1
67 ldi r16,((1<<INT0)|(1<<INT1))
70 ldi r16,((1<<ISC01)|(1<<ISC00)|(1<<ISC11)|(1<<ISC10))
77 ; enable t/c overflow interrupt
80 ldi r16,((1<<CS12)|(1<<CS11)|(1<<CS10))
83 ; enable interrupts (global)
93 in .... continue here .. :)