2019-11-01 19:56:58 -07:00
|
|
|
/*
|
|
|
|
* @file bmw_m73.cpp
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* https://github.com/rusefi/rusefi_documentation/wiki/BMW_e38_750
|
|
|
|
*
|
|
|
|
* https://rusefi.com/wiki/index.php?title=Hardware:OEM_connectors#134_pin
|
|
|
|
*
|
2019-11-07 17:47:12 -08:00
|
|
|
* 1/2 plugs black
|
|
|
|
* 2/2 plugs grey
|
|
|
|
*
|
2019-11-01 19:56:58 -07:00
|
|
|
*
|
2019-11-09 15:40:06 -08:00
|
|
|
* ********* | | OEM | rusEfi | function
|
|
|
|
*
|
2019-11-08 17:53:51 -08:00
|
|
|
* Plug #1 9 pin
|
|
|
|
* ECU pin 4: GND BRN/ORG
|
|
|
|
* ECU pin 6: GND BRN
|
2019-11-09 15:40:06 -08:00
|
|
|
* ECU pin 7: IN RED +12v hot at all times
|
|
|
|
* ECU pin 8: IN RED/BLU +12v from ECU relay
|
2019-11-08 17:53:51 -08:00
|
|
|
*
|
|
|
|
* Plug #2 24 pin
|
2019-11-09 15:40:06 -08:00
|
|
|
* ECU pin 3: CAN xxx/xxx CAN low
|
|
|
|
* ECU pin 4: CAN xxx/xxx CAN high
|
|
|
|
* ECU pin 23: OUT BRN/BLK BLK ECU relay control, low-side
|
2019-11-01 19:56:58 -07:00
|
|
|
*
|
2019-11-08 17:53:51 -08:00
|
|
|
* Plug #3 52 pin
|
2019-11-09 15:40:06 -08:00
|
|
|
* ECU pin 2: OUT injector #4
|
|
|
|
* ECU pin 6: GND ECU
|
|
|
|
* ECU pin 15: OUT injector #2
|
|
|
|
* ECU pin 20: IN WHT hall effect camshaft sensor signal
|
|
|
|
* ECU pin 21: GND BRN BLK CLT sensor
|
|
|
|
* ECU pin 22: IN RED/BRN GRN CLT sensor
|
|
|
|
* ECU pin 27: OUT injector #6
|
|
|
|
* ECU pin 28: OUT injector #5
|
2019-11-15 20:49:28 -08:00
|
|
|
* ECU pin 32: IN ORG VR positive crankshaft sensor - only 2x 5k per channel, R111 not installed, W1002 not installed
|
2019-11-09 15:40:06 -08:00
|
|
|
* ECU pin 40: OUT BRN/BLK injector #3
|
|
|
|
* ECU pin 41: OUT BRN/WHT injector #1
|
|
|
|
* ECU pin 45: GND crankshaft shield
|
2019-11-15 20:49:28 -08:00
|
|
|
* ECU pin 46: IN BLK BLU VR negative crankshaft sensor
|
2019-11-01 19:56:58 -07:00
|
|
|
*
|
|
|
|
*
|
2019-11-08 17:53:51 -08:00
|
|
|
* Plug #4 40 pin
|
2019-11-09 15:40:06 -08:00
|
|
|
* ECU pin 6: IN start signal from ignition key
|
|
|
|
* ECU pin 17: OUT BLK engine speed output for gauge cluster
|
|
|
|
* ECU pin 26: IN GRN/BLK RED +12 hot in start & run
|
|
|
|
* ECU pin 40: OUT YEL/BRN BRN starter enable
|
2019-11-01 19:56:58 -07:00
|
|
|
*
|
|
|
|
*
|
2019-11-14 20:58:04 -08:00
|
|
|
* set engine_type 40
|
|
|
|
*
|
|
|
|
*
|
2019-11-01 19:56:58 -07:00
|
|
|
* @date Nov 1, 2019
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "engine_template.h"
|
|
|
|
#include "custom_engine.h"
|
|
|
|
|
|
|
|
EXTERN_CONFIG;
|
|
|
|
|
2019-11-17 06:03:20 -08:00
|
|
|
// BMW_M73
|
2019-11-01 19:56:58 -07:00
|
|
|
void setEngineBMW_M73(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
|
|
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
2019-11-03 18:27:37 -08:00
|
|
|
|
|
|
|
engineConfiguration->specs.cylindersCount = 12;
|
|
|
|
engineConfiguration->specs.displacement = 5.4;
|
|
|
|
engineConfiguration->specs.firingOrder = FO_1_7_5_11_3_9_6_12_2_8_4_10;
|
|
|
|
|
2019-11-14 20:58:04 -08:00
|
|
|
boardConfiguration->triggerInputPins[0] = GPIOA_5;
|
|
|
|
boardConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->camInputs[0] = GPIOC_6;
|
|
|
|
engineConfiguration->vvtMode = VVT_FIRST_HALF;
|
|
|
|
|
|
|
|
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
|
|
|
engineConfiguration->trigger.type = TT_60_2_VW;
|
|
|
|
|
2019-11-16 13:00:50 -08:00
|
|
|
CONFIGB(idle).solenoidPin = GPIO_UNASSIGNED;
|
|
|
|
CONFIGB(mainRelayPin) = GPIO_UNASSIGNED;
|
|
|
|
CONFIGB(fanPin) = GPIO_UNASSIGNED;
|
|
|
|
CONFIGB(fuelPumpPin) = GPIO_UNASSIGNED;
|
|
|
|
|
|
|
|
|
|
|
|
engineConfiguration->ignitionMode = IM_TWO_COILS;
|
2019-11-17 06:32:12 -08:00
|
|
|
boardConfiguration->ignitionPins[ID2INDEX(1)] = GPIOE_14; // Frankenso high side - pin 1G
|
|
|
|
boardConfiguration->ignitionPins[ID2INDEX(2)] = GPIO_UNASSIGNED;
|
|
|
|
boardConfiguration->ignitionPins[ID2INDEX(3)] = GPIO_UNASSIGNED;
|
|
|
|
boardConfiguration->ignitionPins[ID2INDEX(4)] = GPIO_UNASSIGNED;
|
|
|
|
boardConfiguration->ignitionPins[ID2INDEX(7)] = GPIOC_7; // Frankenso high side - pin 1H
|
2019-11-16 13:00:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
boardConfiguration->injectionPins[0] = GPIOB_8;
|
|
|
|
boardConfiguration->injectionPins[1] = GPIOB_7;
|
|
|
|
boardConfiguration->injectionPins[2] = GPIOB_9;
|
|
|
|
boardConfiguration->injectionPins[3] = GPIOD_5;
|
|
|
|
boardConfiguration->injectionPins[4] = GPIOD_3;
|
|
|
|
boardConfiguration->injectionPins[5] = GPIOE_2;
|
|
|
|
|
|
|
|
boardConfiguration->injectionPins[6] = GPIOE_3;
|
|
|
|
boardConfiguration->injectionPins[7] = GPIOE_4;
|
|
|
|
boardConfiguration->injectionPins[8] = GPIOE_5;
|
|
|
|
boardConfiguration->injectionPins[9] = GPIOE_6;
|
|
|
|
boardConfiguration->injectionPins[10] = GPIOC_13;
|
|
|
|
boardConfiguration->injectionPins[11] = GPIOD_7;
|
|
|
|
|
2019-11-14 20:58:04 -08:00
|
|
|
|
2019-11-03 18:27:37 -08:00
|
|
|
// 13641435991 injector
|
|
|
|
engineConfiguration->injector.flow = 180; // cc/min, who knows if this number is real - no good source of info
|
2019-11-01 19:56:58 -07:00
|
|
|
}
|