PWMCdd_Integration_Manual

Contents

1 Dependencies 2

1.1 SWCs 2

1.2 Configuration Files to be provided by Integration Project (Project Specific) 2

1.3 Functions provided to Integration Project 2

2 Configuration 3

2.1 Build Time Config 3

2.2 Generator Config 3

3 Integration 4

3.1 Global Data 4

3.2 Component Conflicts 4

3.2.1 Project Specific 4

3.3 Include Path 4

4 Runnable Scheduling 5

5 Memory Mapping 5

5.1 Mapping 5

5.2 Usage 5

6 Revision Control Log 6

Dependencies

SWCs

ModuleRequired Feature
CDD_DataGlobal variables for DC Phs Comp (for using in Nhet/)

Configuration Files to be provided by Integration Project (Project Specific)

PWMCdd_Cfg.h ( Note : Make sure Macro assignments match correct global variable included in PWMCdd_Cfg.h . File below is a template. Necessary definition changes needs to be made to template before integration).

Functions provided to Integration Project

CDDPorts_ClearPhsReasSum(uint16 DataAccessBfr_Cnt_T_u16)

CDD_ApplyPWMMtrElecMechPol(sint8 MtrElecMechPol_Cnt_s8)

Configuration

Build Time Config

ConstantNotesSWC

Generator Config

ConstantNotesSWC

Integration

Global Data

The following global symbols must be defined in CDD_Data.c and .h (populated by PwmCdd):

  • uint16: CDD_DCPhsComp_Cnt_G_u16[3]

  • uint16: CDD_PWMPeriod_Cnt_G_u16

Component Conflicts

Project Specific

  • NHET/EPWM version corresponding PWMCdd component spilt and using global variables CDD_DCPhsComp_Cnt_G_u16 and CDD_PWMPeriod_Cnt_G_u16 should be used.

Include Path

The “include” directory of this SWC needs to be included in the integration project include search path.

Runnable Scheduling

This section specifies the required runnable scheduling.

RunnableScheduling RequirementsTrigger
PwmCdd_InitPlace in EcuStartup. Execute along with NHET initialization.Init
PwmCdd_Per1Must be placed in the motor control ISR, before Nhet (or whichever function populates the global variables used byNhet).Cyclic (ISR) *

*Note: don’t forget include header file from PWMCDD where PwmCdd_Per1 is called

Memory Mapping

Mapping

Memory SectionContentsNotes
PWMCDD_START_SEC_VAR_CLEARED_16Variable Definitions

* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.

Usage

Table 1: ARM Cortex R4 Memory Usage

FeatureRAMROM
Full driver

Revision Control Log

Rev #Change DescriptionDateAuthor
1Initial version14-Feb-13Selva
Last modified October 12, 2025: Initial commit (0347a62)