Pages: [1]
Author Topic: lambda on a 16bit LoHi, 1 = 7FFF or 1 = 8000 ?  (Read 4437 times)
elRey
Hero Member
*****

Karma: +32/-1
Offline Offline

Posts: 565


« on: January 22, 2013, 08:37:40 AM »

For lambda on a 16bit LoHi scale, does 1 = 7FFF or 1 = 8000 ?

I know on a 8bit scale 1 = 80 which leads me to believe 1 = 8000 on 16bit.

Thanks,
Rey
« Last Edit: January 22, 2013, 08:40:43 AM by elRey » Logged
phila_dot
Hero Member
*****

Karma: +172/-11
Offline Offline

Posts: 1709


« Reply #1 on: January 22, 2013, 08:56:44 AM »

1000h

7FFFh is max postive signed word and 8000h is max negative signed word.
« Last Edit: January 22, 2013, 09:48:53 AM by phila_dot » Logged
slowrider
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 18


« Reply #2 on: January 22, 2013, 10:11:02 AM »

0000h LoHi => 0
0100h LoHi => 1
0200h LoHi => 2
1000h LoHi => 16
« Last Edit: January 22, 2013, 10:21:38 AM by slowrider » Logged
nyet
Administrator
Hero Member
*****

Karma: +604/-167
Offline Offline

Posts: 12235


WWW
« Reply #3 on: January 22, 2013, 11:45:48 AM »

btw just a nitpick LoHi is immaterial in this discussion if you are expressing hex terms in short words and not bytes.

i.e.

0x1234 = 0x12 0x34 HiLo
0x1234 = 0x34 0x12 LoHi

Both are 0x1234 Smiley

When expressing values, they're always expressed big endian
Logged

ME7.1 tuning guide (READ FIRST)
ECUx Plot
ME7Sum checksum checker/corrrector for ME7.x

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your experience.
nyet
Administrator
Hero Member
*****

Karma: +604/-167
Offline Offline

Posts: 12235


WWW
« Reply #4 on: January 22, 2013, 11:48:14 AM »

0000h LoHi => 0
0100h LoHi => 1
0200h LoHi => 2
1000h LoHi => 16

More properly:

01h 00h LoHi = 1 = 0001h
02h 00h LoHi = 2 = 0002h
10h 00h LoHi = 16 = 0010h
Logged

ME7.1 tuning guide (READ FIRST)
ECUx Plot
ME7Sum checksum checker/corrrector for ME7.x

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your experience.
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.026 seconds with 16 queries. (Pretty URLs adds 0.001s, 0q)