EcuTMeas_MDD
Module Design Document
For ECU Temperature Measurement
VERSION: 2.0
DATE: 21-MAR-2016
Prepared By:
Krishna Anne,
Nexteer Automotive,
Saginaw, MI, USA
Revision History
Sl. No. | Description | Author | Version | Date |
1 | Initial Version | SB | 1.0 | 23-Mar-2015 |
2 | ADC Hooks are added as input | KK | 2.0 | 21-Mar-2016 |
Table of Contents
3 Ecutmeas & High-Level Description 7
4 Design details of software module 8
4.1 Graphical representation of Ecutmeas 8
5.1.2 Module specific Lookup Tables Constants 9
6 Software Module Implementation 10
6.1.1 Initialization Functions 10
6.1.1.1 INIT: EcuTMeasINIT1 10
6.1.1.3 Store Module Inputs to Local copies 10
6.1.1.4 (Processing of function)……… 10
6.1.1.5 Store Local copy of outputs into Module Outputs 10
6.1.2.3 Store Module Inputs to Local copies 10
6.1.2.4 (Processing of function)……… 10
6.1.2.5 Store Local copy of outputs into Module Outputs 10
6.3 Serial Communication Functions 11
6.4 Local Function/Macro Definitions 11
6.5 GLObAL Function/Macro Definitions 11
7 Known Limitations With Design 12
Abbrevations And Acronyms
Abbreviation | Description |
DFD | Design functional diagram |
MDD | Module design Document |
References
This section lists the title & version of all the documents that are referred for development of this document
Sr. No. | Title | Version |
1 | MDD Guidelines | Process 3.06.00 |
2 | Software Naming Conventions | Process 3.06.00 |
3 | Coding standards | Process 3.06.00 |
4 | FDD - ES210A Ecu Temperature Measurement | (See project group sub-version in synergy) |
Ecutmeas & High-Level Description
Measures and diagnoses thermistor on ECU.
Design details of software module
Graphical representation of Ecutmeas
Data Flow Diagram
Module level DFD
N/A
Sub-Module level DFD
N/A
COMPONENT FLOW DIAGRAM
N/A
Variable definition for enumerated types
Constant Data Dictionary
Constant Name | Resolution | Units | Value |
Refer FDD |
Module specific Lookup Tables Constants
Constant Name | Resolution | Value | Software Segment |
NA |
Software Module Implementation
Sub-Module Functions
None
Initialization Functions
INIT: EcuTMeasINIT1
Design Rationale
Per FDD author intent is to use standard Nexteer FilLp functions
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
PERIODIC FUNCTIONS
(Note: For multiple periodic functions, insert new headers at the “Header 2” level – subset of “7.1.2 Periodic Functions” and follow the same sub-section design shown below). If none required, place the text “None”)
Per: EcuTMeasPer1
Design Rationale
Per FDD author intent is to use standard Nexteer FilLp functions
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
Interrupt Functions
None
Serial Communication Functions
None
Local Function/Macro Definitions
Local Function #1
None
GLObAL Function/Macro Definitions
GLObAL Function #1
N/A
TRANSIENT FUNCTIONS
None
Known Limitations With Design
None
UNIT TEST CONSIDERATION
The Per Instance Memory in .m file EcuTMeasFilStVarPrev given as float32 type, represents the State variable of the filter FilSt, element of the struct FilLpRec1
Range of Rte_Pim_EcuTMeasFilStVarPrev.FilSt is the range given in the .m file
the equation to calculate filter gain is:
FilGain = 1 - exp(-2PI * FrqPole * TiStep)
FrqPole is Rte_Prm_EcuTMeasFilTau_Val
TiStep is 100ms
Range of Rte_Pim_EcuTMeasFilStVarPrev.FilGain is calculated using the range of Rte_Prm_EcuTMeasFilTau_Val
The equation to calculate the filter output is:
Outp = ((Inp - FilSt) * FilGain) + FilSt
Appendix
None