Learning more about the ECM
Learning more about the ECM
This is my first post here and I have to say this board has a tremendous amount of technical depth, you guys are lucky. I have learned that this is the place to go for GM ECM help.
I actually drive an 87 GN and have recently been learning to make my own PROMs. I have had a lot of success playing with the look-up tables. Basically its a MAF type car similar to many of you guys here.
I want to understand the code. I have been struggling to learn assembler and have a well documented listing of what's in my ECM. I followed the code from power on reset through to an infinite loop. I think it must sit there until some type of interrupt occurs which makes it jump somewhere else. I want to know if there are any good references on how GM implemented the basic operation of the code? I am not a software type but am willing to learn.
I hope GN guys are allowed here.
I actually drive an 87 GN and have recently been learning to make my own PROMs. I have had a lot of success playing with the look-up tables. Basically its a MAF type car similar to many of you guys here.
I want to understand the code. I have been struggling to learn assembler and have a well documented listing of what's in my ECM. I followed the code from power on reset through to an infinite loop. I think it must sit there until some type of interrupt occurs which makes it jump somewhere else. I want to know if there are any good references on how GM implemented the basic operation of the code? I am not a software type but am willing to learn.
I hope GN guys are allowed here.
Supreme Member
iTrader: (1)
Joined: Jul 2001
Posts: 4,627
Likes: 5
From: Houston Area
Car: Faster
Engine: Than
Transmission: You!
Welcome to TGO ! There are a couple of GN guys here and ALOT of smart people here (especially on the DIY-PROM board)!
I'm sure you can get any answer you need here.
What program are you using to tune your .bin's with?
I'm sure you can get any answer you need here.
What program are you using to tune your .bin's with?
Moderator
iTrader: (1)
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Here is a thread that has a blurb on the basic operation of the kernel:
https://www.thirdgen.org/techbb2/sho...+AND+interrupt
I know there is another thread that goes into more detail on the kernel but didn't find it. See the sticky's at the top of this forum for a bunch of good info. Should get you started.
RBob.
https://www.thirdgen.org/techbb2/sho...+AND+interrupt
I know there is another thread that goes into more detail on the kernel but didn't find it. See the sticky's at the top of this forum for a bunch of good info. Should get you started.
RBob.
Thanks for the links, I will study them.
I forgot to mention I normally hang around TurboBuick.com, I think I recognize Grumpy from there.
As far as editing goes, I tried the TunerCat trial version. I found the TunerPro interface better but on my computer its not stable for some reason, it crashes every few minutes. The main reason I got into PROMS was because my MAF tables were rich on the bottom end and lean at the top. I can't figure out how to get the TunerPro ECU file to incorporate the MAF table scalars, I have to hard code the scalar for each table in the ECU file.
Other than editors I have been doing some brute force Hex editing.
My winter task is to understand the ECM code.
I forgot to mention I normally hang around TurboBuick.com, I think I recognize Grumpy from there.
As far as editing goes, I tried the TunerCat trial version. I found the TunerPro interface better but on my computer its not stable for some reason, it crashes every few minutes. The main reason I got into PROMS was because my MAF tables were rich on the bottom end and lean at the top. I can't figure out how to get the TunerPro ECU file to incorporate the MAF table scalars, I have to hard code the scalar for each table in the ECU file.
Other than editors I have been doing some brute force Hex editing.
My winter task is to understand the ECM code.
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by BJM
I forgot to mention I normally hang around TurboBuick.com, I think I recognize Grumpy from there.
As far as editing goes, I tried the TunerCat trial version. I found the TunerPro interface better but on my computer its not stable for some reason, it crashes every few minutes. The main reason I got into PROMS was because my MAF tables were rich on the bottom end and lean at the top. I can't figure out how to get the TunerPro ECU file to incorporate the MAF table scalars, I have to hard code the scalar for each table in the ECU file.
Other than editors I have been doing some brute force Hex editing.
My winter task is to understand the ECM code.
I forgot to mention I normally hang around TurboBuick.com, I think I recognize Grumpy from there.
As far as editing goes, I tried the TunerCat trial version. I found the TunerPro interface better but on my computer its not stable for some reason, it crashes every few minutes. The main reason I got into PROMS was because my MAF tables were rich on the bottom end and lean at the top. I can't figure out how to get the TunerPro ECU file to incorporate the MAF table scalars, I have to hard code the scalar for each table in the ECU file.
Other than editors I have been doing some brute force Hex editing.
My winter task is to understand the ECM code.
Either way an ecm bench is a real time saver.
The 749 has all the code in a memcal is alot easier to work with if you want to modify the code later. Not to mention the faster ALDL, and no MAF.
Supreme Member

Joined: Feb 2000
Posts: 1,416
Likes: 0
From: Johnstown, Ohio
Car: 84 Z28
Engine: 355 (fastburn heads, LT4 HOT cam)
Transmission: 700R4
Axle/Gears: 9-bolt, 3.27
I know I'm off topic here, but man that looks fast Grumpy!
Back to topic.... How difficult is it to get the syty code to run with DIS? This is of course for WAY future projects......
Back to topic.... How difficult is it to get the syty code to run with DIS? This is of course for WAY future projects......
Trending Topics
Originally posted by JP84Z430HP
I know I'm off topic here, but man that looks fast Grumpy!
I know I'm off topic here, but man that looks fast Grumpy!
The DIS operation has been done with other ECM's that used distributors, There was a bit of code re-writeing to do but it supposedly works good.
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by Morley
The DIS operation has been done with other ECM's that used distributors, There was a bit of code re-writeing to do but it supposedly works good.
The DIS operation has been done with other ECM's that used distributors, There was a bit of code re-writeing to do but it supposedly works good.
Which other ecms?.
Supreme Member
Joined: Jun 2000
Posts: 1,612
Likes: 0
From: the garage
Car: 84 SVO
Engine: Volvo headed 2.3T
Transmission: WCT5
Axle/Gears: 8.8" 3.73
Originally posted by Grumpy
I'd suggest you investigate the 1227749 like the Syclone's use.
Either way an ecm bench is a real time saver.
The 749 has all the code in a memcal is alot easier to work with if you want to modify the code later. Not to mention the faster ALDL, and no MAF.
I'd suggest you investigate the 1227749 like the Syclone's use.
Either way an ecm bench is a real time saver.
The 749 has all the code in a memcal is alot easier to work with if you want to modify the code later. Not to mention the faster ALDL, and no MAF.

I need to get busy with the 383..
BW
Last edited by SATURN5; Dec 20, 2003 at 10:57 AM.
Originally posted by Grumpy
What rewriteing was needed?.
Which other ecms?.
What rewriteing was needed?.
Which other ecms?.
Senior Member
Joined: Oct 1999
Posts: 6,621
Likes: 2
Car: 91 Red Sled
Axle/Gears: 10bolt Richmond 3.73 Torsen
Originally posted by Morley
Someone on the GMECM list had done a hack and patch of one of the TBI ECM's to run DIS. Don't remember their name but they did get it working (according to them) with a bit of work.
Someone on the GMECM list had done a hack and patch of one of the TBI ECM's to run DIS. Don't remember their name but they did get it working (according to them) with a bit of work.
. I wouldn't mind trying this out if it allows me to run either wasted spark or CNP. Originally posted by JPrevost
Could you try really really hard to remember there name
. I wouldn't mind trying this out if it allows me to run either wasted spark or CNP.
Could you try really really hard to remember there name
. I wouldn't mind trying this out if it allows me to run either wasted spark or CNP. Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by Morley
Someone on the GMECM list had done a hack and patch of one of the TBI ECM's to run DIS. Don't remember their name but they did get it working (according to them) with a bit of work.
Someone on the GMECM list had done a hack and patch of one of the TBI ECM's to run DIS. Don't remember their name but they did get it working (according to them) with a bit of work.
http://home.woh.rr.com/brucesgn/749togn/
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by JPrevost
Could you try really really hard to remember there name
. I wouldn't mind trying this out if it allows me to run either wasted spark or CNP.
Could you try really really hard to remember there name
. I wouldn't mind trying this out if it allows me to run either wasted spark or CNP. DIS for a v8 using GM stuff means Northstar, and they're $$$.
Unless you want to use dual ecms/sensors. Or develope a Klingon Language Translator.
GM's done about all the combos, you can imagine, you just need to poke around the junkyards to find them thou. Then it's just a matter of pasting the pieces together. That sometimes is easier then what you might imagine, it's generally a matter of looking closely to see what's going on.
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by SATURN5
First look at the new 4.1 boogie monster.
First look at the new 4.1 boogie monster.
Or for most folks, justa v6.
Senior Member
Joined: Oct 1999
Posts: 6,621
Likes: 2
Car: 91 Red Sled
Axle/Gears: 10bolt Richmond 3.73 Torsen
Originally posted by Grumpy
eDist allows either.
DIS for a v8 using GM stuff means Northstar, and they're $$$.
Unless you want to use dual ecms/sensors. Or develope a Klingon Language Translator.
GM's done about all the combos, you can imagine, you just need to poke around the junkyards to find them thou. Then it's just a matter of pasting the pieces together. That sometimes is easier then what you might imagine, it's generally a matter of looking closely to see what's going on.
eDist allows either.
DIS for a v8 using GM stuff means Northstar, and they're $$$.
Unless you want to use dual ecms/sensors. Or develope a Klingon Language Translator.
GM's done about all the combos, you can imagine, you just need to poke around the junkyards to find them thou. Then it's just a matter of pasting the pieces together. That sometimes is easier then what you might imagine, it's generally a matter of looking closely to see what's going on.
.Eaton m112 might need a little more spark energy
. if you wanna talk about the 60* v6 and the 4cyl modules. the problem with those is that they cant calcutalte dwell for advance greater then 30* btdc. aarrgghh so you have to retard the timming 60* atdc to get 30btdc advance. does that makes snes ? no but thats how they do it. not to mention that the Ref pulse comes out at TDC. so the module is always one cycle behind the ECM. ill have to get off my lazy *** and post up the data ive got together on this in the near future. Since there are some folks hording it up.
Id like to get the 90* v6 3.8 timming vs ref vs EST line stuff together as well as the stuff for the n* and the lt5. but im wiating to get an actuall lt5 module to figure that pos out.
Id like to get the 90* v6 3.8 timming vs ref vs EST line stuff together as well as the stuff for the n* and the lt5. but im wiating to get an actuall lt5 module to figure that pos out.
Supreme Member

Joined: Feb 2000
Posts: 1,416
Likes: 0
From: Johnstown, Ohio
Car: 84 Z28
Engine: 355 (fastburn heads, LT4 HOT cam)
Transmission: 700R4
Axle/Gears: 9-bolt, 3.27
Originally posted by funstick
if you wanna talk about the 60* v6 and the 4cyl modules. the problem with those is that they cant calcutalte dwell for advance greater then 30* btdc. aarrgghh so you have to retard the timming 60* atdc to get 30btdc advance. does that makes snes ? no but thats how they do it. not to mention that the Ref pulse comes out at TDC. so the module is always one cycle behind the ECM. ill have to get off my lazy *** and post up the data ive got together on this in the near future. Since there are some folks hording it up.
Id like to get the 90* v6 3.8 timming vs ref vs EST line stuff together as well as the stuff for the n* and the lt5. but im wiating to get an actuall lt5 module to figure that pos out.
if you wanna talk about the 60* v6 and the 4cyl modules. the problem with those is that they cant calcutalte dwell for advance greater then 30* btdc. aarrgghh so you have to retard the timming 60* atdc to get 30btdc advance. does that makes snes ? no but thats how they do it. not to mention that the Ref pulse comes out at TDC. so the module is always one cycle behind the ECM. ill have to get off my lazy *** and post up the data ive got together on this in the near future. Since there are some folks hording it up.
Id like to get the 90* v6 3.8 timming vs ref vs EST line stuff together as well as the stuff for the n* and the lt5. but im wiating to get an actuall lt5 module to figure that pos out.
I bet that LT5 module is a hard to come by piece! The N* isn't as easy as I once thought, but I think it would still end up being cheap to find a used setup than the eDist. Not to mention the coolness of using all GM original parts!
the reason the modules are one cycle behind is becuase
One revolution to get a fix on crank position, then another revolution to create a delay long enough to control the module.
wierd but true. its not a code problem. its the way the module is designed.
One revolution to get a fix on crank position, then another revolution to create a delay long enough to control the module.
wierd but true. its not a code problem. its the way the module is designed.
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
The code is based on DRPs, not engine revolutions.
You don't need to overthink, it, all.
The LT5 is $$$, and at one time was discontinued, thou I heard rumor there were some more modules now in the system. Northstar is just $$$.
You don't need to overthink, it, all.
The LT5 is $$$, and at one time was discontinued, thou I heard rumor there were some more modules now in the system. Northstar is just $$$.
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by JPrevost
Yeah I know about the eDist but I really don't like the price. If it came with the coils and wiring harness then I'd be all over it. The fact that $300 for that little box plus the coils plus time mounting and wiring = not worth it just yet.
Yeah I know about the eDist but I really don't like the price. If it came with the coils and wiring harness then I'd be all over it. The fact that $300 for that little box plus the coils plus time mounting and wiring = not worth it just yet.
I bought a set of CNP coils off of eBay for 150.
Originally posted by Grumpy
The code is based on DRPs, not engine revolutions.
You don't need to overthink, it, all.
The LT5 is $$$, and at one time was discontinued, thou I heard rumor there were some more modules now in the system. Northstar is just $$$.
The code is based on DRPs, not engine revolutions.
You don't need to overthink, it, all.
The LT5 is $$$, and at one time was discontinued, thou I heard rumor there were some more modules now in the system. Northstar is just $$$.
The way the EST codes vary between the dizzy and DIS setups has to do with the way the modules behave. Id be fiarly certian in thinking that the N* v8 stuff should work fine with regular v8 code advance retard settings . But i havent had time to hash it out. the LT5 looks the most promising. And yes there are plenty of LT5 modules avaiable. Right now im trying to locate the lt1 mercuiser DIS setup that ran on MeFI2
Last bt no least is my Quest to use 2 4 cylinder modules to run a v8. its easier then you think. just gotta toggle the EST properly.
Supreme Member
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by funstick
yeah but the way the module behaves isnt at all based in ECM distributor world. it holds the DRP's till its got 2 sucessful revolutions with no resets. this way it knows its in sync. Ive had tons of trouble with this so ive rigged up a few test with Pulse genrators just to be srue.Then off course it runs Ahead of the ECM but in timming world it runs behind. Ill post up the data i have here really. soon.
The way the EST codes vary between the dizzy and DIS setups has to do with the way the modules behave. Id be fiarly certian in thinking that the N* v8 stuff should work fine with regular v8 code advance retard settings . But i havent had time to hash it out. the LT5 looks the most promising. And yes there are plenty of LT5 modules avaiable. Right now im trying to locate the lt1 mercuiser DIS setup that ran on MeFI2
Last bt no least is my Quest to use 2 4 cylinder modules to run a v8. its easier then you think. just gotta toggle the EST properly.
yeah but the way the module behaves isnt at all based in ECM distributor world. it holds the DRP's till its got 2 sucessful revolutions with no resets. this way it knows its in sync. Ive had tons of trouble with this so ive rigged up a few test with Pulse genrators just to be srue.Then off course it runs Ahead of the ECM but in timming world it runs behind. Ill post up the data i have here really. soon.
The way the EST codes vary between the dizzy and DIS setups has to do with the way the modules behave. Id be fiarly certian in thinking that the N* v8 stuff should work fine with regular v8 code advance retard settings . But i havent had time to hash it out. the LT5 looks the most promising. And yes there are plenty of LT5 modules avaiable. Right now im trying to locate the lt1 mercuiser DIS setup that ran on MeFI2
Last bt no least is my Quest to use 2 4 cylinder modules to run a v8. its easier then you think. just gotta toggle the EST properly.
Knew about the toggling, but still don't really see the point in all of it. All it takes is using a dual sensor distributor. Then an eDist or something similiar.
Originally posted by Grumpy
The modules all are wired the same, in their interface to the ecm, from what I've seen. So while the code may run a little different, it still ends up the same hardware wise.
The modules all are wired the same, in their interface to the ecm, from what I've seen. So while the code may run a little different, it still ends up the same hardware wise.
Originally posted by Grumpy
Knew about the toggling, but still don't really see the point in all of it. All it takes is using a dual sensor distributor. Then an eDist or something similiar.
Knew about the toggling, but still don't really see the point in all of it. All it takes is using a dual sensor distributor. Then an eDist or something similiar.
Thread
Thread Starter
Forum
Replies
Last Post





