I can't find anything under search and I'm currently scopeless (and hopeless).
With regard to a typical hardware interrupt (external source, change on portb for example); what is the minimum duration of an external pulse required and is there a rule-of-thumb related to clock frequency?
Interrupt 'response speed'
Moderators: David Barker, Jerry Messina
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
In general, it usually is related to the system clock frequency, but that really depends on exactly which device you're talking about and which peripheral.
For example, the PortB change interrupt is usually spec'd at a min of Tcy (4 x Tosc), while external INTx signals on some devices are spec'd at a min high/low time of Tcy, and on others at a fixed 20ns. Other peripherals have completely different requirements.
You should really look at the AC Characteristics tables in the datasheet of the device you're using.
For example, the PortB change interrupt is usually spec'd at a min of Tcy (4 x Tosc), while external INTx signals on some devices are spec'd at a min high/low time of Tcy, and on others at a fixed 20ns. Other peripherals have completely different requirements.
You should really look at the AC Characteristics tables in the datasheet of the device you're using.
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Yeh, sometimes it's hard to find what you're looking for in all those specs. Also, it's not uncommon for specs to be left out of one datasheet, or for it to be "preliminary" for years. They've gotten a bit better over time, but there's some chips I use that I don't expect to ever see a "final" datasheet.
The bad thing is that they're constantly changing the peripherals from chip to chip, so you never really know what you've got, or if chip A is actually identical to chip B.
The bad thing is that they're constantly changing the peripherals from chip to chip, so you never really know what you've got, or if chip A is actually identical to chip B.