BattRtnCurr_MDD

Module Design Document

For

BattRtnCurr

October 11, 2017

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

Software Group,

Nexteer Automotive,

Saginaw, MI, USA
Change History

DescriptionAuthorVersionDate
Initial VersionKrzysztof Byrski121-July-2017
Updated as per Design version 1.1.0Krzysztof Byrski211-October-2017


Table of Contents

1 Introduction 4

1.1 Purpose 4

1.2 Scope 4

2 BattRtnCurr & High-Level Description 5

3 Design details of software module 6

3.1 Graphical representation of BattRtnCurr 6

3.2 Data Flow Diagram 6

3.2.1 Component level DFD 6

3.2.2 Function level DFD 6

4 Constant Data Dictionary 7

4.1 Program (fixed) Constants 7

4.1.1 Embedded Constants 7

5 Software Component Implementation 8

5.1 Sub-Module Functions 8

5.1.1 Init: BattRtnCurrInit1 8

5.1.2 Per: BattRtnCurrPer1 8

5.1.3 Per: BattRtnCurrPer2 8

5.2 Server Runables 9

5.3 Interrupt Functions 9

5.4 Module Internal (Local) Functions 9

5.5 GLOBAL Function/Macro Definitions 9

6 Known Limitations with Design 10

7 UNIT TEST CONSIDERATION 11

Appendix A Abbreviations and Acronyms 12

Appendix B Glossary 13

Appendix C References 14

Introduction

Purpose

Module Design Document for ES251A_BattRtnCurr

Scope

The following definitions are used throughout this document:

  • Shall: indicates a mandatory requirement without exception in compliance.

  • Should: indicates a mandatory requirement; exceptions allowed only with documented justification.

  • May: indicates an optional action.

BattRtnCurr & High-Level Description

Refer FDD.

Design details of software module

This function handles measurement of battery return current. It receives ADC samples representing current in volts and converts them to ampere units.

Additionally, it performs basic output signal limitation. Module design allows execution from motor control loop or 2ms periodic. Therefore two sets of input and outputs signals are available where ones prefixed with "MotCtrl" shall be used inside motor control loop.

Graphical representation of BattRtnCurr

Data Flow Diagram

Refer FDD

Component level DFD

None

Function level DFD

None

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Constant NameResolutionUnitsValue
BATTRTNCURRPASSD_CNT_U081Cnt0
BATTRTNCURROVERMAX_CNT_U081Cnt1
BATTRTNCURRUNDERMIN_CNT_U081Cnt2
BATTRTNCURRFAILDADC_CNT_U081Cnt4
BATTRTNCURRESTIMDIFFFLT_CNT_U081Cnt8

Software Component Implementation

Sub-Module Functions

The sub-module functions are grouped based on similar functionality that needs to be executed in a given “State” of the system (refer States and Modes). For a given module, the MDD will identify the type and number of sub-modules required. The sub-module types are described below.

Init: Init1

Design Rationale

Refer FDD

Module Outputs

Refer FDD

Per: Per1

Design Rationale

Refer FDD

Store Module Inputs to Local copies

Refer FDD

(Processing of function)………

Refer FDD

Store Local copy of outputs into Module Outputs

Refer FDD

Per: BattRtnCurrPer2

Design Rationale

Refer FDD

Store Module Inputs to Local copies

Refer FDD

(Processing of function)………

Refer FDD

Store Local copy of outputs into Module Outputs

Refer FDD

Server Runables

None

Interrupt Functions

None

Module Internal (Local) Functions

None

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

None

UNIT TEST CONSIDERATION

None

Abbreviations and Acronyms

Abbreviation or AcronymDescription
--

Glossary

Note: Terms and definitions from the source “Nexteer Automotive” take precedence over all other definitions of the same term. Terms and definitions from the source “Nexteer Automotive” are formulated from multiple sources, including the following:

  • ISO 9000

  • ISO/IEC 12207

  • ISO/IEC 15504

  • Automotive SPICE® Process Reference Model (PRM)

  • Automotive SPICE® Process Assessment Model (PAM)

  • ISO/IEC 15288

  • ISO 26262

  • IEEE Standards

  • SWEBOK

  • PMBOK

  • Existing Nexteer Automotive documentation

TermDefinitionSource
MDDModule Design Document
DFDData Flow Diagram

References

Ref. #TitleVersion
1AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf)v1.3.0 R4.0 Rev 2
2MDD GuidelineEA4 01.00.01
3Software Naming Conventions.doc01.01.00
4Software Design and Coding Standards.doc2.1
5ES251A_BattRtnCurr_DesignSee Synergy Sub Project Version
Last modified October 12, 2025: Initial commit (af72ad2)