13.15. Negative Temperature Coefficient Driver - NtcDrvr

Id

NtcDrvr

Title

Negative Temperature Coefficient Driver

System

Thermal

Document Type

Application Software Component Specification Preview

13.15.1. Overview

The Negative Temperature Coefficient Driver (NtcDrvr) is a software component that interfaces with a negative temperature coefficient (NTC) thermistor to measure temperature. It reads the analog voltage from the NTC sensor, converts it to a resistance value, and then calculates the corresponding temperature using a lookup table. The component also includes fault detection logic to identify sensor faults such as open circuit, short circuit, out of range values, etc. The measured temperature value is filtered and the component outputs both the raw and filtered temperature values along with a status flag indicating the validity of the measurement.

13.15.2. Functions

Title

Description

1

Temperature Measurement

Reads analog voltage from NTC sensor, converts to resistance, and calculates temperature using lookup table. Outputs raw and filtered temperature values.

2

Fault Detection

Monitors sensor readings and pin diagnostics to detect faults such as open circuit, short circuit, out of range values, etc. Sets diagnostic trouble codes (DTCs) if faults are detected.

13.15.3. Ports

Id

Direction

Data Type

Dimensions

Unit

1

TSnsrPinCodU

Incoming

single

[1]

inherit

2

TSnsrPinCodCur

Incoming

single

[1]

inherit

3

TSnsrPinCodActMod

Incoming

Enum: InpoutPinMod

[1]

inherit

4

TSnsrPinCodSt

Incoming

Enum: InpoutPinSt

[1]

inherit

5

TMeas

Outgoing

single

[-1]

inherit

6

TMeasOk

Outgoing

boolean

[-1]

inherit

7

Diagc

Outgoing

Bus: NtcdrvrDiagc

[-1]

inherit

8

TSnsrPinCodMod

Outgoing

Enum: InpoutPinMod

[1]

inherit

9

TSnsrPinCodPuMod

Outgoing

Enum: InpoutPinPuMod

[1]

inherit

13.15.4. Parameters

Id

Data Type

Dimensions

Range

Unit

Description

1

NtcdrvrEcuInpR

single

[1,1]

Min: 0, Max: 100000

Ohm

AIN input resistance

2

NtcdrvrSnsrChartcRAxis

single

[1,19]

Min: 0, Max: 500000

Ohm

Resistance axis

3

NtcdrvrSnsrChartcTAxis

single

[1,19]

Min: -100, Max: 200

degC

Resistance to tempereture table

4

NtcdrvrSnsrFltChkDi

boolean

[1,1]

Min: 0, Max: 1

Ignore sensor reading fault

5

NtcdrvrSnsrRMax

single

[1,1]

Min: 100, Max: 500000

Ohm

Maximal available value of sensor resistance

6

NtcdrvrSnsrRMin

single

[1,1]

Min: 50, Max: 50000

Ohm

Minimal available value of sensor resistance

7

NtcdrvrTFilTiCon

single

[1,1]

Min: 0.01, Max: 10000

s

Lowpass filter time contstant for the temperature

8

NtcdrvrVldTMax

single

[1,1]

Min: -273.15, Max: 10000

degC

Lower valid temperature threshold

9

NtcdrvrVldTMin

single

[1,1]

Min: -273.15, Max: 10000

degC

Upper valid temperature threshold