rusefi / alphax-2chan

24 pin / 2 channel ECU
2 stars 4 forks source link

CLT test with software pull-up #17

Closed rusefillc closed 2 years ago

rusefillc commented 2 years ago

2chan board bench test - only miniUSB connector for power & calibration

actual behavior: "raw CLT" reports same 0.8v regardless of "boardUseTempPullUp"

image

rusefillc commented 2 years ago

Same 0v on R30 MCU side regardless of tempPull Boolean property

rusefillc commented 2 years ago

so yesterday tempPull was not actually initialized by firmware

just fixed initialization

2022-01-16_11_13_45_897: EngineState: pin PD2: a-crank-n
2022-01-16_11_13_45_898: EngineState: pin PD3: a-tach
2022-01-16_11_13_45_899: EngineState: pin PD5: Primary UART RX
2022-01-16_11_13_45_899: EngineState: pin PD6: Primary UART TX
2022-01-16_11_13_45_900: EngineState: pin PD10: Injector 4
2022-01-16_11_13_45_900: EngineState: pin PD11: Injector 3
2022-01-16_11_13_45_901: EngineState: pin PD12: Fan Relay
2022-01-16_11_13_45_901: EngineState: pin PD13: tachOut
2022-01-16_11_13_45_902: EngineState: pin PD14: VR PWM
2022-01-16_11_13_45_903: EngineState: pin PE5: Coil 3
2022-01-16_11_13_45_903: EngineState: pin PE7: led: comm status
2022-01-16_11_13_45_903: EngineState: pin PE8: led: warning status
2022-01-16_11_13_45_904: EngineState: pin PE13: clutch down switch
2022-01-16_11_13_45_905: EngineState: pin PG0: led: CRITICAL status
2022-01-16_11_13_45_906: EngineState: pin PG1: led: running status
2022-01-16_11_13_45_906: EngineState: pin PG2: Fuel pump Relay
2022-01-16_11_13_45_907: EngineState: pin PG4: checkEnginePin
2022-01-16_11_13_45_908: EngineState: pin PG5: a-temp
2022-01-16_11_13_45_908: EngineState: pin PG7: Injector 1
2022-01-16_11_13_45_909: EngineState: pin PG8: Injector 2
readpin PG5
2022-01-16_11_14_25_907: EngineState: pin PG5 value 1
analoginfo
2022-01-16_11_15_05_318: EngineState: CLT ADC13 ADC_SLOW PC2 adc=2.45/input=4.91v/divider=2.00
2022-01-16_11_15_05_318: EngineState: IAT ADC14 ADC_SLOW PC3 adc=2.45/input=4.90v/divider=2.00

now disabling pull disable boardUseTempPullUp

readpin PG5
2022-01-16_11_16_15_933: EngineState: pin PG5 value 0

but still same CLT :(

2022-01-16_11_16_42_377: EngineState: CLT ADC13 ADC_SLOW PC2 adc=2.47/input=4.95v/divider=2.00
2022-01-16_11_16_42_377: EngineState: IAT ADC14 ADC_SLOW PC3 adc=2.47/input=4.95v/divider=2.00
rusefillc commented 2 years ago

image

rusefillc commented 2 years ago

With 5.6K resistor we have success, runtime response to flag!

image