dont understand (12-bit table)

Discuss anything TunerPro related.

Moderators: Mangus, robertisaar, dex

Post Reply
User avatar
chenpp
Posts: 5
Joined: Tue May 20, 2008 5:37 pm
Location: Siberia, Irkutsk

dont understand (12-bit table)

Post by chenpp »

i`m have a pk-2 honda prelude 1989.
look at fuel tables.
Image
lok at it in bit format
Image
its a 12 bit fuel table. higher 4 bits used as a flags.
how i`m can make a conversion table for it???
I`m think i`m must make and #1f for higher bit.
but i`m need save this flags too.
help me with conversion formula please.
User avatar
chenpp
Posts: 5
Joined: Tue May 20, 2008 5:37 pm
Location: Siberia, Irkutsk

Post by chenpp »

without flags it`s looks like this.
Image
beautiful
User avatar
Mangus
TunerPro Author
Posts: 1927
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

In the conversion, you need to mask off the upper 4 bits:

x & 4095

Note, however, that this will completely ignore the flags. In fact, This also means that the flags will not be saved (they will be stripped off). There's no general solution to this. I'd need to heavily modify TunerPro to handle this specific case.

Nissan has something similar (where the upper bit is used to indicate knock enabled cells), so I need to solve this problem anyway.
***************************************
TunerPro Author
1989 Trans Am
User avatar
chenpp
Posts: 5
Joined: Tue May 20, 2008 5:37 pm
Location: Siberia, Irkutsk

Post by chenpp »

Thank you for fast answer, Mark.

I am glad that you are aware of the problem. I hope soon, it will be solved.
Post Reply