hi
i want to make pwm and after each pulse finished make an interrupt
i have written:
TIMSK0 = 0;
TCCR1A=(1<<COM1A1) | (0<<COM1A0) | (0<<COM1B1) | (0<<COM1B0) | (0<<WGM11) | (0<<WGM10);
TCCR1B=(0<<ICNC1) | (0<<ICES1) | (1<<WGM13) | (0<<WGM12) | (0<<CS12) | (0<<CS11) | (1<<CS10);
TCNT1H=0x00;
TCNT1L=0x00;
ICR1H=0x3E;
ICR1L=0x80;
OCR1AH=0x06;
OCR1AL=0x40;
OCR1BH=0x00;
OCR1BL=0x00;
frq:500hz and pw:200us
i tried using overflow interrupt
TIMSK1=(0<<ICIE1) | (0<<OCIE1B) | (0<<OCIE1A) | (1<<TOIE1);
ISR(TIM1_OVF_vect)
{
}
but timer stops working totally !!
is there any way ?
sry for my english ![]()