View Single Post
Old 08-22-2013, 12:32 AM   #14 (permalink)
t vago
MPGuino Supporter
t vago's Avatar
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,766

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.72 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 799
Thanked 681 Times in 437 Posts
Added a two-stage filter in the freewheeling ADC interrupt routine. The first stage is a 16-element decimating CIC filter, which provides a 16x sampling frequency reduction. The second stage is a simple 1st order IIR filter. This should provide an adequate low-pass filter for the MAP sensor signal.

Did some code optimization, and got total code size down to 20158 bytes.
The Fiat Dakota

The Karen-mobile

The Red Sled
  Reply With Quote