; ; $Id: test_wdr2.asm,v 1.1 2001/10/15 18:30:01 troth Exp $ ; ;;; Test the watchdog timer simulator. Should never generate a reset. .include "8515def.inc" rjmp MAIN ; reset nop ; int0 nop ; int1 nop ; timer1 capt nop ; timer1 compa nop ; timer1 compb nop ; timer1 ovf nop ; timer0 ovf nop ; spi, stc nop ; uart, rx nop ; uart, udre nop ; uart, tx nop ; ana_comp MAIN: ;; init stack pointer to 0x025f (the last byte of int sram) ldi r16, lo8(RAMEND); low byte of end of int sram out SPL, r16 ldi r16, hi8(RAMEND); high byte of end of int sram out SPH, r16 ;; set up the watchdog timer ldi r16, 0x08 ; set WDE, WDP[2,1,0] bits to enable watchdog out WDTCR, r16 DONE: nop wdr rjmp DONE