Title: enabling additional input pins? Post by: elRey on August 13, 2014, 12:30:21 PM Hello all,
Is it possible to enable additional, unused 0-5v analog inputs? I know any filtering would require custom code, possible copied from an existing function. But how would I enable the input pin and access the input value? Thanks, Rey Title: Re: enabling additional input pins? Post by: dream3R on August 31, 2014, 08:14:54 AM If you find the analogue pin code in your ecu it should be obvious.
iirc, you request the value from the AD converter register then assign it to a ram cell, then another routine can deal with it from there. Title: Re: enabling additional input pins? Post by: elRey on August 31, 2014, 10:13:10 AM Code: INIT_IN_OUTPUTS_1: Code: INIT_IN_OUTPUTS_2: Code: INIT_OUTPUTS: Code: INPUTS_1: Code: E_SFR:0002 ; =============== S U B R O U T I N E ======================================= Title: Re: enabling additional input pins? Post by: elRey on August 31, 2014, 10:15:15 AM my notes on pin setup (032HS file):
Quote ODP2 C340 11000011 01000000 P2 C7BF 11000111 10111111 DP2 3CBF 0111100 10111111 CCM0 0 CCM1 0 CCM2 400 0000 0100 0000 0000 CCM3 A900 1010 1001 0000 0000 CCM4 B00C 1011 0000 0000 1100 CCM5 BB 0000 0000 1011 1011 CCM6 0 CCM7 0 CC0IC 37 001 10111 IE CC2IC 36 001 10110 IE CC3IC 35 001 10101 IE CC10IC 20 001 00000 IE CC14IC 7D 011 11101 IR/IE CC16IC 17 000 10111 CC19IC 28 001 01000 IE CC20IC 29 001 01001 IE CC21IC 22 001 00010 IE CC22IC 0 000 00000 CC23IC 70 011 10000 IR/IE CC26IC 1C 000 11100 CC28IC 71 011 10001 IR/IE CC29IC 72 011 10010 IR/IE CC30IC 73 011 10011 IR/IE - PIN - DIR - MODE - CC0 P2.0 OUT 000 CC1 P2.1 OUT 000 CC2 P2.2 OUT 000 CC3 P2.3 OUT 000 CC4 P2.4 OUT 000 CC5 P2.5 OUT 000 CC6 P2.6 IN 000 CC7 P2.7 OUT 000 CC8 P2.8 IN 000 CC9 P2.9 IN 000 CC10 P2.10 OUT 100 CC11 P2.11 OUT 000 CC12 P2.12 OUT 000 CC13 P2.13 OUT 000 CC14 P2.14 OUT 001 CC15 P2.15 IN 010 CC16 P8.0 OUT 100 CC17 P8.1 IN 000 CC18 P8.2 IN 000 CC19 P8.3 IN 011 CC20 P8.4 IN 011 CC21 P8.5 IN 011 CC22 P8.6 IN 000 CC23 P8.7 OUT 000 CC24 P1H.4 000 CC25 P1H.5 000 CC26 P1H.6 000 CC27 P1H.7 000 CC28 P7.4 OUT 000 CC29 P7.5 OUT 000 CC30 P7.6 OUT 000 CC31 P7.7 OUT 000 ODP3 8B1F 10001011 00011111 P3 2FC1 00101111 11000001 DP3 35E0 00110101 11100000 P3.0 IN P3.1 IN P3.2 IN P3.3 IN P3.4 IN P3.5 OUT P3.6 OUT P3.7 OUT P3.8 OUT P3.9 IN P3.10 OUT P3.11 IN P3.12 OUT P3.13 OUT P3.14 IN P3.15 IN P4 E0 11100000 DP4 CF 11001111 P4.0 OUT P4.1 OUT P4.2 OUT P4.3 OUT P4.4 IN P4.5 IN CAN-RX P4.6 OUT CAN-TX P4.7 OUT ODP6 80 10000000 P6 80 10000000 DP6 7F 01111111 P6.0 OUT P6.1 OUT P6.2 OUT P6.3 OUT P6.4 OUT P6.5 OUT P6.6 OUT P6.7 IN P7 74 01110100 DP7 FF 11111111 PWMCON0 BF 0000 0000 1011 1111 PWMCON1 F 0000 0000 0000 1111 PWMIC 5F 0101 1111 P7.0 OUT PW0 AGR P7.1 OUT PW1 N75 P7.2 OUT PW2 TB P7.3 OUT PW3 EVAP P7.4 OUT CC28 P7.5 OUT CC29 P7.6 OUT CC30 P7.7 OUT CC31 P8 F8 11111000 DP8 81 10000001 P8.0 OUT CC16 P8.1 IN CC17 P8.2 IN CC18 P8.3 IN CC19 P8.4 IN CC20 P8.5 IN CC21 P8.6 IN CC22 P8.7 OUT CC23 Title: Re: enabling additional input pins? Post by: terminator on September 08, 2014, 07:31:19 AM Have you successfully enabled additional pin?
Title: Re: enabling additional input pins? Post by: elRey on September 08, 2014, 08:19:22 AM I have. Not so much as enabling as identifying pin and memory location.
ecu pin 17,19, 100 are unused A/D inputs. on the AWP 1.8T ecu. Trying to identify other non-A/D input out puts. Title: Re: enabling additional input pins? Post by: terminator on September 08, 2014, 12:25:23 PM Thats already good progress. And what for do you want to enable additional pin?
I think its useful for adding switch for maps selection. Title: Re: enabling additional input pins? Post by: elRey on September 08, 2014, 12:37:28 PM I want a second MAP sensor input for a compound turbo setup.
Also want to add an OEM EGT sensor to monitor EGTs. Then there's outputs for inline fuel pump I want on only when needed and to repurpose kombi valve solenoid for a boost actuated exhaust cutout valve. |