PWMCdd_Integration_Manual
Contents
1.2 Configuration Files to be provided by Integration Project (Project Specific) 2
1.3 Functions provided to Integration Project 2
Dependencies
SWCs
| Module | Required Feature |
|---|---|
| CDD_Data | Global 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
| Constant | Notes | SWC |
|---|---|---|
Generator Config
| Constant | Notes | SWC |
|---|---|---|
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.
| Runnable | Scheduling Requirements | Trigger |
|---|---|---|
| PwmCdd_Init | Place in EcuStartup. Execute along with NHET initialization. | Init |
| PwmCdd_Per1 | Must 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 Section | Contents | Notes |
|---|---|---|
| PWMCDD_START_SEC_VAR_CLEARED_16 | Variable Definitions |
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
| Feature | RAM | ROM |
|---|---|---|
| Full driver |
Revision Control Log
| Rev # | Change Description | Date | Author |
|---|---|---|---|
| 1 | Initial version | 14-Feb-13 | Selva |