I finished the wiring harness diagram for the megasquirt swap, this setup is using GMDIS with an external trigger:
Megasquirt = signal = TGP engine harness
20 tan/yellow = intake temp = C22 LT GRN
21 purple = coolant temp = C16 YEL
22 blue = tps signal = C15 DK BLUE
23 lght blue = 02 = A16
24 green = CPS = D13 PPL/WHT
25 gray = iac1 = A1 LT BLU/WHT
26 gray/red stripe = 5v ref = C12 GRY
27 white/blue strp = iac2 = A7 LT BLU/BLK
28 red/white stipe = 12v = D17/C7 ORN
29 green/red str = iac3 = A8 LT GRN/WHT
31 orange/black = iac4 = A2 LT GRN/BLK
32 gray/yellow = bank1 inj\ = D9 LT BLU (2 4 6)
33 gray/yellow = bank1 inj/
34 pink/black = bank2 inj\ = D3 LT GRN (1 3 5)
35 pink/black = bank2 inj/
36 yellow/black = ICM = C9 TAN/BLK
37 orange/white = fuelpump = D7 GRN/WHT
9 SENOR GOUND = C6 BLK/WHT
10 = C5 BLK
11 = C10 BLK
12 = D4 BLK/WHT
I found this documentation to controll the TCC with Megasquirt2 using the fast idle output to trip the solenoid.
For example, if you wanted to use the FIdle output as a TCC control, and the accel LED as an indicator that the TCC is active, you would set:
* FIdle (PM2):
o Port PM2, enabled
o variable = map < threshold = 75, hysteresis = 10,
o AND
o variable = coolant > threshold = 160, hysteresis = 10,
o Power-on value = 0
o Trigger value = 0
* Accel LED (PM4):
o Port PM4, enabled
o variable = map < threshold = 75, hysteresis = 10,
o AND
o variable = coolant > threshold = 160, hysteresis = 10,
o Power-on value = 0
o Trigger value = 1
Example: Torque Converter Clutch Control
Suppose you want to engage OD (overdrive) over 50 kPa MAP, and engage the LU (torque converter lock-up) clutch at 75 kPa MAP, provided temp is over 140 and RPM is over 2000. For a torque converter clutch control (TCC) using FIdle with 3 conditions (rpm > 1500, CLT > 160, map < 75), set:
PA0 - Knk Enable:
* rpm > 1500
* coolant > 160
and
PM2 - FIdle:
* map < 75
* port0 > 63
Then use the FIdle output to drive the TCC relay (if you have a relay board, you are all set). Not that you also need a 3/4 gear indicator switch and a brake switch in the external circuit:
EDIT: megamanual won't let me copy the image of the TTC Control Circuit so here's the link to the webpage, the image is about 3/4 the way down the page.
http://www.megamanual.com/ms2/spare.htmIs the brake switch already present on the harness or is that controlled by the TGP ecm?
If so, it's as simple as:
30 green/orange = TCC = B7 TAN/BLK