I've written a small program that is suppose toggle a LED on and off every second. My oscillator is 8MHz. My LED turns on and just stays on. Why isn't it turning on and off? My development board is setup so that zero turns the LED on and one turns the LED off.
.def tmp=r16 .cseg rjmp reset .org 0x00c ;Timer interrupt vector rjmp turnon reset: ldi tmp, low(ramend) out spl, tmp ldi tmp, high(ramend) out sph, tmp ldi tmp, 0b10000000 ;Globally enable interrupts out sreg, tmp sbi ddra, 0 ; Set pin0 on PORTA as output sbi porta, 0 ; turn LED off ldi tmp, 0b00001100; CTC mode with OCR1A as TOP out tccr1b, tmp ; prescaler of 256 clr tmp ldi tmp, 1<<ocie1a ;output compare a match enable out timsk, tmp ldi tmp, high(31250) out ocr1ah, tmp ldi tmp, low(31250) out ocr1al, tmp main: rjmp main turnon: cbi porta, 0 ; Turn LED on reti