Pages: 1 [2]
Author Topic: Custom C167 Boost PID  (Read 24950 times)
IamwhoIam
Hero Member
*****

Karma: +52/-114
Offline Offline

Posts: 1070


« Reply #15 on: April 02, 2023, 04:49:25 AM »

pjr=PyJamaRama
Logged

I have no logs because I have a boost gauge (makes things easier)
fknbrkn
Hero Member
*****

Karma: +185/-23
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #16 on: July 08, 2024, 05:57:58 AM »

Quick question
Im in my way into R32T w 022906032DR
And pw1 used here for exhaust cam / pw0 for intake one
So maybe someone wants to save me a day of digging into code / logs  Wink
Logged
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6034


« Reply #17 on: July 08, 2024, 06:51:01 AM »

There is usually PWM output for intake flap changeover. Or is it solved with an on/off on it?
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
Blazius
Hero Member
*****

Karma: +89/-40
Offline Offline

Posts: 1282



« Reply #18 on: July 08, 2024, 11:46:05 AM »

Quick question
Im in my way into R32T w 022906032DR
And pw1 used here for exhaust cam / pw0 for intake one
So maybe someone wants to save me a day of digging into code / logs  Wink


Yes. Use pw3 its free.

Thats what i did both on st10 and c167

Be aware you need configure the period register aswell.
Logged
fknbrkn
Hero Member
*****

Karma: +185/-23
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #19 on: July 08, 2024, 01:55:16 PM »

There is usually PWM output for intake flap changeover. Or is it solved with an on/off on it?

Seems that its only binary condition in this ECU

Quote
Yes. Use pw3 its free.

Thats what i did both on st10 and c167

Be aware you need configure the period register aswell.

Yep its free
At the 1.8t it seems that PW3 used for TEV with output to pin 64, can you confirm its the same pin?
Logged
Blazius
Hero Member
*****

Karma: +89/-40
Offline Offline

Posts: 1282



« Reply #20 on: July 09, 2024, 05:29:46 PM »

Seems that its only binary condition in this ECU

Yep its free
At the 1.8t it seems that PW3 used for TEV with output to pin 64, can you confirm its the same pin?

No its on pin 116 if I remember correctly. Positive is on 121 usually.
Logged
fknbrkn
Hero Member
*****

Karma: +185/-23
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #21 on: July 19, 2024, 05:00:47 AM »

No its on pin 116 if I remember correctly. Positive is on 121 usually.

Finally had a chance to test it and seems that pw3 on pin116 works like a charm
Thank you and also prj for this project  Smiley
Logged
fknbrkn
Hero Member
*****

Karma: +185/-23
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #22 on: September 10, 2024, 10:49:08 AM »

Just my 2c:

022906032DR file equipped with DSG

we had misfires at cyl1 and constant pwm even after shutoff after transfering routine from example file, all variables was fine, mono lambda patch also here, there is no load limit in this file

- all ram variables redefined to 387* instead of 384* this eliminate misfires, even if IDA shows empty space here, probably some ram-mirroring was there, ive faced this before so just swap it with 387xxx*

- changed turbo routine instead of feeding pwm it manages new ldtvm_w to be able to log wgdc and move pwm to its raster
- new code (below) with port writing hooks up with other pwm operations, i believe its 1ms raster, correctly operating pwm even with !b_kl

Code:
exts	#38h, #1
mov r4, ldtvm_w
movbz   r5, rl4
shl     r5, #8
mov     r4, PP3
mulu    r5, r4
mov     PW3, MDH
mov     r2, MDH

DPUPVDK calculates pvdkds_w based on ml_w in stock its subtracted map values from pu_w and i replaced it with addition due to map is not signed, this gives positive pvdkds_w and msdk_w now looking nice but i still thinking to replace it with native map sensor

RLVMXN/RLVSMXN maxed out to eliminate IOP limit and gives adequate misol_w, now its misol > miist, no torque intervention and car runs smoothly, ps_w, msdk_w, pvdks_w finally sorted out

asm patch for b_mdee (redsol) when shifting, basically some kind of 'jb b_zwget, loc_enable' so it gets selective fuel cut at shifts but unfortunately without noticeable sound

this knowledge costs me 2 days so enjoy it for free  Smiley


probably i want to emulate KFVPDKDS / KFPLGU stuff but im not sure for now // any hints?
« Last Edit: September 10, 2024, 04:00:22 PM by fknbrkn » Logged
Yur1i123rus
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


« Reply #23 on: November 14, 2024, 01:47:30 PM »

Hello friends. I am a newbie and I need help, in 1 month I have learned a lot by reading this forum, thanks guys. I'm trying to master this patch from Pjr. Now I can’t figure out how to track in ida which functions pw0, pw1, pw2 use. Even in the ori file from the example, I assume that I correctly found the function for controlling the damper for changing the length of the collector. But I don't see any reference to pw1 there. Nudge in the right direction
Logged
fknbrkn
Hero Member
*****

Karma: +185/-23
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #24 on: November 14, 2024, 10:40:59 PM »

Hello friends. I am a newbie and I need help, in 1 month I have learned a lot by reading this forum, thanks guys. I'm trying to master this patch from Pjr. Now I can’t figure out how to track in ida which functions pw0, pw1, pw2 use. Even in the ori file from the example, I assume that I correctly found the function for controlling the damper for changing the length of the collector. But I don't see any reference to pw1 there. Nudge in the right direction


just check cross-reference of PWs
thats simple code like

mov r5, pp1
mov r4, tev_w (didnt remember param names)
shl r4, #8
mulu r4, r5
mov pw1, MDH

there also part with port initializations where pws gets zero value
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.03 seconds with 16 queries. (Pretty URLs adds 0s, 0q)