After the next F5, USI_OVF will be called. > if I start (F5) the isr SPI_STC will be called. I tried to make it comfortable to read.Īt the moment I think, that AVR studio has any problems! I think, the interrupts will not be handled correct: Now, I've made a compact project with demonstrates the symptom(s!!). Interrupt void lin_uart_transfer_isr(void) Timer 0 overflow interrupt service routine Pin change 0-15 interrupt service routine Hay anyone an idea? I have checked the initialization serveral times, but I cannot find the problem. Timer/Counter 1 Interrupt(s) initialization TCCR1D=0x08 // The OC1Ai bits enable the Output Compare pins of Channel A TIMSK0=0x01 // TCo Overflow interrupt enable Timer/Counter 0 Interrupt(s) initialization TCNT0=0x55 // TimerCounter Register ValueĪSSR = 0x00 // TC0 clocked from the I/O clock TCCR0B=0x03 // clkT0S/32 (From prescaler) TCCR0A=0x00 // normal operation, non PWM mode, OC0A disconnected
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |