From 624d66d50ec1b9e5d9230a962f2875949842452d Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 16 May 2023 14:45:00 -0700 Subject: [PATCH] add 6ch logic --- pt2001/project/rusefi/MicrocodeCh1/ch1.psc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pt2001/project/rusefi/MicrocodeCh1/ch1.psc b/pt2001/project/rusefi/MicrocodeCh1/ch1.psc index ef067bc..4b087a9 100644 --- a/pt2001/project/rusefi/MicrocodeCh1/ch1.psc +++ b/pt2001/project/rusefi/MicrocodeCh1/ch1.psc @@ -13,6 +13,7 @@ init0: stgn gain12.6 sssc; * Set the gain of the opamp * ### Idle phase- the uPC loops here until start signal is present ### idle0: joslr inj1_start start1; * Perform an actuation on inj1 if start 1 (only) is active joslr inj2_start start2; * Perform an actuation on inj2 if start 2 (only) is active + joslr inj5_start start5; * Perform an actuation on inj5 if start 5 (only) is active jmpf jr1; * If more than 1 start active at the same time(or none), no actuation * ### Shortcuts definition per the injector to be actuated ### @@ -22,6 +23,9 @@ inj1_start: dfsct hs1 hs2 ls1; * Set the 3 shortcuts: VBAT, inj2_start: dfsct hs1 hs2 ls2; * Set the 3 shortcuts: VBAT, VBOOST, LS jmpr boost0; * Jump to launch phase +inj5_start: dfsct hs1 hs2 ls5; * Set the 3 shortcuts: VBAT, VBOOST, LS + jmpr boost0; * Jump to launch phase + * ### Launch phase enable boost ### * Row1 - !start: injection ended * Row2 - Overcurrent, jump to error case (threshold is reached early) @@ -106,6 +110,7 @@ init1: stgn gain12.6 sssc; * Set the gain of the opamp * ### Idle phase- the uPC loops here until start signal is present ### idle1: joslr inj3_start start3; * Perform an actuation on inj1 if start 1 (only) is active joslr inj4_start start4; * Perform an actuation on inj2 if start 2 (only) is active + joslr inj6_start start6; * Perform an actuation on inj6 if start 6 (only) is active jmpf jr1; * If more than 1 start active at the same time(or none), no actuation * ### Shortcuts definition per the injector to be actuated ### @@ -114,6 +119,9 @@ inj3_start: dfsct hs3 hs4 ls3; * Set the 3 shortcuts: VBAT, inj4_start: dfsct hs3 hs4 ls4; * Set the 3 shortcuts: VBAT, VBOOST, LS jmpr boost1; * Jump to launch phase + +inj6_start: dfsct hs3 hs4 ls6; * Set the 3 shortcuts: VBAT, VBOOST, LS + jmpr boost1; * Jump to launch phase * ### Launch phase enable boost ### * Row1 - !start: injection ended