MAT Sensor - Funny Stuff!
I think the average person is much better off staying at the high level of the tuner software. Getting down to the "bare metal" is a LOT of work.
This code was disassembled and commented back in the mid '90s. The author didn't take credit for his work, but my guess is that it was Ward Spoonemore who did the original work (from this comment: "REV 8/1/95, WS"). I think he posted it originally on his web site, which is long gone. Some of the comment style is different, so I think somebody else also contributed, possibly Bruce Plecan. These guys are both gone so there is no way to find out for sure.
The original disassembly and commenting must have been an enormous undertaking. I have spent probably 9 months on this and I had a HUGE head start. There are still areas I don't understand and many of the status bits are still mysteries. I have also seen that some of the later "hacs" were based on the $32 code and the errors were propagated along with the good parts. Here is a good example of that:
Original comments:
LC00E: FDB 3277 ; 66Hz, VATS Ck Value, Fail if VATS L.T. LC010: FDB 1638 ; 33hZ, VATS Ck Value, Fail if VATS G.T.
LC00E: FDB 3277 ; VATS Check Value, Fail if VATS lower than 20 Hz LC010: FDB 1638 ; VATS Check Value, Fail if VATS higher than 40 Hz
In case you're wondering ;-), here is where the numbers come from:
Counter frequency is 65536 Hz. Inverting gives a period of 15.258 us. Multiply 15.258 us * 3277 = .0500 s. Inverting that gives 20.0 Hz. Another way to get there is to divide 65536 by 3277, but that's not the way the code does it.
http://home.earthlink.net/~cliff_har...5/BUA/BUA.html









