From a5b0e738830e9085464c58d864f80596b966a3aa Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 19 Apr 2006 16:57:31 +0000 Subject: [PATCH] ci for testing at home ... --- beginners/pld_stily.asm | 116 ++++++++++++++++++++++++++++++++-------- 1 file changed, 94 insertions(+), 22 deletions(-) diff --git a/beginners/pld_stily.asm b/beginners/pld_stily.asm index 53a7f9d..b8f299e 100644 --- a/beginners/pld_stily.asm +++ b/beginners/pld_stily.asm @@ -4,62 +4,134 @@ ; author: hackbard@hackdaworld.org ; -.include "../include/2313def.inc" +.include "../include/m163def.inc" ; ------------------ ; interrupt vectors: ; ------------------ + ; reset +nop rjmp INIT + ; int0 +nop reti + ; int1 +nop +reti + +; timer 2 compare +nop +reti + +; timer 2 overflow +nop +reti + +; timer 1 capture +nop reti -; timer/counter capt 1 + +; timer 1 compare a +nop reti -; timer/counter compare + +; timer 1 compare b +nop reti -; timer/counter overflow 1 -rjmp INC_LASER_COUNT -; timer/counter overflow 0 + +; timer 1 overflow +nop +rjmp LASER_OFF + +; timer 0 overflow +nop +rjmp INC_COUNT + +; spi transfer complete +nop reti + ; uart rx complete +nop reti + ; uart data register empty +nop reti + ; uart tx complete +nop +reti + +; adc complete +nop +reti + +; eeprom ready +nop reti + ; analog comparator +nop +reti + +; twi +nop reti +; ----- +; code: +; ----- + 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<