I have just begun to dig into the GTE code. It will be a while before I can answer your question. AS far as THW goes, its treated exactly the same as THA, there is a 10 bit ADC that converts the sensor voltage to a digital number. It checks if input range is valid (76 mv < THW < 4.73V). If out of range defaults to 80C.
If in range, it then does a piecewise curve fit and interpolation to linearize the sensor output and averages to the previous reading. That sensor value is then used all over the place to adjust calculations.
Interestingly, during cranking the THW sensor is read very rapidly (THM->AFM->THM->TPS) over an over. Once the engine starts, it reads THW only once for every approx 127 TPS and AFM conversions.
We surmise that during starting the coolant temperature can vary greatly as the sitting engine develops hot and cold areas that rapidly change once the coolant starts to flow again, so rapid readings are needed to get an accurate temp reading.
Anyway, I'll post up more when I know more!
If in range, it then does a piecewise curve fit and interpolation to linearize the sensor output and averages to the previous reading. That sensor value is then used all over the place to adjust calculations.
Interestingly, during cranking the THW sensor is read very rapidly (THM->AFM->THM->TPS) over an over. Once the engine starts, it reads THW only once for every approx 127 TPS and AFM conversions.
We surmise that during starting the coolant temperature can vary greatly as the sitting engine develops hot and cold areas that rapidly change once the coolant starts to flow again, so rapid readings are needed to get an accurate temp reading.
Anyway, I'll post up more when I know more!