20 cycles or 52 cycles interrupt disable?
Posted: Wed Sep 12, 2007 2:16 pm
Hi,
In usbdrv.h I read:
In usbdrvasm165.S I read:
Can somebody explain me the difference? Sorry if this is a stupid question, I am completely new to
micro controller programming.
Inspired by the project from Dick Streefland I would like to find out whether it would be possible
to use parts of his code for an infrared receiver together with the AVR-USB code on a attiny45
with the internal rc oscillator. The first problem I see is that his interrupt routines need more
than 20 cycles, but they have less than 52 cycles.
The other problem I have found is, that he uses a 16bit timer, but the attiny45 has none. I have
to learn more to understand whether he really need this fine resolution, but I doubt it, because he only
saves the marks and spaces of the IR signal as bytes.
Gerald
In usbdrv.h I read:
Interrupt latency:
The application must ensure that the USB interrupt is not disabled for more
than 20 cycles.
In usbdrvasm165.S I read:
max allowable interrupt latency: 59 cycles -> max 52 cycles interrupt disable
Can somebody explain me the difference? Sorry if this is a stupid question, I am completely new to
micro controller programming.
Inspired by the project from Dick Streefland I would like to find out whether it would be possible
to use parts of his code for an infrared receiver together with the AVR-USB code on a attiny45
with the internal rc oscillator. The first problem I see is that his interrupt routines need more
than 20 cycles, but they have less than 52 cycles.
The other problem I have found is, that he uses a 16bit timer, but the attiny45 has none. I have
to learn more to understand whether he really need this fine resolution, but I doubt it, because he only
saves the marks and spaces of the IR signal as bytes.
Gerald