How the INTegrator works and how it is related to O2mV in $8D
Thread Starter
Supreme Member
Joined: Jul 1999
Posts: 2,844
Likes: 4
From: Maryland
Car: 2005 Subaru STI
Engine: 153ci of Turbo Power!
Transmission: 6-Speed
How the INTegrator works and how it is related to O2mV in $8D
First, I don't know the whole answer to this. I'm hoping that this can become a small group project where we can step through the code together and figure things out. We'll start with the ANHT hac. The code to which I am referring starts on page 166 and ends on 173. The first segment of code is as follows ...
Right off the bat I am not 100% sure what is happening. But I'll make an attempt in hopes that others will jump in and correct me. The normalized load MAP value is a special MAP value that the ECM uses for doing calculations, comparisons, and such. This is related to the real MAP A/D by 1.18 * A/D MAP-26. It is loaded into Register A and then halved. We then lookup the Integrator Delay vs. Flow (which I believe is a way for the ECM to compensate for the fact that it takes time for O2 to hit the oxygen sensor and that at different airflows the time will vary for when the results of combustion hit the O2 sensor. Is this right? Anyone?). Proceeding further - I get cornfused because I don't get how we can lookup the Integrator Delay vs. Flow when there's no mention of the 'Flow'. It would almost seem that this table is really Integrator Delay vs. Normalized Load Map Value? Is it? In any case we hit the code that subtracts off the R/L Offset vs Coolant. This appears to be a value that is subtracted from the O2mV to yield a lower swing point when in closed loop. True? I know that this value comes from ...
However, I am further cornfused because I don't understand how we can subtract this value from Register A when we don't have any O2mV currently stored in Register A (unless we are creating a negative value to be used later? -- and what happened to the Integrator Delay value??). After subtracting off the Cool Lean R/L value from Register A we then look to see if we are at idle. If we are at idle then we proceed to lookup the Fast O2 R/L threshold at idle constant and then store it to Register A (which overwrites the original value in Register A which was ????). If we are not at idle then we skip to the next line. We look to see if AIR is being injected to the manifolds and if it is then we subtract 100mV (AIR Diff R/L) from the threshold point in Register A. LC9D0 then pushes Register A on the stack orientation so that we can use it later?
Tim
Code:
********************* * CLOSED LOOP CODE ********************* ;------------------------- ; LK UP INTEGRATOR DELAY ; vs FLOW ;------------------------- LC9B7: LDAA L0071 ; NORMILIZED LOAD MAP VAL LSRA ; DIV BY 2 LDX #$84B4 ; INTEGRATOR DELAY vs FLOW JSR LE3D0 ; 2D LOOK UP, NO OFF SET SUBA $00F6 ; COOL LEAN OFF SET FOR C/L BRCLR L003E,#4,LC9C9 LDAA $8496 ; 0.60 V FAST o2 R/L THRES AT IDLE LC9C9: BRSET L003F,#2,LC9D0 ; BR IF AIR CONTROLED, 0 = DIVERT SUBA $849D ; 0.10 V DIFF R/L WHEN AIR DIVERTED LC9D0: PSHA
Code:
;------------------------------------------------- ; LK UP R/L OFFSET vs COOLANT ; 14 LINES ; ; TBL = COUNTS ;------------------------------------------------- LD524: LDX #$84F6 ; R/L OFFSET Vs COOL TBL JSR LE3D0 ; 2D LOOK UP, NO OFF SET ; STAA L00F6 ; COOL LEAN OFF SET FOR C/L
Tim
LDAA $8496 ; 0.60 V FAST o2 R/L THRES AT IDLE
I have a question considering what has come to light. So does ALL this mean that everyone is running 14.7:1 a/f ratio for part throttle(if ecm can compensate). Cause I have read that others run x fuel ratio for part throttle/idle. I guess they are using open loop?
This might sound stupid but I think that it might be possible to "control" a/f ratio via blm update constants. It seems that these tables are related to the topic, at least.!?
Thread Starter
Supreme Member
Joined: Jul 1999
Posts: 2,844
Likes: 4
From: Maryland
Car: 2005 Subaru STI
Engine: 153ci of Turbo Power!
Transmission: 6-Speed
That constant is exactly the constant I would have told you to change. However, I started this thread in case there is more to it than that. There's a lot of code there. FWIW, there's also a table of O2 thresholds vs. MAP for when the car is technically not at idle.
One of my main questions is what is the difference between fast O2 and slow O2 ... and what is the Error Reference for O2 do/mean?
Those who are running X AFR for part throttle are doing it via either open loop ... or via changing the O2 thresholds. The main thing here is that we don't have a big enough user population with fairly radical setups who actually report on what they do.
Tim
One of my main questions is what is the difference between fast O2 and slow O2 ... and what is the Error Reference for O2 do/mean?
Those who are running X AFR for part throttle are doing it via either open loop ... or via changing the O2 thresholds. The main thing here is that we don't have a big enough user population with fairly radical setups who actually report on what they do.
Tim
The main thing here is that we don't have a big enough user population with fairly radical setups who actually report on what they do.
Doesn't seem like there is many people willing to jump in on this one
Senior Member
Joined: Jan 2002
Posts: 812
Likes: 0
From: Red Deer, Canada
Car: 89 Shortbox
Engine: 350 Vortec
Transmission: 700r4
Haven't looked at this code much, though I've always considered the integrater to be far less important than the proportional part of the loop.
Fast O2 value is the current O2 mv, slow O2 is a less current value(delayed via first order lag filter). The two terms are are compared to give a delta value. This allows the ecm to know if things are going fine, or if the motor is going rich, or lean really fast.
The integrater doesn't seem to have the exact same function as a integral term in industrial process control loops. In industrail control, the integrator repeats the the action of the proportional term.......This really isn't relavent to this post though.
Fast O2 value is the current O2 mv, slow O2 is a less current value(delayed via first order lag filter). The two terms are are compared to give a delta value. This allows the ecm to know if things are going fine, or if the motor is going rich, or lean really fast.
The integrater doesn't seem to have the exact same function as a integral term in industrial process control loops. In industrail control, the integrator repeats the the action of the proportional term.......This really isn't relavent to this post though.
Moderator
iTrader: (1)
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Re: How the INTegrator works and how it is related to O2mV in $8D
Originally posted by TRAXION
. . .However, I am further cornfused because I don't understand how we can subtract this value from Register A when we don't have any O2mV currently stored in Register A (unless we are creating a negative value to be used later? -- and what happened to the Integrator Delay value??). After subtracting off the Cool Lean R/L value from Register A . . .
Tim
. . .However, I am further cornfused because I don't understand how we can subtract this value from Register A when we don't have any O2mV currently stored in Register A (unless we are creating a negative value to be used later? -- and what happened to the Integrator Delay value??). After subtracting off the Cool Lean R/L value from Register A . . .
Tim
Code:
JSR LE3D0 ; 2D LOOK UP, NO OFF SET
SUBA $00F6 ; COOL LEAN OFF SET FOR C/L RBob.
Last edited by RBob; Dec 16, 2003 at 08:21 AM.
Moderator
iTrader: (1)
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Originally posted by 11sORbust
Doesn't seem like there is many people willing to jump in on this one
Doesn't seem like there is many people willing to jump in on this one
RBob.
Trending Topics
Are you still on the 'tuning for dollars' path?
quote:
--------------------------------------------------------------------------------
Originally posted by 11sORbust
Doesn't seem like there is many people willing to jump in on this one
--------------------------------------------------------------------------------
Are you still on the 'tuning for dollars' path?
RBob.
--------------------------------------------------------------------------------
Originally posted by 11sORbust
Doesn't seem like there is many people willing to jump in on this one
--------------------------------------------------------------------------------
Are you still on the 'tuning for dollars' path?
RBob.
Moderator
iTrader: (1)
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Originally posted by 11sORbust
you must have me confused with someone else. How did you come up with that response from my words you quoted? Let me quote you and tell me how/why you responded that way.... And I'm trying to figure out why you would reply like that. I guess pm me if you would like to clarify. I would hate to see a nice thread like this getting ruined with personal comments. I think it would have been better to contact me directly. Tuning for dollars????? I know others do that but I have not made $1 tuning
you must have me confused with someone else. How did you come up with that response from my words you quoted? Let me quote you and tell me how/why you responded that way.... And I'm trying to figure out why you would reply like that. I guess pm me if you would like to clarify. I would hate to see a nice thread like this getting ruined with personal comments. I think it would have been better to contact me directly. Tuning for dollars????? I know others do that but I have not made $1 tuning
You are triple x are you not?
RBob.
http://www.team3rdgen.com/modules.ph...ewtopic&t=2357
http://www.team3rdgen.com/modules.ph...ewtopic&t=2394
My motivation is CLEARLY to learn this stuff for my engine(as stated before). It seems that you feel differently. That's fine if you want to put some type of spin on something. I guess you would feel better if I didn't post in the diy-prom, cause you have some type of investigation on me. I tried to PM you because I care about diy-prom. It's not cool to fill this board with personal attacks and such. So instead of replying via PM, you decide to fill this thread with JUNK. You didn't prove anything, other that you seem to have a hard on for me. 
I guess it would be better if I didn't post in diy-prom. If you are not replying to traxions thread because of me, then that's not fair to him. AND it's not fair to the board because it's not progressing on a technical level. Is it your fault? Well, you seem to feel that I need your responses to "tune for cash". Rbob, you are very talented. If you are not replying because of me, then I will just leave. I don't want any conflicts...
Tim Rotter

I guess it would be better if I didn't post in diy-prom. If you are not replying to traxions thread because of me, then that's not fair to him. AND it's not fair to the board because it's not progressing on a technical level. Is it your fault? Well, you seem to feel that I need your responses to "tune for cash". Rbob, you are very talented. If you are not replying because of me, then I will just leave. I don't want any conflicts...
Tim Rotter
i like what youve got cooking. I never thought about playing with the o2 filtering rates etc and the airflow vs MV stuff in 8d mostly becuase it hasnt been thuroughly hacked or commented. Id love to jump in but i get more confused then you do with whats going onin the snipets you have up there. . Do you have a whole code snipet you could post. its seems quite likely thats there is a ram adress thats being used that not being mentioned or something along those lines. It coud also be that the HAC is wrong.
Ill ask around and see what i can come up with. If what your onto is what i think your onto then this could prove useful for everyone. Ill see what i can find out.
Ill ask around and see what i can come up with. If what your onto is what i think your onto then this could prove useful for everyone. Ill see what i can find out.
Thread Starter
Supreme Member
Joined: Jul 1999
Posts: 2,844
Likes: 4
From: Maryland
Car: 2005 Subaru STI
Engine: 153ci of Turbo Power!
Transmission: 6-Speed
I don't want it to be DOA but I think it is. My assembly isn't strong enough to attack this yet. Whenever it gets better I'll come back to it. The problem is that when you delve into the really good subjects on a public board it gets really touchy. The advanced good subjects are usually ignored because then those who tune for money can use this knowledge to their benefit in making a name for themselves and to hustle up more business. IMHO, that sucks. More specifically it sucks that Greed prevents other DIY people from gaining more insight. I'm totally against tuning for money ... I've turned down probably 50+ people in the past 2 years (at $300+ a chip you do the math). I'm just not a fan of doing it when I can teach people how to do it.
Tim
Tim
Originally posted by TRAXION
I'm just not a fan of doing it when I can teach people how to do it.
Tim
I'm just not a fan of doing it when I can teach people how to do it.
Tim
Tim what you posted in here is over my head, so I can not help with this or some of the other post you have made, but I do like reading them and learning from what you and the other’s post here.
Thread
Thread Starter
Forum
Replies
Last Post
The_Phoenix
Interior Parts for Sale
12
Feb 4, 2016 07:10 AM
Linson
Auto Detailing and Appearance
40
Aug 21, 2015 02:12 PM




