View Single Post
Old 06-08-2015, 08:25 PM   #50 (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 Theitguy View Post
is it because they can read pulses at a higher speed? if so ill do some research on which other pins also have this ability
With greater precision, yes. Check out the attachInterrupt link i posted above. In short, interrupts let the software immediately stop what it's doing, deal with the interrupt routine and then return to what it was working on. In this case, basicVssInterrupt figures out the time between VSS pulses (vehicle speed) and increments the VSS pulse count (odometer).

Quote:
Originally Posted by Theitguy View Post
attachInterrupt(1,basicVssInterrupt,RISING);
The figure "1" sets the pin as 3?
It depends which board you're using, but that's the gist of it, yes. Again, check the link.
  Reply With Quote