Getting Started Guide

Holden/Delco Tuning. ALDL, OBD 1.5. Circa 1989 to 2004.
User avatar
VL400
Posts: 4991
Joined: Sun Mar 01, 2009 2:54 pm
cars: VL Calais and Toyota Landcruiser. Plus some toys :)
Location: Perth, WA
Contact:

Getting Started Guide

Post by VL400 »

Hopefully this will serve as a crash course in the basics of the GM Delco Engine/Powertrain control system. It is a complex system and due to the nature of it being a factory system is also not very intuitive. We are going to try and demystify this!

ECM/PCM Hardware and Software: – The ECMs and PCMs used from VN to VY (excluding LS1) used an 8 bit processor that’s based on a HC11. The software that runs in the ECM is stored on an EPROM that’s part of the memcal (memory calibration). The software is normally referred to as a bin file or binary. This is the compiled code that was originally written in assembly language. You can download many of the original Holden bin files here. The binary is made up of a few parts, the calibration data which contains all the items you will change to make tuning adjustments and is often referred to as the cal. Another part is the running code, it is compiled HC11 machine code and makes up the bulk of the binary. It is what does all the number crunching and does lookups to the cal segment to get the tables and constants.

The VN/VP ECM hardware is very similar to the VR/VS (excluding Ecotec) manual ECM, the VN/VP loses the 8192 baud data chip so is stuck at 160 baud. This ECM is commonly known as the ‘808 due to its part number of 1227808. You can add a small board to enable the higher data rate on the VN/VP ECM, this also requires the use of a VR/VS bin and a larger EPROM in the memcal. The memcal contains an EPROM (27c128 in the VN/VP and 27c256 in the VR/VS), on vehicles with a knock sensor there is a knock filter board to process the knock sensor output and also the netres for limp home. The netres is a resistor network that puts the ECM into an analog fueling mode if there is a total failure of the ECM. Limp home mode is a little misunderstood, the ECM has many fault handling modes if a single or multiple sensor fails (ie the manifold temp sensor goes open circuit, it uses the coolant temp to calculate an approx manifold temp value). If the ECM has a terminal failure where the software can no longer run then limp home mode is invoked. This is controlled by a chip called the FMD (fuel modeling device), if the CPU fails to reset the watchdog timer limp home mode takes over. The spark is controlled by the ignition module. There is a line called bypass mode, when this goes to 5v the ECM takes control of spark timing and dwell, when its grounded the ignition module controls spark timing. In limp home mode the spark is controlled by the ignition module only. In ignition module mode timing is fixed at the base spark advance, this is usually 10deg BTDC.

In 1993 with the VR auto Commodore GM started using a PCM (Powertrain Control Module) to control both the engine and transmission. The initial code designation was $11 and was 64k bytes stored on a memcal with a 27c512 EPROM. The PCM is much more complex than the early ECMs, it runs at the same speed but executes nearly double the amount of code. The main difference to the engine code is it now has banked fuel injection for the V6. The transmission code is very complex - it detects the start and end of a gear shift by looking at the slope of engine RPM, uses a PID control algorithm to control the current to the force motor for shift quality, adjusts shift speed based on a target shift time so aging of the gearbox does not affect the shift quality (obviously there are limits to this), TCC lockup/release using ramp up/down rates, upshift/downshift with respect to vehicle speed for economy/power/cruise control/hot/cold, full fault diagnostics and handling. This is only just a few of the functions and as can be understood it is not a simple task to tune these.

The VS Ecotec now uses a MAF sensor instead of the MAP based speed density system, while the VS V8 series I and II retain the same style of PCM used in VR models using a MAP. The VS V8 series 3 became MAF based using a 16234531 PCM. Software wise the load variable for MAF systems is now airflow in grams/sec rather than MAP in kPa and all MAF systems are sequential injection. While MAF systems are far more tolerable to modifications, if your used to tuning using MAP based systems it can be difficult to get your head around. The memcal of MAF based vehicles also changed, it now no longer contains the limp home resistor network or knock sensor filter and contains just a 27c010 EPROM, the limp home is handled by a custom IC on the PCM PCB and the knock filtering by a digital filter IC. There is a specific manual PCM, it has extra hardware for the different vehicle speed sensor style (modification here .. viewtopic.php?f=7&t=1377&p=15740#p15740).

The VT brought about a new PCM which both the V6 and V8 used. It is similar to the VS Ecotec PCM and uses the same style memcal. The V8 and V6 have different part numbers, 16234531 and 16233396 respectively, due to having extra injector drivers for the V8. Both manual and auto use the same PCM and the VT V6 S/C uses the same PCM as the NA V6.

When the VX was released GM used a flash based PCM, 09356445. This meant there is no longer a memcal, instead all the software is stored on a 29F010 flash chip. The PCM is also a new generation IPCM-6 and runs a higher clock speed. The processor is still the same 8bit HC11 derivative.


Data Logging: - The first step in getting stuck into the workings of the ECM is to start gathering some data. This can be done using the ALDL data interface, some information on ALDL is available here.



Tuning: – This is a small getting started guide to the tools needed to make changes to the tune, it is not designed to be a tuning how-to guide.

There are many ways to go about making changes to the tune. The number one rule is to make small changes one at a time!! Real-time tuning is great, but for a beginner it is the easiest way to get yourself totally confused, have an engine that runs worse than before you started or worse still damage something permanently. Take baby steps before trying to run, gather data, more data and then more data, understand and analyse that data and then work out what needs changing. When starting out you will find there are many abbreviations, a list of common ones are available here.

There are a few free software packages available to make tuning changes. One that is commonly used and discussed on this forum is TunerPro. The software allows logging and tuning using many different forms of hardware. For any form of adjustment you need to be able to define the tables and constants and for this TunerPro uses a file called an XDF. These can be found here for most models of Commodores. Load up a binary and the corresponding XDF and have a look at what’s available to tune. Not all the XDFs are complete but will be updated as time goes on. Its very important to match the XDF with the bin, with some code bases there are also variants so you must be careful to match the XDF variant with the bin variant. The easier alternative to downloading heaps of bins and XDFs is to grab the memcal ID tool, it contains all the bins and XDFs you can download from this site.

To actually make the change is where you have a few different options. The most basic would be just reprogramming the factory memcal. Before starting anything it would be a very good idea to buy a spare memcal from a wrecker and program this instead, this way you will have a backup in the form of the original memcal. To reprogram the factory memcal you will require a UV eraser and an EPROM programmer. There are heaps on Ebay, many people have had good success with Willem programmers.

Another alternative is to convert a memcal to use an EEPROM. You will then not require a UV eraser. This is done by cutting the original EPROM out and soldering in a socket for an EEPROM. You can also solder the EEPROM directly into the memcal if you want. You will still require a programmer.

http://www.moates.net sell a few different products for tuning. They have EPROM emulators and logging cables. I have not used any of these products so can’t offer much more info, they have a forum here where you can enquire about any products.

For flash based PCMs (VU, VX and VY) the Flashtool can be used to read and write the calibration and binary with no modifications to the PCM. It is recommended that a spare PCM be purchased if you are intending on reading and writing the entire binary.

NVRAM Tuning: – The form of tuning that DelcoHacking.net promote is using the ALDL data interface and an NVRAM in place of the factory EPROM and memcal. There are a few advantages to this, the biggest being that its totally contained inside the ECM/PCM. There is no need to have the ECM or emulator sitting on the passenger floor and for VR and later you just connect up to the vehicle port and can log and tune as you please. For VN/VP you can extend the serial/USB connection and have a plug that is convenient to get to.

The disadvantage is the binary must be modified to enable writing. This has now been completed for all models from VN-VY (excluding VX/VY flash PCMs and LS1), some are still requiring testing so please contact me if you can help. The list of vehicles and the bins can be found here.

For the VN/VP ‘808, the VR V6 and V8 manual and VS V8 manual you can use the 12P package. This is a factory binary that was disassembled and then extra code added. It contains more performance oriented features. It has a well defined XDF and ADX, along with TP5 support for bubble tracing.

The NVRAM board is available in two versions, one suits VN-VS (excluding ecotec) and the other VS Ecotec to VY (Excluding flash based PCMs). These replace the memcal with an NVRAM chip. The NVRAM is basically regular RAM with battery backup. This means the CPU can read and write instead of just reading. With different code running in the ECM it is possible to use ALDL compliant packets to write to the calibration data area while the ECM is running. This is done over the vehicle data interface and means you can make tuning changes in real-time.

There are two tools available to read and write to the ECM, the flashtool and the TP5 plugin.

The Flashtool is a standalone tool that allows reading the calibration, the entire binary, RAM and EEPROM. It can write to the calibration and also update the binary of some releases. With the calibration write function you can edit the calibration in TunerPro and then flash it into the ECM. This can be done while the engine is running if you like. It can also read and write to a standard flash based PCM, but the engine must be switched off. It also performs other tasks for the OSE 12P code such as flex table editing, cal migration for new version releases and ALDL editing. Other non-specific tasks are GM OBD-I key finding, listening to chatter and a packet generator for individual ALDL commands.

The TunerPro V5 plugin by antus allows for real-time tuning while logging – over the one cable connected to the vehicle data port. You are able to have a dashboard in TP5 displaying the current operating parameters while editing tables that use bubble tracing to display the current cell being used. This makes it really easy for the more experienced user to make fast and accurate changes in real-time. This system is far easier to use than any other commercial Delco tuning solution, it allows for USB data interfaces and windows PCs. The plugin only works on the RT enabled bins or OSE packages such as 12P, it will not detect a factory PCM when choosing 'Detect Hardware'.

Chip Programming Offsets: – When programming any form of memory chip you must write the bin to the correct memory offset. If the offset is wrong the ECU will run off the backup fueling modes, the CEL will be lit and, if fitted, the engine cooling fan on all the time. This diagram shows two common size memory chips and where to burn each type of bin. For example, burning a 32k bin to a 512k EPROM would use offset of 0x8000.
EPROM Memory Allocation.jpg
EPROM Memory Allocation.jpg (39.8 KiB) Viewed 153689 times
If you want to stack bins and then switch on the fly there is some info in this thread - EPROM Bank Switching

Other Tuning Tools:
Kinjflow calculator for determining the injector rate when upgrading to larger injectors.
Convert a Netres for a different number of engine cylinders.
Tuning with 12P. This covers the basics of getting an initial tune in 12P. A more advanced guide will come later.
$A5 PE Spark and AFR calc can be found in the $A5 zip package.


Wiring Diagrams: - VN, VR V6 Auto, VS V8 Auto, VR V8 Manual, VY V6, JE Camira


FAQ: - Have a read of this for the most common forum questions and a few more documents.
yoda69
Posts: 1215
Joined: Sun Mar 15, 2009 10:20 am
cars: 2004 VYII Acclaim Wagon V6 Auto LPG/Petrol
2004 VYII Berlina sedan V6 Auto
2005 VZ Monaro CV8 manual
Location: Geelong, VIC

Re: Getting Started Guide

Post by yoda69 »

VL400,
Awesome write up, the only error I saw is that VT V8 Manual and Auto use a common PCM (16234531) and VT V6 (including S/C) use a common PCM (16233396) for Manual and Auto.
There is also the Orpaned VS Series 3 V8 Ute/Statesman that also use VT V8 PCM (16234531) and is a MAF based V* like the VT.

yoda69
User avatar
VL400
Posts: 4991
Joined: Sun Mar 01, 2009 2:54 pm
cars: VL Calais and Toyota Landcruiser. Plus some toys :)
Location: Perth, WA
Contact:

Re: Getting Started Guide

Post by VL400 »

Thanks, have fixed that up :D
accelrate
Posts: 3
Joined: Sat Jul 02, 2011 6:24 pm
cars: LH Torana

Re: Getting Started Guide

Post by accelrate »

Could you possibly put something up about which EEPROMs we can use, as I am struggling to find definitive answers in other threads.

Everything else has helped give me confidence to tackle it myself though, keep up the good work.
Thanks, Wayne
User avatar
charlay86
Posts: 584
Joined: Thu Sep 17, 2009 2:00 pm
cars: VT S1 SS (L67)
Location: Perth, WA

Re: Getting Started Guide

Post by charlay86 »

It really depends on which ECM/PCM you are using and the software you are going to run on it.
mick57
Posts: 5
Joined: Tue Jul 10, 2012 1:39 pm
cars: 57 belair
Hr sedan
Hq belmont
Hq kingswood
Hq premier
Hq van
Vn calais

Re: Getting Started Guide

Post by mick57 »

Hi guys,
Awesome writeup. I have been tackling an issue with a VN calais for a while now. its a v8 auto and since i have owned it it appears the memcal loses its memory every couple of days. It will run fine when i leave home but a few intersections up the road the idle will drop off to nothing. If you nurse the throttle at idle for long enough it will gradually return but then everything has to be re learnt by the ECM. Park, Drive, A/C on, A/C off ect. The previous owner said it had a cam installed but couldn't give me the specs. I have replaced everything there is to be replaced but no avail. The ECM was damaged on a few pins where the wiring harness connects so the ECM has been replaced with another VN unit. I ran the car with a standard memcal but it had overfuelling issues on deaccelleration. That being said the idle was rough but it was constant which tells me the issue is somwhere in the memcal. After reading through the writeup i am pretty keen to find the problem and finally fix it. I am just not 100% sure which way to go. You mentioned installing an EEPROM as opposed to the EPROM. Is there anywhere i can get some more info in this mod? And what would be the easiest way of retreiving the data off my memcal? Is there an adapter available you can just plug the complete memcal into without desoldering the chip?
Cheers.
User avatar
Holden202T
Posts: 10308
Joined: Sat Feb 28, 2009 9:05 pm
Location: Tenambit, NSW
Contact:

Re: Getting Started Guide

Post by Holden202T »

i guess it all depends on how much you want to spend.

firstly to get the memcal info off it you will need an eprom programmer - these are cheap enough from ebay, or you could also post it to someone here and we can read it off and send it back etc.

for making changes you can stick with the eprom, but eeprom is just easier to erase and and write to, either way both will require eprom programmer, and also the eprom will require uv eraser.

then there is the option of realtime tuning which can be done with VL400's products that are in the for sale section, nvram and suitable serial/usb interface will allow you to tune while you drive and make reading/writing the tune alot easier, but also have more of a cost.

more than likely the biggest issue with your tune is either the IAC is going nuts due to idle stop screw not set right or idle rpm too low in the tune or a combination of the two, but really you need to get the tune off the memcal to see.

you could try screwing your idle stop in to open the butterfly a bit more, and this might stop the issue of having to nurse the throttle, but also its only a bandaid for the time being.
mick57
Posts: 5
Joined: Tue Jul 10, 2012 1:39 pm
cars: 57 belair
Hr sedan
Hq belmont
Hq kingswood
Hq premier
Hq van
Vn calais

Re: Getting Started Guide

Post by mick57 »

Thanks for the reply. I have a programmer on its way. I will copy the tune off the eprom and see if i can find what is going on, if its a tune issue or a field issue. if i have any problems i will post the tune up and give you a look.
Cheers.
Dylan
Posts: 3350
Joined: Mon Aug 02, 2010 6:35 pm
cars: VR Commodore V8

Re: Getting Started Guide

Post by Dylan »

I have TP5 and i want to loom at a $12P tune, i looked through some guides but they refered to the real time software package (which i have intentions of getting) is it possible to look at and edit the $12P tune for now?

Worked it out!!
User avatar
Zedric
Posts: 11
Joined: Sat May 25, 2013 1:28 pm
cars: 76' 260 Z 2 seater

Re: Getting Started Guide

Post by Zedric »

Hi, everyone, I'm new here and have a few questions. With the 808 (VN V6) wiring i noticed pins C15,C16 joined and all 6 injectors wired together, On the 3082 (VR V6 man) C15 is for injectors 1,5,6, and C16 for 2,3,4. Obviously the VR ecm would need a cam angle sensor as well as the crank angle sensor. So it's my understanding that C15 will fire three times 120° apart for the first 360°, and then C16 does the same for the next 360° to correspond with the firing order 1,6,5,4,3,2. What I need to know is if I could change it so they would alternate (C15,C16,C15,C16,C15,C16) over 720°.
Post Reply