C4 Tech/Performance L98 Corvette and LT1 Corvette Technical Info, Internal Engine, External Engine

ECM Timing

Thread Tools
 
Search this Thread
 
Old Mar 30, 2012 | 04:19 AM
  #1  
Cliff Harris's Avatar
Cliff Harris
Thread Starter
Race Director
15 Year Member
 
Joined: Apr 2002
Posts: 10,036
Likes: 346
From: Anaheim CA
Default ECM Timing

I thought I'd clarify this, since I read somewhere that the ECM in early C4s updates "thousands of times per second". Uh, not quite.

This information is specific to the 1227165 ECMs used in 1986 - 1989 Corvettes. The other ECMs are similar and I believe they got faster in the later C4s with the LT1 and LT4 engines.

The master interrupt clock in the microcontroller creates an interrupt every 6.25 ms (millisecond = 1/1000 of a second). 6.25 ms is 0.00625 seconds. Every time an interrupt comes along, the Major Loop Counter at address $0000 in RAM is incremented by one. That counter is used as an index into the Major Loop Segment Table, which looks like this:

Code:
*******************************************************
*  Major Loop Segment Table
*******************************************************
LCCE4:  FDB $CD04   ;  0.00 ms, Segment 0,  Do nothing, exit via RTS
        FDB $EDA3   ;  6.25 ms, Segment 1,  Output Bit Signals (TCC, CCP etc)
        FDB $E07F   ; 12.50 ms, Segment 2,  VSS Calculation
        FDB $EA28   ; 18.75 ms, Segment 3,  Misc 100 ms
        FDB $F8F9   ; 25.00 ms, Segment 4,  Log RAM to Heads Up
        FDB $ECEA   ; 31.25 ms, Segment 5,  A/C, Closed Loop & Cooling fan
        FDB $F3B6   ; 37.50 ms, Segment 6,  Log RAM to Heads Up, read coolant temperature
        FDB $EA95   ; 43.75 ms, Segment 7,  Look up Coolant variables
        FDB $CD04   ; 50.00 ms, Segment 8,  Do Nothing, exit via RTS
        FDB $E34E   ; 56.25 ms, Segment 9,  A.I.R. Injection Management
        FDB $EB3A   ; 62.50 ms, Segment A,  Look up Manifold Air Temp Variables
        FDB $DEE5   ; 68.75 ms, Segment B,  EGR
        FDB $E75D   ; 75.00 ms, Segment C,  Charcoal Canister Purge
        FDB $EF04   ; 81.25 ms, Segment D,  Diagnostics
        FDB $DE6D   ; 87.50 ms, Segment E,  TCC (ADC voltage conversion)
        FDB $EC23   ; 93.75 ms, Segment F,  Air/Fuel Major Loop
When the Major Loop Counter is 0, Segment 0 is executed. 6.25 ms later the Major Loop Counter is 1 and Segment 1 is executed. This continues until all 16 segments are executed. To execute all 16 segments takes 16 x 6.25 ms = 100 ms or 1/10 second. Then the ECM does some tricky arithmetic and starts over with Segment 0. The ECM continues doing this until the Major Loop Counter reaches 160. Then the Major Loop Counter is reset to zero and the cycle begins again. So 160 x 6.25 ms = 1.000 seconds. That means that the ECM is updating 160 times a second. Also, not every parameter is updated during every segment, so most of them are updated once per 16 segment cycle, or every 1/10 of a second. In most cases the updates occur 10 times a second, not "thousands of times".

This explanation is greatly simplified and there are a lot of things going on while the Major Segments are being executed. Some happen on every 6.25 ms interrupt, others happen every other interrupt (every 12.5 ms), etc. So 160 times a second is the most often that any one parameter or output is updated.
Reply




All times are GMT -4. The time now is 11:04 AM.

story-0
10 Ugly Corvettes That We Still Kinda Love

Slideshow: 10 ugly Corvettes that we still kinda love.

By Joe Kucinski | 2026-06-03 10:34:17


VIEW MORE
story-1
Top 10 Most Expensive Corvettes Ever Sold on Bring A Trailer

A lot of money has changed hands at the online auction house over the years.

By Brett Foote | 2026-06-03 10:21:50


VIEW MORE
story-2
10 Things Every Corvette Owner Needs (2026 Edition)

Slideshow: 10 great gifts Corvette enthusiasts actually want for Father's Day!

By Michael S. Palmer | 2026-06-03 15:43:40


VIEW MORE
story-3
8 Most "Only Corvette Owners Understand" Quirks and Problems

Slideshow: These are the quirks, annoyances, and oddly lovable problems that every Corvette owner eventually learns to live with.

By Pouria Savadkouei | 2026-05-28 09:31:39


VIEW MORE
story-4
10 Reasons the C6 Z06 is Still A Performance Benchmark After 20 Years

Slideshow: 10 reasons why the C6 Z06 is still a performance benchmark after 20 years.

By Joe Kucinski | 2026-05-27 17:20:09


VIEW MORE
story-5
How Much Horsepower Every Corvette Engine "LOST" in 1972

Slideshow: How much horsepower every Corvette engine lost in 1972.

By Joe Kucinski | 2026-05-27 16:54:53


VIEW MORE
story-6
Top 10 DOs and DON'Ts for Protecting Your Convertible Top!

Slideshow: How to Protect A Convertible Top: 10 DOs & DON'Ts

By Michael S. Palmer | 2026-04-03 00:00:00


VIEW MORE
story-7
Top 10 Most Explosive Corvettes Ever Made: Power-to-Weight Ratio Ranked!

Slideshow: The 10 most explosive Corvettes ever built based on power-to-weight ratio.

By Joe Kucinski | 2026-05-20 07:23:03


VIEW MORE
story-8
150 hp to 1,250 hp: Every Corvette Generation Compared by the Specs That Matter

Slideshow: From C1 to C8 we compare every Corvette generation by the numbers.

By Joe Kucinski | 2026-05-12 16:54:12


VIEW MORE
story-9
8 Coolest Corvette Pace Cars (and Replicas) of All Time

Slideshow: Some Corvette pace cars became collectible legends, while others perfectly captured the look and attitude of their era.

By Verdad Gallardo | 2026-05-11 09:50:51


VIEW MORE