When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
I had coded it in a different platform and really liked it.
I never get KR in first gear but it comes on in 2/3/4.
then in 5th gear i get some kr at much lower rpm.
so yes I’m on the edge. But I wrote the code today to check for first gear or overdrive then split off to increase or lower timing by a set amount. The code is basic but should function enough to do what I want. I also put in a map check to leave cruise alone.
Man, that sounds like it'd be pretty fiddly to tune..... I like it I haven't datalogged since I did my TKX swap, but I know I had some KR in overdrive when the car was still auto. Out of curiosity, how does the ECU know when you're in 1st/ 5th with the T5? Is it based off speed/ RPM?
Man, that sounds like it'd be pretty fiddly to tune..... I like it I haven't datalogged since I did my TKX swap, but I know I had some KR in overdrive when the car was still auto. Out of curiosity, how does the ECU know when you're in 1st/ 5th with the T5? Is it based off speed/ RPM?
It is all based off speed/rpm. Have to have your calculations right and there can be some crossover periods where its not reporting accurate at that moment. EBL has some PE tables that allow this type of control while PE is active. There is a "N/V - Manual Trans Ratios" parameter that allows adjustment for each gears range.
The calculation is why it’d be 1st, 2/3/4th grouped together then 5th. I could code in the other gears but they’re close enough and i wouldnt want any error slop. This setup should be quite good at detection.
the code would also work for automatics as that’s all the same just 1st and 4th gear detection.
Last edited by Vanilla Ice; May 19, 2026 at 12:36 PM.
Ok well I finished it. About to burn the prom to test.
When in First gear:
I have it adding up to 11.25 degrees with a MAP minimum limit. Under the MAP limit, no timing is added.
In 2/3/4 gears:
No change to timing tables.
When in Overdrive:
I have it subtracting any amount necessary with a MAP minimum limit. Under the MAP limit, no timing is pulled.
EDIT: Didn't test this. Found a bug in the logic that would have added 9 degrees of timing. Need to rework with my 4 dimensional table setup.
Edit again: Reworked the code and split it away from the 4D table. Now it's a standalone timing adjustment. Ready to test again.
Last edited by Vanilla Ice; May 19, 2026 at 02:11 PM.
Well it’s running. I still have some 5th gear kr but I haven’t scanned yet to see when and where it’s doing it. Should be quick to tune out now.
first gear still no knock with 2 extra degrees.
Man, that sounds like it'd be pretty fiddly to tune..... I like it I haven't datalogged since I did my TKX swap, but I know I had some KR in overdrive when the car was still auto. Out of curiosity, how does the ECU know when you're in 1st/ 5th with the T5? Is it based off speed/ RPM?
NV Ratio Tables...Basically calculates which gear it is in using RPM vs VSS signals.
Edit..Oops should have read down a few more posts.
Been thinking about this a lot.i had to do basic adder/subtractor values as I have limited RAM left and want to save the last few bytes of it. It’s extremely complex figuring out a best way iintermingled with the flex fuel blending.
But I think I cracked it. I think I will make full size 1st and overdrive gear tables for gasoline. One of the 3 gas tables will blend to the e85. Since e85 should already run best timing there should be no need for any adjustment.
so one of three gas tables will be looked up then blended with the 1 e85 table based off the blend factor. It will actually be less code to do this way too.
Man, that was easy. Now right where it used to read the table it jumps here, swaps tables depending on gear then jumps back to read the table loaded.
Edit: 5th gear knock is now gone. Awesome.
All set here.