1 - Adc2_MDD

Module – ADC2

High-Level Description

The ADC2 module shall control sampling and conversion of voltages from the hardware layer into digital signals.

Figures

Component Diagram


Variable Data Dictionary

For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.

Module InputsModule Outputs
NoneNone

Module Internal Variables

This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
None

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)

See Adc_MDD.doc for Adc subsystem types

Constant Data Dictionary

Calibration Constants

This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.

Constant Name
None

Program(fixed) Constants

Embedded Constants

All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.

Local

Constant NameResolutionUnitsValue
D_GROUPEV_CNT_U81Counts0
D_GROUP1_CNT_U81Counts1
D_GROUP2_CNT_U81Counts2
D_NTCPARMBIT1_CNT_U81Counts2
D_ADC2EVTBUFSZ_CNT_U081CountsGenerated in Adc_Cfg.h
D_ADC2G1BUFSZ_CNT_U081CountsGenerated in Adc_Cfg.h
D_ADC2G2BUFSZ_CNT_U081CountsGenerated in Adc_Cfg.h
D_ADC2EVSRC_CNT_U321CountsGenerated in Adc_Cfg.h
D_ADC2G1SRC_CNT_U321CountsGenerated in Adc_Cfg.h
D_ADC2G2SRC_CNT_U321CountsGenerated in Adc_Cfg.h
D_ADC2NUMEVTCH_CNT_U081CountsGenerated in Adc_Cfg.h
D_ADC2EVTCH_CNT_U321CountsGenerated in Adc_Cfg.h
D_ADC2NUMG1CH_CNT_U081CountsGenerated in Adc_Cfg.h
D_ADC2G1CH_CNT_U321CountsGenerated in Adc_Cfg.h
D_ADC2NUMG2CH_CNT_U081CountsGenerated in Adc_Cfg.h
D_ADC2G2CH_CNT_U321CountsGenerated in Adc_Cfg.h
D_ADC2RSLTBASEADR_CNT_U321CountsGenerated in Adc_Cfg.h

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
None

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
T_Adc2GroupConfigData_Cnt_Str[3]Adc_GroupConfigDataType

{

D_ADC2NUMEVTCH_CNT_U08,

D_ADC2EVTCH_CNT_U32,

&(((uint32*)D_ADC2RSLTBASEADR_CNT_U32)[0]),

},

{

D_ADC2NUMG1CH_CNT_U08,

D_ADC2G1CH_CNT_U32,

&(((uint32*)D_ADC2RSLTBASEADR_CNT_U32)[D_ADC2EVTBUFSZ_CNT_U08]),

},

{

D_ADC2NUMG2CH_CNT_U08,

D_ADC2G2CH_CNT_U32,

&(((uint32*)D_ADC2RSLTBASEADR_CNT_U32)[D_ADC2EVTBUFSZ_CNT_U08 + D_ADC2G1BUFSZ_CNT_U08]),

}

CONST_32


Functions/Macros used by the Sub-Modules

Library Functions / Macros

The library and functions / Macros that are called by the various sub modules are identified below,

  1. None

Data Hiding Functions

Global Functions/Macros Defined by this Module

ADC2 Init

Function NameAdc2_init1TypeMinMaxUTP Tol.
Arguments PassedConfigPtrAdc_ConfigType*N/AN/A
Return ValueN/A

This function is used to initialize each of the ADC2 Groups (Event, Group1, and Group2).

Initialize Module Internal Variables

None

Register Configuration


Start Initial Conversions

Start Group Conversion

Function NameAdc2_StartGroupConversionTypeMinMaxUTP Tol.
Arguments Passedgroupuint802
Return ValueN/A

This function starts a software triggered conversion of all channels of the requested Adc channel group.

Start Conversions

Enable Group Notification

Function NameAdc2_EnableGroupNotificationTypeMinMaxUTP Tol.
Arguments Passedgroupuint8015
Return ValueN/A

This inline function reads and returns the individual channel conversion result.

Enable Notification Conditions

Local Functions/Macros Used by this MDD only

Read Channel Conversions

Function NameAdc2_ReadConversionTypeMinMaxUTP Tol.
Arguments PassedConvIduint16015
Return Valueconversion resultuint16040950

This inline function reads and returns the individual channel conversion result.

Read Group

Software Module Implementation

Runtime Environment (RTE) Initial Values

None

Initialization Functions

None

Periodic Functions

None

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Transition Functions

None


Execution Requirements

Execution Sequence of the Module

Adc2_Init should be called after SystemTime_Init due to the use of the uS System Time.

Adc2_Init should be called prior to MtrCtrl ISR being enabled.

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called
Adc2_InitOnce (at initialization)STARTUP

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)
N/A


Memory Map Definition Requirements

Sub Modules (Functions)

This table identifies the software segments for functions identified in this module.

Name of Sub ModuleSoftware Segment
Adc2_InitADC2_START_SEC_CODE
Adc2_StartGroupConversionADC2_START_SEC_CODE
Adc2_EnableGroupNotificationADC2_START_SEC_CODE
Adc2_ReadConversioninline

Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment
None


Known Issues / Limitations With Design

  1. INLINE functions defined in “GlobalMacro.h” are not unit tested


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial version based on FDD 33C rev 00605Nov12LN
22.0Design updates to meet FDD and simplify configuration24APR13Selva
33.0Fixed typo in flowchart22MAY13LWW

2 - Adc_Common_MDD

Module -- Adc Core

High-Level Description

The Adc Common module provides “stateless” application context independent functions which provide functionality required by both the Adc and Adc2 modules. In order to operate in any given application, the function design must not write to any fixed static variable location, unless it is in Globally shared memory. All static variable writes outside of Globally shared memory must be performed via pointer access where the caller provides the pointer reference to allowed writable memory in the application context from with the caller is executing.

The motivation for creating core functions is to reduce duplication and testing of common code design.

Figures

Component Diagram

None


Variable Data Dictionary

For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.

Module InputsModule Outputs
NoneNone

Module Internal Variables

This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
None

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)

None

Constant Data Dictionary

Calibration Constants

This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.

Constant Name
None

Program(fixed) Constants

Embedded Constants

All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.

Local

Constant NameResolutionUnitsValue
D_NUMOFADCCALREADS_CNT_U81Counts8

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
D_FALSE_CNT_LGC
D_TRUE_CNT_LGC

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
None


Functions/Macros used by the Sub-Modules

Library Functions / Macros

The library and functions / Macros that are called by the various sub modules are identified below,

  1. None

Data Hiding Functions

  1. <None>

Global Functions/Macros Defined by this Module

Offset Calibration

Function NameADCOffsetCalibrationTypeMinMaxUTP Tol.
Arguments PassedadcREGadcctrlregs_t*FULLFULL
Return ValueStatus_Cnt_T_u08uint8FULLFULL

Perform the ADC Calibration and Storing of offset.

Calibration Offset

Local Functions/Macros Used by this MDD only

Software Module Implementation

Runtime Environment (RTE) Initial Values

None

Initialization Functions

None

Periodic Functions

None

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Transition Functions

None


Execution Requirements

Execution Sequence of the Module

No integration scheduling required. The only service offered by this module has a fixed scheduling within the Adc subsystem.

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called
None

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)
N/A


Memory Map Definition Requirements

Sub Modules (Functions)

This table identifies the software segments for functions identified in this module.

Name of Sub ModuleSoftware Segment
ADCOffsetCalibrationADC_START_SEC_CODE

Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment


Known Issues / Limitations With Design

  1. INLINE functions defined in “GlobalMacro.h” are not unit tested


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial version24Apr13Selva

3 - Adc_MDD

Module -- ADC

High-Level Description

The ADC module shall control sampling and conversion of voltages from the hardware layer into digital signals. The ADC Register definition has been captured from the TMS570LS31x/21x 16/32-Bit RISC Flash Microcontroller Technical Reference Manual (SPNU499 – September 2011).

Figures

Component Diagram


Variable Data Dictionary

For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.

Module InputsModule Outputs
NoneNone

Module Internal Variables

This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
None

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)

Adc_GroupTypeN/Auint802
Adc_GroupConfigDataType

uint8 NumOfChannels,

uint32 ChannelSelect,

uint32* ResultBuf

structFULLFULL
Adc_StatusType

ADC_IDLE,

ADC_BUSY,

ADC_COMPLETED,

ADC_STREAM_COMPLETED

enum03
Adc_ValueGroupTypeN/Auint1604095
Adc_ValueGroupTypeN/Auint16*FULLFULL

Constant Data Dictionary

Calibration Constants

This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.

Constant Name
k_VbattOVTransIntConfig_Cnt_u32

Program(fixed) Constants

Embedded Constants

All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.

Local

Constant NameResolutionUnitsValue
D_NUMOFGROUPS_CNT_U81Counts3
D_GROUPEV_CNT_U81Counts0
D_GROUP1_CNT_U81Counts1
D_GROUP2_CNT_U81Counts2
D_NUMOFADCCALREADS_CNT_U81Counts8
D_NTCPARMBIT0_CNT_U81Counts1
D_NTCPARMBIT1_CNT_U81Counts2
D_NTCPARMBIT2_CNT_U81Counts4
D_ADC1RSLTBASEADR_CNT_U321Counts0xFF3E0000U
D_ADC1NUMRSLTBUF_CNT_U081Counts64
D_ADC1CURRENTMODE_ULS_LGC1BOOLEANGenerated in Adc_Cfg.h.
D_ADC1MAGINTMASK1_CNT_U161Counts0/0*
D_ADC1MAGINTASET_CNT_U161Counts1/0*
D_ADC1MAGINTCR1_CNT_U321Countsk_VbattOVTransIntConfig_Cnt_u32/ 0*
D_ADC1THRINTENACLR_CNT_U161Counts6/7*
D_ADC1EVTBUFSZ_CNT_U081CountsGenerated in Adc_Cfg.h.
D_ADC1G1BUFSZ_CNT_U081CountsGenerated in Adc_Cfg.h.
D_ADC1G2BUFSZ_CNT_U081CountsGenerated in Adc_Cfg.h.
D_GROUPEND_CNT_U321CountsGenerated in Adc_Cfg.h.
D_GROUPBUSY_CNT_U321CountsGenerated in Adc_Cfg.h.

D_ADC1CURRENTMODE_ULS_LGC if True value 1 is selected to proceed. If not value 2 will be used,

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
T_Adc1GroupConfigData_Cnt_Str[D_NUMOFGROUPS_CNT_U8]

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
None


Functions/Macros used by the Sub-Modules

Library Functions / Macros

The library and functions / Macros that are called by the various sub modules are identified below,

  1. None

Data Hiding Functions

  1. <None>

Global Functions/Macros Defined by this Module

ADC Init

Function Name

Adc_Init_FixedCfg

( macro aliased is Adc_Init(x) )

TypeMinMaxUTP Tol.
Arguments PassedNoneN/AN/AN/A
Return ValueN/A

This function is used to initialize each of the ADC1 Groups (Event, Group1, and Group2).

Initialize Module Internal Variables

None

Register Configuration

Setup Result Buffer

Function NameAdc_SetupResultBufferTypeMinMaxUTP Tol.
Arguments PassedGroupAdc_GroupType02
DataBufferPtrAdc_ValueGroupRefTypeFULLFULL
Return ValueN/AStd_ReturnType000

This function is the Adc group result buffer setup service. It is responsible for setting up the result buffer pointer of the group.

This Api is provided to support for the standard Autosar API, however the design of this driver does not buffer an intermediate copy of the results and therefore does not require a result buffer. The hardware provides a sufficient Adc results buffer.

For optimization purposes, this function could be defined as a macro.

Setup Group’s Result Buffer

return E_OK

Start Group Conversion

Function NameAdc_StartGroupConversionTypeMinMaxUTP Tol.
Arguments PassedGroupAdc_GroupType02
DataBufferPtrAdc_ValueGroupRefTypeFULLFULL
Return ValueN/AStd_ReturnType000

This function starts a software triggered conversion of all channels of the requested Adc channel group.

In order to provide optimized execution of this single line function, this API should be defined as a macro, however, due to timing it is at the moment defined as a function. The need for minimal runtime is driven by a Nexteer use case which executes this in the context of the MtrCtrl ISR in some EPS systems.

Select Channels to Convert

adcREG1->GxSEL[Group] = T_Adc1GroupConfigData_Cnt_Str[Group].ChannelSelect

Get Group Status

Function NameAdc_GetGroupStatusTypeMinMaxUTP Tol.
Arguments PassedGroupAdc_GroupType02
Return ValueReturnVal_Cnt_T_EnumAdc_StatusType030

Returns the conversion status of the requested ADC1 channel group.

Get Status

Read Group Conversions

Function NameAdc_ReadGroupTypeMinMaxUTP Tol.
Arguments PassedGroupAdc_GroupType02
Return ValueReturnVal_Cnt_T_EnumAdc_StatusType030

Reads the group conversion result of the last completed conversion round of the requested group and

stores the channel values starting at the DataBufferPtr address. The group channel values are stored in ascending channel number order (in contrast to the storage layout of the result buffer if streaming access is configured).

Per the design direction in FDD33, direct ADC result buffer acces is used instead of using the hardware FIFO access register.

Read Group

Local Functions/Macros Used by this MDD only

Software Module Implementation

Runtime Environment (RTE) Initial Values

None

Initialization Functions

None

Periodic Functions

None

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Transition Functions

None


Execution Requirements

Execution Sequence of the Module

Adc_Init should be called after SystemTime_Init due to the use of the uS System Time.

Adc_Init should be called prior to IoHwAb_Init to ensure registers are configured prior to triggering initial conversions.

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called
Adc_InitOnce (at initialization)STARTUP

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)
N/A


Memory Map Definition Requirements

Sub Modules (Functions)

This table identifies the software segments for functions identified in this module.

Name of Sub ModuleSoftware Segment
Adc_InitADC_START_SEC_CODE
Adc_SetupResultBufferADC_START_SEC_CODE
Adc_StartGroupConversionADC_START_SEC_CODE
Adc_ReadGroupADC_START_SEC_CODE
Adc_GetGroupStatusADC_START_SEC_CODE
ADCOffsetCalibrationADC_START_SEC_CODE

Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment


Known Issues / Limitations With Design

  1. INLINE functions defined in “GlobalMacro.h” are not unit tested


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial version based on FDD 33C rev 00605Nov12LN
22

Constant confiuguration tables renamed to start with “T_”

Rewored Adc_ReadGroup to provide direct fixed memory access as required in the FDD

15Jan13JJW
33Updated FDD 33C rev 007 and FDD33E rev225-April-13Selva

4 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

Adc- Rev 1.0<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1Selva26-Apr-12Updated to ver 02 FDD




























































































































































































































































































































































Sheet 2: Variable Dictionary

Adc- Rev 1.0

IOMDN
Variable Information

YN










Range











Software Variable NameStandard Reference NameFDD ReferenceDescription[I]nput [O]uput [M]oduleInternal [D]isplay [N]onVolatileMemory UsageOEM1X, 1Y, 1Z, 1I, 1BS 2X, 2Y, 2Z, 2I, 2BS etc Graph SettingsInitalization ValueMinMaxResolutionUnit Test Tolerance (+/-)UnitsTypeMemory Segment






Variables































































































































































































































































































































































































































































































































































































































































































































Sheet 3: Calibration Dictionary

Adc- Rev 1.0


N
Calibration InformationAchieved in Software Design



Y








Range





P
Software Calibration NameStandard Reference NameFDD ReferenceDescriptionTuning SetOEM1X, 1Y, 1Z, 1I, 1BS 2X, 2Y, 2Z, 2I, 2BS etc Graph SettingsDefault ValueMinMaxUnitsTypeMemory Segment



Calibrations















k_VbattOVTransIntConfig_Cnt_u32k_VbattOVTransIntConfig_CntFDD33C ADCUseandConfiguration
NN
38522060904294967296Cntuint32




k_MaxADCConvTime_uS_u16k_MaxADCConvTimeFDD33C ADCUseandConfiguration
NN
5001000uSuint16





Sheet 4: Global Constants

Adc- Rev 1.0








































































Variable Information (Global Variables Only)

Achieved in Software DesignUsed in Module List





Layer 2Layer 3Layer 4Layer 5
Constant NameDescriptionUintsTypeEngineering ValueADCADC DiagnosticsData Memory VerificationDC Link Power ControlDSP Computational IntegrityDSP SPI driverEvent Manager DriverExternal Memory DriverFlash Programming ExecGPIOIllegal OpCode HandlerInterrupt HandlerMotor Current DriverMotor Driver DiagnosticsMotor Position DriverPhase Feedback CapturePowerdown ControlPrimary Shutdown ControlProgram FlowProgram Memory DiagnosticPWM Duty CycleRedundant Memory CheckRedundant Rapid ShutdownSchedulerStack MonitorState Dependent Task ListSystem Boot & StartupSystem ControlTemperature Sensor DiagnosticUnused Interrupt HandlerUtilization MonitorWatchdog DirverSmithBattery VoltageBattery Voltage DiagnosticsDiagnostic CTC ManagerDiagnostic ManagerDiagnostics Application ServicesEOL TorqueTestFlash Boot LoaderFlight RecorderHandwheel PositionHandwheel TorqueMotor Control Output ConversionMotor Position DiagnosticsMotor Position InitializationMotor VelocityMotor Velocity TachometerSerial Communications I/OSerial Communications ServicesStates and ModesTuning SelectVehicle Power ModeVehicle SpeedController PolarityCurrent EstimationHandwheel VelocityInverse Motor ModelMotor Temperature EstimationMotor Torque LimitOutput Reasonableness DianosticParameter EstimationQuadrant and rate DetectionActive Pull CompensationAssistDampingDuty CycleKinematic Integrity DiagnosticLong Term Vehicle Speed DiagnosticMax Assist LimitReturnState Output ControlTorque Output























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Sheet 5: Template

2.2aData File:












Header:extern <TYPE><TAB><NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>");
<TYPE> <NAME>;










EOL Constants:












Header:extern <TYPE><TAB><NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>");
<TYPE> <NAME>;










Global (Embedded) Constants:












Header:#define <NAME><COL40><VALUE>









A2L Name












Measurement:rte_<SWC>_<NAME>









Calibration Constants:












Tuning ID:



















Tuning:NIndex Range:










Header:extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, ".<SEGMENT>");
CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME> = <VALUE>;










eCal:<NAME>























Tuning:YIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>
























Tuning:PIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>

















Sheet 6: Help

Short cutMacroSescription
Ctrl-qClearDataDictFilterWill clear all autofilters on the Global Data Dictionary




DFD_CreateCreates a Series of Data Flow Worksheet Pages from the information in the data dictionary. If Data Flow Worksheet pages already exist, they will be deleted first.

DFD_DeleteWill clear all Data Flow Diagram pages from the Data Dictionary. This will make the file smaller for archiving.

DFD_PrintFormate and prepares to print the Data Flow Worksheet pages.

5 - Integration_Manual_ADC

1 Dependencies 2

1.1 SWCs 2

1.2 Configuration Files to be provided by Integration Project 2

1.3 Functions to be 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.3 Include Path 4

3.4 Configurator Changes 4

4 Runnable Scheduling 5

5 Memory Mapping 6

5.1 Mapping 6

5.2 Usage 6

6 Revision Control Log 7

Dependencies

SWCs

ModuleRequired Feature

Configuration Files to be provided by Integration Project

NOTE:

For Projects using 33E, make sure “D_ADC1CURRENTMODE_ULS_LGC” is defined Adc_Cfg.h file.

For Projects using 33C, make sure “D_ADC1CURRENTMODE_ULS_LGC” is NOT defined Adc_Cfg.h file.

Template for Configuration file:

Adc_Cfg.h

Adc2_Cfg.h

Functions to be provided to Integration Project

Adc2_ReadConversion

Adc2_Init1

Adc2_StartGroupConversion

Adc2_EnableGroupNotification

Adc_Init_FixedCfg

Adc_StartGroupConversion

Adc_ReadGroup

Adc_GetGroupStatus

Configuration

Build Time Config

ModulesNotes
None

Generator Config

ConstantNotesSWC
None

Integration

Global Data

None

Component Conflicts

IoHwAb

Include Path

$PROJECTPATH$\Adc\include

Adc.h, Adc2.h, Adc_Common.h

Configurator Changes

None

Runnable Scheduling

This section specifies the required runnable scheduling.

InitScheduling RequirementsTrigger
Adc_Init()Before Adc2_Init1 initializationECU Startup
Adc2_Init1()Before PWMCdd initializationECU Startup
RunnableScheduling RequirementsTrigger
Adc_StartGroupConversionNoneISR

*Note:

.

Memory Mapping

Mapping

Memory SectionContentsNotes
ADC2_START_SEC_CODE
ADC2_START_SEC_CONST_32
ADC_START_SEC_CONST_32
ADC_START_SEC_CODE

* 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
<Memmap usuage info>

Revision Control Log

Rev #Change DescriptionDateAuthor
1Initial version09-Apr-13Selva