Title: B_kuppl & B_br same address!!!!!!!! Post by: leeimad on November 24, 2018, 12:44:02 PM Hello everyone
in my A2L file for bosch ME9 i found brake pedal pressed (B_br) andclutch pedal pressed (B_kuppl) in the same address!!!! i cant believe it how it works???? i compare to other A2l I find every one has a specific address ------------------------------------------------------ /begin MEASUREMENT B_br "Brakes switch info: brakes operated" UWORD B_TRUE 1 100 0.00 1.00000000000 BIT_MASK 0x2 FORMAT "%13.11" ECU_ADDRESS 0x804228 /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA /begin IF_DATA ASAP1B_ADDRESS KP_BLOB 0x804228 /end IF_DATA /begin IF_DATA ETK KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA ASAP1B_KWP2000 KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA M6 KP_BLOB 0x804228 0 0x2 /end IF_DATA /end MEASUREMENT ---------------------------------------------------------- /begin MEASUREMENT B_kuppl "Condition clutch pedal pressed" UWORD B_TRUE 1 100 0.00 1.00000000000 BIT_MASK 0x40 FORMAT "%13.11" ECU_ADDRESS 0x804228 /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA /begin IF_DATA ASAP1B_ADDRESS KP_BLOB 0x804228 /end IF_DATA /begin IF_DATA ETK KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA ASAP1B_KWP2000 KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA M6 KP_BLOB 0x804228 0 0x2 /end IF_DATA /end MEASUREMENT Title: ME9-----B_kuppl B_br in the same address!!!! Post by: leeimad on November 24, 2018, 12:45:27 PM Hello everyone
in my A2L file for bosch ME9 i found brake pedal pressed (B_br) andclutch pedal pressed (B_kuppl) in the same address!!!! i cant believe it how it works???? i compare to other A2l I find every one has a specific address ------------------------------------------------------ /begin MEASUREMENT B_br "Brakes switch info: brakes operated" UWORD B_TRUE 1 100 0.00 1.00000000000 BIT_MASK 0x2 FORMAT "%13.11" ECU_ADDRESS 0x804228 /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA /begin IF_DATA ASAP1B_ADDRESS KP_BLOB 0x804228 /end IF_DATA /begin IF_DATA ETK KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA ASAP1B_KWP2000 KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA M6 KP_BLOB 0x804228 0 0x2 /end IF_DATA /end MEASUREMENT ---------------------------------------------------------- /begin MEASUREMENT B_kuppl "Condition clutch pedal pressed" UWORD B_TRUE 1 100 0.00 1.00000000000 BIT_MASK 0x40 FORMAT "%13.11" ECU_ADDRESS 0x804228 /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA /begin IF_DATA ASAP1B_ADDRESS KP_BLOB 0x804228 /end IF_DATA /begin IF_DATA ETK KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA ASAP1B_KWP2000 KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA /begin IF_DATA M6 KP_BLOB 0x804228 0 0x2 /end IF_DATA /end MEASUREMENT Title: Re: ME9-----B_kuppl B_br in the same address!!!! Post by: john9357 on November 24, 2018, 03:37:12 PM Bit mask 0b00000010 vs bit mask 0b01000000
Title: Re: B_kuppl & B_br same address!!!!!!!! Post by: SB_GLI on November 24, 2018, 05:49:40 PM Bitmask. 0x2 will get the value from the second bit, 0x40 gets the value from the seventh bit.
Title: Re: B_kuppl & B_br same address!!!!!!!! Post by: leeimad on November 25, 2018, 01:42:08 PM Bitmask. 0x2 will get the value from the second bit, 0x40 gets the value from the seventh bit. thank youbut in the functions call how can I distinguish wich variable is called?? Title: Re: B_kuppl & B_br same address!!!!!!!! Post by: daniel2345 on November 25, 2018, 01:54:54 PM What do you think is the next instruction for?
Do you know the difference between bit and byte? Get an instruction manual and read about the rotate instruction and the conditional branch also. |