MEGAsquirt A place to collectively sort out this megasquirt gizmo

Spark settings inverted?

Old 09-28-2009, 11:47 AM
  #1  
Junior Member
Thread Starter
iTrader: (4)
 
Alta_Racer's Avatar
 
Join Date: Oct 2006
Location: Alberta Canada
Posts: 228
Total Cats: 7
Default Spark settings inverted?

What exactly do the spark inverted yes/no settings change?

I this a change to rising/falling edge trigger?

Ron
Alta_Racer is offline  
Old 09-28-2009, 11:50 AM
  #2  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,501
Total Cats: 4,080
Default

https://www.miataturbo.net/forum/t33964/


/thread.
Braineack is offline  
Old 09-28-2009, 11:56 AM
  #3  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,050
Total Cats: 6,608
Default

That setting changes the output polarity of the spark output driver, specifically, whether the CPU pins used are high in the "resting" state and go low during the "dwell" state, or vise-versa.

In the "usual" configuration, the output driver circuit is inverting, such that the output is high (and thus, the coil conducts) when the CPU pin is low. (This is why coils fry during a reflash, and why some cars pop at poweron). In this configuration, you must select Inverted = NO (which is somewhat counter-intuative.)

In my "improved" output circuit (linked to above), the spark drivers are non-inverting (technically, they are double-inverting) so that when the CPU pin is low (or the CPU is inactive) the final output is also low. In this configuration, you set Inverted = YES (which, again, is silly, but it's the way it is.)



The primary input trigger (on the MS1) is always falling-edge detect, with respect to the CPU itself. This is due to the fact that the pin used for the primary trigger is the hardware IRQ line, and the CPU is "hard-wired" to only look at falling edges on that line. Inversion at the input circuit must be taken into account in determining whether this corresponds to a leading or trailing edge.
Joe Perez is online now  
Old 09-28-2009, 07:12 PM
  #4  
Junior Member
Thread Starter
iTrader: (4)
 
Alta_Racer's Avatar
 
Join Date: Oct 2006
Location: Alberta Canada
Posts: 228
Total Cats: 7
Default

Thanks for the responses, that's what I needed to know.
Alta_Racer is offline  
Old 09-28-2009, 09:08 PM
  #5  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,050
Total Cats: 6,608
Default

Ipsa scientia potestas est.
Joe Perez is online now  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
stoves
Suspension, Brakes, Drivetrain
5
04-21-2016 03:00 PM
90 Turbo
MEGAsquirt
19
10-19-2015 03:23 PM
The Gleas
MEGAsquirt
3
10-01-2015 09:30 AM
mx592
Suspension, Brakes, Drivetrain
1
10-01-2015 12:45 AM
FrankB
Miata parts for sale/trade
6
09-30-2015 11:48 AM


Thread Tools
Search this Thread
Quick Reply: Spark settings inverted?



All times are GMT -4. The time now is 12:08 PM.