I want to use the Interupt1 to measure a fequency.
If there is a falling edge the timer has to start. At a rising edge the timer should stop.
So my question is how to initialize the interupt. In the usbInit() the Interup0 is initialized.
But my interupt should only be acitve if it will be used. So I want to activate and disable it on some points in the programm.
My other question is, how and where I have to write the ISR?
Can I write it like this:
Code: Select all
ISR(INT1_vect)
{
int_help++;
}
I hope you can help me.
One last question I have:
Is there anywhere a tutorial or a documentation how AVR-USB is used?
Peter