BattVltg_MDD

Module Design Document

ForBattery or Switched Voltage Measurement

and Arbitration

VERSION: 3.0

DATE: 03-JUN-2016

Prepared By:

Nick Saxton

Location: The official version of this document is stored in the Nexteer Configuration Management System.

Revision History

Sl. No.DescriptionAuthorVersionDate
1Initial VersionSB1.013-Mar-2015
2Fixed the typo in Per1 function nameSB2.009-Apr-2015
3Updated for FDD v2.0.0NS3.003-Jun-2016

Table of Contents

1 Abbrevations And Acronyms 5

2 References 6

3 BattVltg & High-Level Description 7

4 Design details of software module 8

4.1 Graphical representation of BattVltg 8

4.2 Data Flow Diagram 8

4.2.1 Module level DFD 8

4.2.2 Sub-Module level DFD 8

4.3 COMPONENT FLOW DIAGRAM 8

5 Variable Data Dictionary 9

5.1 User defined typedef definition/declaration 9

5.2 Variable definition for enumerated types 9

6 Constant Data Dictionary 10

6.1 Program(fixed) Constants 10

6.1.1 Embedded Constants 10

6.1.1.1 Local 10

6.1.1.2 Global 10

6.1.2 Module specific Lookup Tables Constants 10

7 Software Module Implementation 11

7.1 Sub-Module Functions 11

7.1.1 Initialization Functions 11

7.1.2 PERIODIC FUNCTIONS 11

7.1.2.1 Per: BattVltgPer1 11

7.1.2.2 Design Rationale 11

7.1.2.3 Store Module Inputs to Local copies 11

7.1.2.4 (Processing of function)……… 11

7.1.2.5 Store Local copy of outputs into Module Outputs 11

7.2 Interrupt Functions 11

7.3 Serial Communication Functions 12

7.4 Local Function/Macro Definitions 12

7.4.1 Local Function #1 12

7.4.1.1 Description 12

7.5 GLObAL Function/Macro Definitions 12

7.5.1 GLObAL Function #1 12

7.5.1.1 Description 12

7.6 TRANSIENT FUNCTIONS 12

8 Known Limitations With Design 13

9 UNIT TEST CONSIDERATION 14

10 Appendix 15

Abbrevations And Acronyms

AbbreviationDescription
DFDDesign functional diagram
MDDModule design Document
<ADD more to the table if applicable>

References

This section lists the title & version of all the documents that are referred for development of this document

Sr. No.TitleVersion
<1><MDD Guidelines>Process 3.06.00
<2><Software Naming Conventions>Process 3.06.00
<3><Coding standards>Process 3.06.00
<4><FDD - ES250A Battery or Switched Voltage Measurement and Arbitration>See Synergy subproject version
<Add if more available>

BattVltg & High-Level Description

This function scales the Battery and Switched Battery voltages used in the EA4.0 architecture. The module determines which of the three voltage inputs (battery or switched battery 1 or switched battery 2) should be used by the software application.

The function provides some generic logic to decide between the switched battery voltage 1 and switched battery voltage 2 to effective utilize the switched voltage in case one of the switched voltages fails.

Design details of software module

Graphical representation of BattVltg

Data Flow Diagram

Module level DFD

N/A

Sub-Module level DFD

N/A

COMPONENT FLOW DIAGRAM

N/A

Variable Data Dictionary

User defined typedef definition/declaration

<This section documents any user types uniquely used for the module.>

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

N/A

Variable definition for enumerated types

Enum NameElement NameValue
N/A

Constant Data Dictionary

Program(fixed) Constants

Embedded Constants

< All program specific constants will be defined in detail >

Local

Constant NameResolutionUnitsValue
BATTVLTGCORRLNSTSSWD2FLT_CNT_T_U081CNT3
BATTVLTGCORRLNSTSSWD1FLT_CNT_T_U081CNT5
BATTVLTGCORRLNSTSBATTVLTGFLT_CNT_T_U081CNT6
BATTVLTGCORRLNSTSNOFLT_CNT_T_U081CNT7

Global

<This section lists the global constants used by the module. For details on global constants, refer to the Data Dictionary for the application>

Constant Name
N/A

Module specific Lookup Tables Constants

<(This is for lookup tables (arrays) with fixed values, same name as other tables)>

Constant NameResolutionValueSoftware Segment
<Refer Constant name qualified in [2]><Refer MDD guidelines [1]><Refer MDD guidelines [1]><Refer MDD guidelines [1]>

Software Module Implementation

Sub-Module Functions

None

Initialization Functions

None

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: BattVltgPer1

Design Rationale

None

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

<If these are numerous and defined in a separate source file then reference the source file only.>

Local Function #1

Function Name(Exact name used)TypeMinMax
Arguments PassedNone<Refer MDD guidelines[1]><Refer MDD guidelines[1]><Refer MDD guidelines[1]>
Return ValueN/A

Description

None

GLObAL Function/Macro Definitions

GLObAL Function #1

Function Name(Exact name used)TypeMinMax
Arguments PassedNone<Refer MDD guidelines[1]><Refer MDD guidelines[1]><Refer MDD guidelines[1]>
Return ValueN/A

Description

N/A

TRANSIENT FUNCTIONS

None

Known Limitations With Design

  1. None

UNIT TEST CONSIDERATION

None

Appendix

None

Last modified October 12, 2025: Initial commit (1fadfc4)