2nd Generation Specific (1986-1992) 1986-1992 Discussion including performance modifications and technical support sections.

questions about ecu functions (programming help please)

Thread Tools
 
Search this Thread
 
Old Oct 9, 2002 | 09:25 PM
  #1  
VashtheStampede's Avatar
Thread Starter
Full Member
Tenured Member 10 Years
 
Joined: Aug 2001
Posts: 247
Likes: 0
From: KC
questions about ecu functions (programming help please)

how many cycles per second does the stock ECU operate at? i am going to try to hook up one of my spares to the PC in hopes of simulating engine conditions by faking sensor inputs and logging ECU outputs, thereby giving us a detailed map of ECU programming. after that i will use the logs to create my own programming and try to run an engine from my laptop.

what is the most basic control i need over an engine to make it run? (just at an idle) i need to be able to fire injectors and spark plugs. is that all? meter air, add appropiate amount of fuel, fire ignition at proper time.
that about sum it up? does anyone know what kind of accuracy i need on the crank sensor? the lead timing is at 5 degrees after top dead center. trailing is 20 deg ATDC.

alternator output is 12v at 70amps? i suppose i will need a transformer to power my ecu for testing purposes, eh? or else hook it up to a car battery. i guess running the ecu cant use that much power. hehehe

so if i can accurately track the crank (via CAS output)
then i should be able to dump in some gas by giving the injectors power and telling the ignition coils to fire at the specified crank position. even without giving it the RIGHT amount of gas it should at least TRY to run. hehehe.

the FSM looks like its got enough info here for me to fake all the sensor output i need, so i guess i can just give it a whirl and find out just how fast the ECU is on my own.

if anyone can give me a list of exactly what functions a good ECU should perform, it would be most appreciated.
like ignition advance with rpm, retard with boost, more fuel with load, ignition retard on decel... whatever.
anything the haltech does i want to hear it. hehe
thanks.
Reply
Old Oct 9, 2002 | 09:44 PM
  #2  
Scott 89t2's Avatar
SOLD THE RX-7!
Tenured Member 10 Years
 
Joined: Mar 2001
Posts: 7,451
Likes: 0
From: Vancouver, BC, Canada
people already have full ecu maps ect on there computers... read straight off the ecu chip. but it doesn't go anywhere... reted tryed to do a bunch. there is also somebody else right now who has some big electrics board made hooked up to an ecu testing stuff.

and the ecu is slow...
Reply
Old Oct 9, 2002 | 10:09 PM
  #3  
VashtheStampede's Avatar
Thread Starter
Full Member
Tenured Member 10 Years
 
Joined: Aug 2001
Posts: 247
Likes: 0
From: KC
Originally posted by Scott 89t2
people already have full ecu maps ect on there computers... read straight off the ecu chip.
well hell! why doesnt everyone have this information?
or am i just the last to hear about it. =)

know where i can get my hands on one?

hahaha, slow... =) good i was worried it would be blazingly fast and i wouldnt be able to keep up.

slow makes things easier
Reply
Old Oct 9, 2002 | 11:28 PM
  #4  
Evil Aviator's Avatar
Rotorhead
Tenured Member 15 Years
 
Joined: Feb 2001
Posts: 9,136
Likes: 39
From: Charlottesville, Virginia, USA
S4 NA ECU:
8-bit, 16Kb processor, 52 digital terminals
Inputs: vehicle speed, throttle position, exhaust manifold pressure, air flow, coolant temperature, engine rpm, exhaust gas O2.
Outputs: spark timing, fuel injection, idle speed, exhaust emission.

S5 ECU:
Supposedly twice as fast.

Sorry, I don't know what all is required to trick the computer into working. IMO, it is best to throw it in the trash and buy an aftermarket EMS made in the current century.
Reply
Old Oct 9, 2002 | 11:46 PM
  #5  
VashtheStampede's Avatar
Thread Starter
Full Member
Tenured Member 10 Years
 
Joined: Aug 2001
Posts: 247
Likes: 0
From: KC
how is idle speed and exhaust emmision an output function of the ECU?

seriously good information.

8 bit, eh? w00t NES!!!

exhaust manifold pressure??? are you serious?
what the heck for?
Reply
Old Oct 10, 2002 | 12:27 AM
  #6  
RETed's Avatar
Lives on the Forum
Tenured Member 10 Years
 
Joined: Feb 2001
Posts: 26,664
Likes: 22
From: n
I'm not exactly sure what you're trying to do...

You mention clock speed, but do you know there's a difference between CPU clock speed and uP clock speed?


-Ted
Reply
Old Oct 10, 2002 | 05:12 AM
  #7  
NZConvertible's Avatar
I'm a boost creep...
Tenured Member 05 Years
 
Joined: Jan 2002
Posts: 15,608
Likes: 8
From: Auckland, New Zealand
Originally posted by VashtheStampede
how is idle speed and exhaust emmision an output function of the ECU?
The base idle speed is controlled by the TB, but the ECU uses the BAC valve and ASV to increase idle speed to compensate for alternator, air-con and power steering loads.
Emissions output is controlled by the ECU-controlled secondary air injection system, EGR system, etc.
Reply
Old Oct 10, 2002 | 07:32 AM
  #8  
renns's Avatar
Rotary Enthusiast
Tenured Member 20 Years
 
Joined: Oct 2001
Posts: 1,022
Likes: 4
From: Ontario, Canada
Vash,

I've done some similar work in the last couple weeks. I have installed the MegaSquirt standalone EFI system on my '86 n/a. I modified the stock ECU, and diverted the appropriate inputs and outputs to the MS to allow it to run injectors. Ignition is still run by stock ECU. To check tuning values I'm using, I've compared the stock ECU's pulse width against my present MS settings. This has been quite helpful. I have configured the system so I can quickly swap back to a spare stock ECU if I have problems with my 'experimental' setup.
Reply
Old Oct 10, 2002 | 09:08 AM
  #9  
VashtheStampede's Avatar
Thread Starter
Full Member
Tenured Member 10 Years
 
Joined: Aug 2001
Posts: 247
Likes: 0
From: KC
Originally posted by RETed
You mention clock speed, but do you know there's a difference between CPU clock speed and uP clock speed?
what is uP clock speed?

the speed i was thinking of is how many times per second the computer analyzes all input and computes new values for output.

Originally posted by NZConvertible
The base idle speed is controlled by the TB, but the ECU uses the BAC valve and ASV to increase idle speed to compensate for alternator, air-con and power steering loads.
Emissions output is controlled by the ECU-controlled secondary air injection system, EGR system, etc.
oooh right. i shoulda thought of that. im sitting here with no emmisions controls on my car so i totally forgot about them. hehehe
Reply
Old Oct 11, 2002 | 02:53 PM
  #10  
RETed's Avatar
Lives on the Forum
Tenured Member 10 Years
 
Joined: Feb 2001
Posts: 26,664
Likes: 22
From: n
Originally posted by VashtheStampede

what is uP clock speed?

the speed i was thinking of is how many times per second the computer analyzes all input and computes new values for output.
It's not faster than 12MHz.

Clock speed comparision with a (computer) CPU isn't valid, since the reduced IS of the uP and the fact it runs in machine langauge (well the CPU does to, technically) allows very quick absolute time frames for an instruction cycle...



-Ted
Reply
Old Oct 11, 2002 | 10:33 PM
  #11  
Henrik's Avatar
Senior Member
Tenured Member 20 Years
 
Joined: Mar 2001
Posts: 429
Likes: 0
From: Vancouver
The stock 86-88 ECU is a modified 6303 running at 1MHz, this gives it about a 300k instructions/s execution rate - quite slow particularly these days (shift all decimal points by 3!). How it works is a mix of software with hardware support. Basically all the timing critical stuff (injection timing/length, ignition timing) is handled with hardware assist - you won't be able to duplicate this affect easily with S/W only (needs lots of SW cycles). The main loop runs at 8.2ms, which allows it to handle up to about 7300rpm (probably one reason why the redline is at 7k). Don't let its lack of advertised blazing speed fool you, the outputs are plenty accurate - fuel can be controlled to the uS as an example. Haven't figured timing yet. The 89+ runs at 1.5MHz I believe (somebody give me one and I'll confirm

BTW the stock ECU does all those things you mention in the "what a good ecu does" category, it just has a different optimization than many people with aftermarket ECUs are running.

Also, starting and idling an engine are probably the hardest things to do - WOT is much easier.

Henrik
87TII
Reply
Old Oct 11, 2002 | 10:41 PM
  #12  
j9fd3s's Avatar
Moderator
Community Builder
Liked
Loved
Community Favorite
iTrader: (3)
 
Joined: Mar 2001
Posts: 31,833
Likes: 3,232
From: https://www2.mazda.com/en/100th/
www.16paws.com

mike
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
C. Ludwig
Single Turbo RX-7's
49
Jan 30, 2019 06:31 AM
Skeese
Adaptronic Engine Mgmt - AUS
65
Mar 28, 2017 03:30 PM
stickmantijuana
Microtech
30
Apr 23, 2016 06:37 PM
12abridgeport
1st Generation Specific (1979-1985)
2
Aug 17, 2015 06:28 PM
Professorpeanutrx7
New Member RX-7 Technical
5
Aug 15, 2015 01:38 PM




All times are GMT -5. The time now is 01:12 AM.