This is the comparison between JDM and UK ign timing stock, courtesy of JonS in the UK who designed the ToyoTune boards that allows me to tune the stock ECU.
I do know not yet, neither does Jon. I should mention that that is the base ignition timing. There are other modifier tables within the the code. The code is written in assembler so not super easy to figure out for the layman. I'm trying to learn enough to figure more out.. If there are any coders/tuners out there that might be able to help, please reach out to me.
The base ignition timing is used in conjunction with VE, manifold pressure, RPM, and coolant temperature to decide on final timing. There's also 3 (iirc, I'm not at home) steps [of severity] of knock retard. And if everything is OK (>4kRPM, >some manifold pressure, coolant temp >141F/61C) there's some code that adds another "26" timing to cylinders 1-3, and 0 timing to cyl4. This seems to jive with the idea that cylinders 3/4 are the first to blow up due to hotter coolant on that side of the block. No timing will be added to any cylinder if all of those conditions are not met.
That's very interesting! certainly the first I've heard where timing if different between the cylinders. I assume fuelling is static across all 4 cylinders?
I toyed with the numbers in extra ignition advance, normally it's only 26 on the second row- which is if all necessary conditions are met. My engine has been modified from stock.
In the ECU code there's two fixed timing values that are referenced in the code.
86 - equates to 5 deg BTDC for cranking
128 - equates to 10 deg BTDC for diagnostic mode
The VE table is not % based, it is on a scale of 0-255
I got IDA working so I can see the raw code before it is built in to a binary file to flash to the chip that holds the code... Indeed, it definitely is going to take a lot of time to understand what Toyota did. http://i.imgur.com/1cCfTic.png
You'll notice some differences from the UK version of the code- the UK has no speed limiter code, the VE is a bit different (due to different intake setup?), and it adds 26 timing, above 4000rpm, to cyl4 as well.
Another interesting tid bit that explains why cylinders 3&4 are always the first to go:
We've known that coolant enters the block at cyl1 and exits at cyl4, so coolant (and thus combustion) temperatures gradiate up towards the exit on the block. The long standing presumption is that it is due to 3/4 being hotter they are more detonation prone. That's only part of the story now...
What I said before about additional timing being added to 1-3 is incorrect. I noticed an inconsistency and Jon checked out the ECU code. Turns out that the ECU treats cylinder numbers by firing order, cylinders 1-3 in the firing order receive additional timing @ >4kRPM >60C coolant temp, >X MAP, the 4th cylinder receives none. Now map that on to 1-3-4-2 firing order: cylinders 1, 3, and 4 have the timing increase, while cylinder 2 does not. Hence, boom.
What I said before about additional timing being added to 1-3 is incorrect. I noticed an inconsistency and Jon checked out the ECU code. Turns out that the ECU treats cylinder numbers by firing order, cylinders 1-3 in the firing order receive additional timing @ >4kRPM >60C coolant temp, >X MAP, the 4th cylinder receives none. Now map that on to 1-3-4-2 firing order: cylinders 1, 3, and 4 have the timing increase, while cylinder 2 does not. Hence, boom.
This is a very interesting thread! I'm trying to wrap my brain around why Toyota would increase timing to cylinders 1, 3, 4... and not #2? yes, it's in the center, but so is #3, and 3 runs hotter due to coolant temps.... it's just doesn't make sense. I'd like to know if there is extra fuel being sent to #3? In my PFC tune I send 0.5% of extra fuel to cyl #'s 2&3 since I'm using a center feed manifold.
Dam, that explains a bit of the puzzle with centre cylinder detonation.
Another theory I have is that the centre 2 cylinders (2 & 3) not only run hotter due to reasons above but get more air as the air follows path of least resistance. This in turn raises the AFR above any sequensial fuel increase.
From what I understand with the OEM tune it appears to be an oversight with the programming which was not recognised. I wonder if it's across all models or only on the UK gen 3 ECU's. There seems to be unexplained differences.
The hardware is nearly identical across all Gen3 ECUs, there are small circuit changes in the UK version to add support for EGR operation but that's it. The software is pretty much the same too. It's the same on JDM ECUs. I wouldn't be surprised if the gen2 ECU contained similar ignition logic, given they're both distributor CPS based.
paluce said:
This is a very interesting thread! I'm trying to wrap my brain around why Toyota would increase timing to cylinders 1, 3, 4... and not #2? yes, it's in the center, but so is #3, and 3 runs hotter due to coolant temps.... it's just doesn't make sense. I'd like to know if there is extra fuel being sent to #3? In my PFC tune I send 0.5% of extra fuel to cyl #'s 2&3 since I'm using a center feed manifold.
Yeah, adding extra fuel hypothetically helps but being able to pull 0.5-1 degree of timing would be much more effective- given if we could rewrite the advance code to support per cylinder advance values. There comes a point where adding fuel doesn't really provide additional detonation resistance and just makes you lose power, I trust you keep in mind.
I've printed off the above pics of ECU tables to study and try and understand logic. It also gives me some info to compare with my EMS in case I have some values which are out grossly of kilter with OEM figures. Thanks for the info.
I'm setting up my EMS tune and sequential fuel. Can I ask how you determined the 0.5% extra fuel for cyl 2 & 3 and at what point (rpm & MAP) do you inject? I was thinking something like 7% added fuel above 180kpa and 3200rpm.
I built the OBD1 logging cable and played with timing at idle. It appeared that 2 points of ignition adjusted timing by 0.5 degrees at same RPM/MAP values. However, dividing all the cells by 4 gives many of them unrealistic degree values. Assuming that each point is one fifth of a degree gets many of the vacuum values either spot on or very close to the logged value in degrees. Only issue is that the timing I'm seeing under load is far retarded from what this assumption would make you expect, and the ECU says there's no knock either...
ATS Aaron said, during his time playing with a Techtom MDM-100, that a perfectly OK running car basically says it's knocking all the time. I'm seeing single digit to low teens in many areas under boost.
Very useful info. I think I might make a copy of the JDM map and compare to what I have set in my tune. It would be good if I can safely advance my ignition in certain parts but I have been hesitant to do so because I'm picking up some knock using the MSv2 ECU. Believe its more of an adjustment to ECU than actual knock but need to do more research.
Can I ask what happens above 13.78psi with sock ECU?
And I take it this is the gen 2 JDM and not gen 3? Need to go back into beginning of thread and have another read.
I'm late to the party here and not at all familiar with this generation of ecu that you're working with, but I'm very interested in what you're doing and potential applications with other Toyota ECU's. I had no idea that this capability was available for ECU's pre-dating J2534/CAN. Can you tell me the part numbers of these ECU's? What processor is used in them? Does it have an IDA module available?
Can you tell me what tools you're using for reading and writing to the ECU? Is there a source for the definition files (.xdf)?
I don't know that I have anything useful to contribute here except for a side note that on later ecu's like the 2Gr-FE the ignition angle scale factor is 0.25. I've been trying to gather information on these ECU's in another thread titled "2GR-FE ECU Tools and Techniques."
I have bin dumps for UK and jdm gen 3 ecu's and xdf files for tunerpro rt. Most of the old Toyota ecu's operate very similarly. If you jump e1 and te1 diagnostic pins one of the cpu's outputs a serial stream of operating parameters. If you go on eBay you can buy a pre obd Toyota connecter and wire that to a serial connecter db9 for a laptop then use the program I have, I forget the name, to monitor the engine.
For the ECU, I use a moates ostrich ROM emulator then I plug into daughter boards installed in my ECU. With that I can run one of my bin files and live tune. Then if I'm done I can use a chip flasher to program a cpu and reinstall into the board.
Then gen3 uses a dual core setup. One cpu seems to calculate most of the fueling and or maybe some of the timing. The other cpu seems to have something to do with knock response. I don't have the part numbers of the top of my head and I'm not at home right now. But respond to this thread to remind me to get them but yes I have Ida files for the ecus.
Been a long time since I've updated this, we should have the correct timing formula now. I converted the MAP values to kPa on this one since I also have a Link, but here's the chart:
UK ST205 raw/interpolated & converted
400
1000
1500
2000
2500
3000
3500
4000
4500
5000
5500
6000
6500
7000
7500
8000
14
14.49
28.20
33.01
35.00
38.40
39.10
39.22
39.22
39.22
39.22
39.22
39.22
39.22
39.22
39.22
39.22
33
10.98
22.11
28.91
34.30
36.52
38.63
39.22
39.22
39.22
39.22
39.22
39.22
39.22
39.22
39.22
39.22
51
5.35
15.78
22.81
28.20
32.54
34.65
36.88
37.11
37.34
37.46
38.05
38.98
38.98
39.10
39.10
39.10
67
2.42
13.44
19.41
21.64
26.45
29.96
31.02
31.48
31.48
31.48
31.48
31.72
31.95
32.54
32.54
32.54
80
0.20
8.98
16.72
20.00
22.23
24.69
26.56
27.50
27.73
27.73
27.97
25.39
26.33
28.67
28.67
28.67
98
-0.74
5.94
14.02
16.48
20.70
23.63
25.86
26.33
26.80
26.91
27.27
25.39
25.63
27.85
27.85
27.85
113.21
-2.03
3.59
12.27
16.02
19.65
22.11
23.28
24.22
24.45
24.69
26.56
26.80
26.56
27.85
27.85
27.85
129.55
-2.85
2.42
9.45
12.50
14.96
18.59
21.17
20.70
20.70
20.70
22.34
22.34
23.05
24.45
24.45
24.45
145.2
-3.55
1.48
7.11
8.98
12.15
15.55
17.89
16.95
17.19
17.19
18.59
18.83
19.77
21.17
21.17
21.17
169.1
-3.91
-2.50
3.83
7.11
9.10
10.16
12.27
11.09
12.27
12.27
14.61
15.78
16.95
18.59
18.59
18.59
178.6
-3.91
-2.50
1.95
5.00
5.82
7.34
8.75
7.34
9.45
9.80
12.27
12.50
13.91
17.19
17.19
17.19
201.88
-3.91
-3.91
-2.38
0.31
4.30
6.17
7.58
5.70
8.75
7.70
10.16
11.09
12.03
13.32
13.32
13.32
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Related Threads
?
?
?
?
?
MR2 Owners Club Forum
5.4M posts
114.7K members
Since 2004
A forum community dedicated to Toyota MR2 owners and enthusiasts. Come join the discussion about performance, modifications, troubleshooting, turbos, maintenance, and more!