Skip to content
Snippets Groups Projects
  • Josarn's avatar
    d6c0398f
    atmega timer: Interrupt Pin · d6c0398f
    Josarn authored
     A debug pin can be used to probe timer interrupts with an oscilloscope or
     other time measurement equipment. Thus, determine when an interrupt occurs
     and how long the timer ISR takes.
     The pin should be defined in the makefile as follows:
    
    CFLAGS += -DDEBUG_TIMER_PORT=PORTF -DDEBUG_TIMER_DDR=DDRF \
                -DDEBUG_TIMER_PIN=PORTF4
    d6c0398f
    History
    atmega timer: Interrupt Pin
    Josarn authored
     A debug pin can be used to probe timer interrupts with an oscilloscope or
     other time measurement equipment. Thus, determine when an interrupt occurs
     and how long the timer ISR takes.
     The pin should be defined in the makefile as follows:
    
    CFLAGS += -DDEBUG_TIMER_PORT=PORTF -DDEBUG_TIMER_DDR=DDRF \
                -DDEBUG_TIMER_PIN=PORTF4