From: hackbard Date: Mon, 17 Apr 2006 17:38:56 +0000 (+0000) Subject: initial pld stuff -> parents house now! :) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=4b83fbb8ac6d1569b4684d34f58ad727229c0366;p=my-code%2Fatmel.git initial pld stuff -> parents house now! :) --- diff --git a/beginners/pld_stily.asm b/beginners/pld_stily.asm new file mode 100644 index 0000000..53a7f9d --- /dev/null +++ b/beginners/pld_stily.asm @@ -0,0 +1,65 @@ +; +; pld for stily (and yvonne) ;) +; +; author: hackbard@hackdaworld.org +; + +.include "../include/2313def.inc" + +; ------------------ +; interrupt vectors: +; ------------------ +; reset +rjmp INIT +; int0 +reti +; int1 +reti +; timer/counter capt 1 +reti +; timer/counter compare +reti +; timer/counter overflow 1 +rjmp INC_LASER_COUNT +; timer/counter overflow 0 +reti +; uart rx complete +reti +; uart data register empty +reti +; uart tx complete +reti +; analog comparator +reti + +INIT: +; set stackpointer +ldi r16,low(RAMEND) +out SPL,r16 +; timer 0 setting +ldi r16, 3 +out TCCR1B, r16 +; timer 0 enable +ldi r16, (1<