View Single Post
Old 12-08-2010, 11:20 AM   #20 (permalink)
bobski
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Quote:
Originally Posted by dcb View Post
Those pins can be set up to trigger an interrupt on a rising signal or a falling signal, but not both at the same time (and still be able to tell the firmware if it was rising or falling).
Huh. Is that a limitation of the older 011 IDE, or just obsessive optimization? I wrote a pulse width analysis (frequency, duty cycle, on time) program a little less than a year ago that has 4 microsecond resolution, is accurate down to about 8 microseconds (verified with an oscilloscope), only uses 1 input and is fully compatible with the current IDE. Cumulative on time would add one more line to the off half of the interrupt routine.
http://dl.dropbox.com/u/9882625/inte...reAnalyzer.pde
  Reply With Quote