13.16. Pressure Sensor Driver - PSnsrDrvr
Id |
PSnsrDrvr |
Title |
Pressure Sensor Driver |
System |
Thermal |
Document Type |
Application Software Component Specification Preview |
13.16.1. Overview
The Pressure Sensor Driver component reads the analog voltage from a pressure sensor, converts it to a pressure value, and provides diagnostic functions. It filters the sensor signal and detects sensor faults.
13.16.2. Functions
Title |
Description |
|
|---|---|---|
1 |
Initialize Pressure Sensor |
Initializes the pressure sensor pin as an analog input during startup. |
2 |
Read Sensor Voltage |
Reads the analog voltage from the pressure sensor pin. |
3 |
Convert Voltage to Pressure |
Converts the sensor voltage to a pressure value using a lookup table. |
4 |
Filter Pressure Signal |
Filters the pressure signal using a discrete time integrator with saturation limits. Resets the filter if a fault is detected. |
5 |
Diagnose Sensor Faults |
Detects overpressure, underpressure, overvoltage, undervoltage, and hardware faults based on the sensor voltage. Sets DTCs if faults are detected. |
6 |
Provide Pressure Output |
Provides the filtered pressure value and a validity flag as component outputs. |
13.16.3. Ports
Id |
Direction |
Data Type |
Dimensions |
Unit |
|
|---|---|---|---|---|---|
1 |
PSnsrPinCodU |
Incoming |
single |
[1] |
inherit |
2 |
PSnsrPinCodActMod |
Incoming |
Enum: InpoutPinMod |
[1] |
inherit |
3 |
PSnsrPinCodSt |
Incoming |
Enum: InpoutPinSt |
[1] |
inherit |
4 |
PMeas |
Outgoing |
single |
[-1] |
inherit |
5 |
PMeasOk |
Outgoing |
boolean |
[-1] |
inherit |
6 |
Diagc |
Outgoing |
Bus: PsnsrdrvDiagc |
[-1] |
inherit |
7 |
PSnsrPinCodMod |
Outgoing |
Enum: InpoutPinMod |
[1] |
inherit |
8 |
PSnsrPinCodPuMod |
Outgoing |
Enum: InpoutPinPuMod |
[1] |
inherit |
13.16.4. Parameters
Id |
Data Type |
Dimensions |
Range |
Unit |
Description |
|
|---|---|---|---|---|---|---|
1 |
PsnsrdrvAvlPSnsrUMax |
single |
[1,1] |
Min: 0, Max: 30 |
V |
Maximal available pressure sensor voltage |
2 |
PsnsrdrvAvlPSnsrUMin |
single |
[1,1] |
Min: 0, Max: 30 |
V |
Minimal available pressure sensor voltage |
3 |
PsnsrdrvPFilTiCon |
single |
[1,1] |
Min: 0, Max: 10 |
sec |
Pressure transduser filter time constant |
4 |
PsnsrdrvPSnsrChartcAxis |
single |
[1,2] |
Min: -5000, Max: 5000 |
kPa |
Low-pressure transduser curve |
5 |
PsnsrdrvPSnsrChartcUAxis |
single |
[1,2] |
Min: 0, Max: 5 |
V |
Pressure transduser curve axis |
6 |
PsnsrdrvPVldValMax |
single |
[1,1] |
Min: -5000, Max: 5000 |
kPa |
Maximal valid low-pressure value |
7 |
PsnsrdrvPVldValMin |
single |
[1,1] |
Min: -5000, Max: 5000 |
kPa |
Minimal valid pressure value |
8 |
PsnsrdrvSnsrFltChkDi |
boolean |
[1,1] |
Min: 0, Max: 1 |
Ignore sensor reading fault |