Interrupt Probleme

Gast #1533295
Lesenswert?

Hallo

kann mir vielleicht jemand sagen ob an diesem Code alles passt. Der 
Debugger springt nicht in den Interrupt. Es zeigt mir nur diese 
"Debugger break at line" Zeilen an.
1
#include <avr/io.h>
2
#include <avr/interrupt.h>
3

4

5
int main(void)
6
{
7
  
8
  DDRC= 0xFF;
9
  PORTC = 0x00;
10

11

12
  TCCR1B= (1<<WGM12) | (5<<CS10) ;
13
  TIMSK1= (1<<OCIE1A) | (1<<ICIE1);
14
  OCR1A = 15000;
15

16

17
  TCCR0A = (2<<WGM00);
18
  TCCR0B = (5<<CS00);
19
  OCR0A = 250;
20
  TIMSK0 = (1<<OCIE0A);
21

22
  while(1)
23
    PORTC |= 0x08;
24
  ;
25
}
26

27

28
ISR (TIMER1_COMPA_vect)
29
{
30

31
PORTC |= 0x01;
32

33

34
PORTC &= 0xFE;
35

36
}
37

38
ISR (TIMER0_COMPA_vect)
39
{
40

41
PORTC |= 0x02;
42

43
PORTC |= 0xFD;
44
}




Debugger: Break at line projekt.c:260 has been disabled.
Debugger: Break at line projekt.c:277 has been disabled.
Debugger: Break at line projekt.c:277 has been disabled.
Debugger: Break at line projekt.c:269 has been disabled.


MfG

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren