GateDrv1Ctrl_MDD

Module Design Document

For

Gate Drive 1 Control

VERSION: 1

DATE: 13-July-2016

Prepared By:

Software Group,

Nexteer Automotive,

Saginaw, MI, USA

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

Revision History

VersionDescriptionAuthorDate
1Initial versionRijvi Ahmed13-July-2016

Table of Contents

1 Abbrevations And Acronyms 5

2 References 6

3 GATEDRV1CTRL & High-Level Description 7

4 Design details of software module 8

4.1 Graphical representation of GATEDRV1CTRL 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.2 Initialization Functions 11

7.2.1 Per: GateDrv1CtrlInit1 11

7.3 PERIODIC FUNCTIONS 11

7.3.1 Per: GateDrv1CtrlPer1 11

7.3.1.1 Design Rationale 11

7.3.1.2 Processing of Function 11

7.3.2 Per: GateDrv1CtrlPer2 11

7.3.2.1 Design Rationale 11

7.3.2.2 Processing of Function 11

7.4 Interrupt Functions 11

7.5 Serial Communication Functions 11

7.6 Local Function/Macro Definitions 11

7.6.1 Local Function #1 11

7.6.1.1 Description 11

7.6.2 Local Function #2 12

7.6.2.1 Description 12

7.6.3 Local Function #3 12

7.6.3.1 Description 12

7.6.4 Local Function #4 12

7.6.4.1 Description 12

7.6.5 Local Function #5 12

7.6.5.1 Description 12

7.6.6 Local Function #6 12

7.6.6.1 Description 12

7.6.7 Local Function #7 13

7.6.7.1 Description 13

7.6.8 Local Function #8 13

7.6.8.1 Description 13

7.6.9 Local Function #9 13

7.6.9.1 Description 13

7.7 GLObAL Function/Macro Definitions 13

8 Known Limitations With Design 14

9 UNIT TEST CONSIDERATION 15

Abbrevations And Acronyms

AbbreviationDescription
DFDDesign functional diagram
MDDModule design Document

References

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

Sr. No.TitleVersion
1MDD GuidelinesProcess 04.02.01
2Software Naming ConventionsProcess 04.02.01
3Software Coding StandardsProcess 04.02.01
4FDD – ES312A GateDrv1CtrlSee synergy sub project version

GATEDRV1CTRL & High-Level Description

This module configures the GateDrive1 connected with SPI channel CSIH0. It also does the diagnostics for GateDrive1 using SPI interface.

Design details of software module

Graphical representation of GATEDRV1CTRL

Variable Data Dictionary

User defined typedef definition/declaration

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

None

Variable definition for enumerated types

Enum NameElement NameValue
None

Constant Data Dictionary

Program(fixed) Constants

Embedded Constants

Local

Constant NameResolutionUnitsValue

Global

Constant Name
Refer to the FDD

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
Refer to the design

Software Module Implementation

Sub-Module Functions

None

Initialization Functions

Per: GateDrv1CtrlInit1

PERIODIC FUNCTIONS

Per: GateDrv1CtrlPer1

Design Rationale

None

Processing of Function

See design model for details.

Per: GateDrv1CtrlPer2

Design Rationale

None

Processing of Function

See design model for details.

Interrupt Functions

None

Serial Communication Functions

None

Local Function/Macro Definitions

Local Function #1

Function NameSpiAsyncTxTypeMinMax
Arguments PassedChannel_Cnt_T_u08Spi_ChannelType0Full
TxData_Cnt_T_u16Spi_DataType0Full
Sequence_Cnt_T_u08Spi_SequenceType0Full
Return ValueNone

Description

(void) Spi_WriteIB( Channel_Cnt_T_u08, &TxData_Cnt_T_u16 );

(void) Call_Spi_AsyncTransmit( Sequence_Cnt_T_u08 );

Local Function #2

Function NameOffStVrfyStTypeMinMax
Arguments PassedNone
Return ValueNone

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/OffState Verification Stateblock in design model.

Local Function #3

Function NameOffStVrfyDataTypeMinMax
Arguments PassedNone
Return ValueFlt_Cnt_T_loglBooleanFALSETRUE

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/OffState Verification State/OffSt Verification Chk and Transition to Config State/OffStChk Incomplete/Offstate Verification /OffState Verification Check block in design model.

*It is optimized in the implementation to reduce the high static path count.

Local Function #4

Function NameCfgStTypeMinMax
Arguments PassedNone
Return ValueNone

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/Configuration State block in design model.

Local Function #5

Function NameReadBackRegsTypeMinMax
Arguments PassedNone
Return ValueNone

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/Configuration State/Read back Registers block in design model.

Local Function #6

Function NameOperFltMonrStTypeMinMax
Arguments PassedNone
Return ValueNone

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/Operate Fault Monitor State block in design model.

Local Function #7

Function NameGateDrvDetermineOnStSngFETFltTypeMinMax
Arguments PassedNone
Return ValueGenGateDrvFlt_Cnt_T_loglBooleanFALSETRUE

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/Operate Fault Monitor State/Determine Faults/Status Register indicates Fault/Determine OnState Single FET Fault block in design model.

Local Function #8

Function NameGateDrvDetermineVltgFltTypeMinMax
Arguments PassedNone
Return ValueGenGateDrvFlt_Cnt_T_loglBooleanFALSETRUE

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/Operate Fault Monitor State/Determine Faults/Status Register indicates Fault/Determine VREG/Bootstrap Voltage Fault block in design model.

Local Function #9

Function NameGateDrvDetermineGenericFltTypeMinMax
Arguments PassedNone
Return ValueGenGateDrvFlt_Cnt_T_loglBooleanFALSETRUE

Description

See GateDrv1Ctrl/GateDrv1CtrlPer2/Gate Drive Enable/Gate Drive State/Operate Fault Monitor State/Determine Faults/Status Register indicates Fault/Determine Generic Gate Drive Fault block in design model.

GLObAL Function/Macro Definitions

None

Known Limitations With Design

“Operate Fault Monitor State” block need to be revisited and optimized.

UNIT TEST CONSIDERATION

None

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