- Sun Feb 05, 2023 2:11 pm
#61085
case 55:
#if defined(CORE_TEENSY)
//Pin mappings for the DropBear
injectorOutputControl = OUTPUT_CONTROL_MC33810;
ignitionOutputControl = OUTPUT_CONTROL_MC33810;
//The injector pins below are not used directly as the control is via SPI through the MC33810s, however the pin numbers are set to be the SPI pins (SCLK, MOSI, MISO and CS) so that nothing else will set them as inputs
pinInjector1 = 13; //SCLK
pinInjector2 = 11; //MOSI
pinInjector3 = 12; //MISO
pinInjector4 = 10; //CS for MC33810 1
pinInjector5 = 9; //CS for MC33810 2
pinTrigger = 19; //The CAS pin
pinTrigger2 = 18; //The Cam Sensor pin
pinFlex = A16; // Flex sensor
pinMAP = A1; //MAP sensor pin
pinBaro = A0; //Baro sensor pin
pinBat = A14; //Battery reference voltage pin
pinSpareTemp1 = A17; //spare Analog input 1
pinLaunch = A15; //Can be overwritten below
pinTachOut = 5; //Tacho output pin
pinIdle1 = 27; //Single wire idle control
pinIdle2 = 29; //2 wire idle control. Shared with Spare 1 output
pinFuelPump = 8; //Fuel pump output
pinVVT_1 = 28; //Default VVT output
pinStepperDir = 32; //Direction pin for DRV8825 driver
pinStepperStep = 31; //Step pin for DRV8825 driver
pinStepperEnable = 30; //Enable pin for DRV8825 driver
pinBoost = 24; //Boost control
pinSpareLOut1 = 29; //low current output spare1
pinSpareLOut2 = 26; //low current output spare2
pinSpareLOut3 = 28; //low current output spare3
pinSpareLOut4 = 29; //low current output spare4
pinFan = 25; //Pin for the fan output
pinResetControl = 46; //Reset control output PLACEHOLDER value for now
#if defined(CORE_TEENSY35)
pinTPS = A22; //TPS input pin
pinIAT = A19; //IAT sensor pin
pinCLT = A20; //CLS sensor pin
pinO2 = A21; //O2 Sensor pin
pinO2_2 = A18; //Spare 2
#endif
#if defined(CORE_TEENSY41)
pinTPS = A17; //TPS input pin
pinIAT = A14; //IAT sensor pin
pinCLT = A15; //CLS sensor pin
pinO2 = A16; //O2 Sensor pin
pinBat = A3; //Battery reference voltage pin. Needs Alpha4+
pinLaunch = 34; //Can be overwritten below
#endif
pinMC33810_1_CS = 10;
pinMC33810_2_CS = 9;
//Pin alignment to the MC33810 outputs
MC33810_BIT_INJ1 = 3;
MC33810_BIT_INJ2 = 1;
MC33810_BIT_INJ3 = 0;
MC33810_BIT_INJ4 = 2;
MC33810_BIT_IGN1 = 4;
MC33810_BIT_IGN2 = 5;
MC33810_BIT_IGN3 = 6;
MC33810_BIT_IGN4 = 7;
MC33810_BIT_INJ5 = 3;
MC33810_BIT_INJ6 = 1;
MC33810_BIT_INJ7 = 0;
MC33810_BIT_INJ8 = 2;
MC33810_BIT_IGN5 = 4;
MC33810_BIT_IGN6 = 5;
MC33810_BIT_IGN7 = 6;
MC33810_BIT_IGN8 = 7;
//CS pin number is now set in a compile flag.
// #ifdef USE_SPI_EEPROM
// pinSPIFlash_CS = 6;
// #endif
#endif
break;
Mere Mortal
