From 6f6b21472cda6c9bbf4231cca3e3d90bccfcd8fe Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 26 Dec 2023 19:54:27 -0500 Subject: [PATCH] only:mc33810maxDwellTimer --- firmware/hw_layer/drivers/gpio/mc33810.cpp | 6 +++++- firmware/integration/rusefi_config.txt | 1 + firmware/tunerstudio/rusefi.input | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/firmware/hw_layer/drivers/gpio/mc33810.cpp b/firmware/hw_layer/drivers/gpio/mc33810.cpp index 511c1aa270..ad83a2bfad 100644 --- a/firmware/hw_layer/drivers/gpio/mc33810.cpp +++ b/firmware/hw_layer/drivers/gpio/mc33810.cpp @@ -368,7 +368,11 @@ int Mc33810::chip_init() { uint16_t spark_settings = //(3 << 9) | /* max dwell is 16 mS */ - (2 << 9) | /* max dwell is 8 mS */ + //(2 << 9) | /* max dwell is 8 mS */ + // Table 11. Maximum Dwell Timer + // 4: 32ms + // 5,6 and 7 all represent 64ms + (engineConfiguration->mc33810maxDwellTimer << 9) | BIT(8) | /* enable max dwell control */ (3 << 2) | /* Open Secondary OSFLT = 100 uS, default */ (1 << 0) | /* End Spark THreshold: VPWR +5.5V, default */ diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 0002301e7f..a6cc6cf6f4 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -1199,6 +1199,7 @@ int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\ bit can1ListenMode;ListenMode is about acknowledging CAN traffic on the protocol level. Different from canWriteEnabled bit can2ListenMode uint8_t camDecoder2jzPosition + uint8_t mc33810maxDwellTimer uint16_t autoscale benchTestOnTime;Duration of each test pulse;"ms", 0.01, 0, 0, 500, 2 uint8_t lambdaProtectionRestoreTps;;"%", 1, 0, 0, 100, 0 diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 37b7260bcc..a5aa1bd523 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -4617,6 +4617,7 @@ dialog = tcuControls, "Transmission Settings" field = dacOutputPins2, dacOutputPins2 field = "Read RPM matching VSS profile", canInputBCM field = useSpiImu, useSpiImu + field = mc33810maxDwellTimer, mc33810maxDwellTimer dialog = harleyAcr, "Harley Automatic Compression Release" field = "Pin", acrPin