ManufactureTestIMPL.docx
《ManufactureTestIMPL.docx》由会员分享,可在线阅读,更多相关《ManufactureTestIMPL.docx(12页珍藏版)》请在冰豆网上搜索。
![ManufactureTestIMPL.docx](https://file1.bdocx.com/fileroot1/2023-6/24/7a2b56a1-ecf3-48d2-a358-a14ca9b48fdc/7a2b56a1-ecf3-48d2-a358-a14ca9b48fdc1.gif)
ManufactureTestIMPL
GEMS–K1
ManufactureTestimplementationdocument
CONFIDENTIAL
TJU—IFXAutomotiveElectronicJointLaboratory
StateKeyLaboratoryofEngines
TianJinUniversity,China
Revisionhistory
Version
By
Modifications
V0.1,15thFeb.2009
Hoangchao.Zhang
Created
Summary
Revisionhistory2
Summary3
1Introduction4
1.1Overview4
1.2Reference4
2.Typedefinition5
3GlobalVariable6
4FunctionDefinitions7
4.1MFT_SpareOUT7
4.2MFT_INT7
4.3MFT_AD8
4.4MFT_Driver8
4.5MFT_ETCMotor9
4.6MFT_DigitalIO9
4.7MFT_EP10
5ResourcesConfiguration12
5.1PeriperalConfig12
5.2InterruptConfig12
6CompileEnvironment12
1Introduction
1.1Overview
ThisdocumentdescribestheimplementationofManufactureTestmoduletobedevelopedfortheGEMS-K1project.
ImplementationofmanufacturetestneedtheconnectionofECUandTestboard.
1.2Reference
2.Typedefinition
Type
Description
Range
MFT_ADC_CRTTyp
StructureforstoringthetestcriteriaforADCchannels
floatFADC_L;
floatFADC_H;
floatADC_L;
floatADC_H;
MFT_Driver_CRTTyp
StructureforstoringthetestcriteriaforDriverchannels
floatTstRdy_L;
floatTstRdy_H;
floatOUTOK_L;
floatOUTOK_H;
MFT_ETCMotor_CRTTyp
StructureforstoringthetestcriteriaforETC
floatOUTOK_L;
floatOUTOK_H;
floatPOUTOK_L;
floatPOUTOK_H;
floatOUT1OK_L;
floatOUT1OK_H;
floatOUT2OK_L;
floatOUT2OK_H;
floatOUTNOK_L;
floatOUTNOK_H;
MFT_CRTTyp
Structureforstoringthetestcriteriafortestedobject
MFT_ADC_CRTTypADC;
MFT_Driver_CRTTypDriver;
MFT_ETCMotor_CRTTypETCMotor;
3GlobalVariable
Thischapterdescribestheglobalvariableusedbyscheduler.
Varialbes
Type
Description
MFT_TstCrt
MFT_CRTTyp
criterafortest
4FunctionDefinitions
4.1MFT_SpareOUT
Syntax
voidMFT_SpareOUT(uint8OUT)
Parameters
Uint8
OUT
Channelnumbertobeturnedon
Return
Notification
Description
Thisfunctionswitchtheappointedchannelon.
∙ChannelappointedbyOUTturningon
∙OUTcanstandingformost4channels
∙0x01firstchannel,0x02secondchannel,0x03thirdchannel,0x04fourthchannel
∙Example:
OUT=0x01|0x03meansthefirstandthirdchannelshouldbeswitchon.
Reentrancy
No
Remarks
4.2MFT_INT
Syntax
voidMFT_INT(void)
Parameters
Parameters
Return
Notification
Description
Thisfunctiondoesinitializationformanufacturetest.
∙SpareOut1,2,3,4switchoff
∙LEDtwinkleswith2Hzfrequency.
∙
Reentrancy
No
Remarks
4.3
MFT_AD
Syntax
voidMFT_AD(floatETCTst)
Parameters
Return
Notification
Description
ManufacturetestofADchannels
Detailsofthisfunction:
∙Spare_out1,Spare_Out2,Spare_Out3Shut.Spare_Out4Open
∙if(channelvoltageintherangeofcriteria)
{
Testpassed
}
else
{
Testfailed;.
}
∙
Reentrancy
No
Remarks
4.4MFT_Driver
Syntax
voidMFT_Driver(void)
Parameters
Return
Notification
Description
Manufacturetestofdriverchannels
Detailsofthisfunction:
∙Spare_out1,Spare_Out2,Spare_Out3Shut.Spare_Out4Open
∙Setthetestingchannelon
∙if(spareADchannelvoltageintherangeofcriteria)
{
Testpassed
}
else
{
Testfailed;.
}
∙
Reentrancy
No
Remarks
SpareADChannelofECUisusedfortesting
4.5MFT_ETCMotor
Syntax
VoidMFT_ETCMotor(void)
Parameters
Return
Notification
Description
ManufacturetestofETC
Detailsofthisfunction:
∙Spare_out1,Spare_Out2,Spare_Out4Shut.Spare_Out3Open
∙SetETC+andETC-switchon
∙if(spareADchannelvoltageintherangeofcriteria)
{
Testpassed
}
else
{
Testfailed;.
}
∙
Reentrancy
No
Remarks
SpareADChannelofECUisusedfortesting
4.6MFT_DigitalIO
Syntax
VoidMFT_DigitalIO(void)
Parameters
Return
Notification
Description
ManufacturetestofdigitalIOchannels
Detailsofthisfunction:
∙Spare_out1,Spare_Out3,Spare_Out4Shut.Spare_Out2Shut
∙if(theresultofIOchannelis0)
{
Testpassed
}
else
{
Testfailed;.
}
∙Spare_out1,Spare_Out3,Spare_Out4Shut.Spare_Out2Open
∙if(theresultofIOchannelis1)
{
Testpassed
}
else
{
Testfailed;.
}
∙
Reentrancy
No
Remarks
SpareADChannelofECUisusedfortesting
4.7MFT_EP
Syntax
VoidMFT_EP(void)
Parameters
Return
Notification
Description
ManufacturetestofCrankandCansignalfetching
Detailsofthisfunction:
∙Spare_out2togglesinahighfrequency
∙if(EP_EPMdl.CrkFECnt>10)
{
CrankTestpassed
}
else
{
CrankTestfailed;.
}
∙if(EP_EPMdl.CamFECnt>10)
{
CamTestpassed
}
else
{
CamTestfailed;.
}
∙
Reentrancy
No
Remarks
SpareADChannelofECUisusedfortesting
4.8MFT_MFTest
Syntax
VoidMFT_MFTest(void)
Parameters
Return
Notification
Description
ManufacturetestoftheECU
Detailsofthisfunction:
Manufacturetestisimplementedinthefollowingsequence.
∙MFT_INT();
∙MFT_AD();
∙MFT_Driver();
∙MFT_ETCMotor();
∙MFT_DigitalIO();
∙MFT_EP();
∙
Reentrancy
No
Remarks
5ResourcesConfiguration
TheresourceusedbyManufactureTest
5.1PeriperalConfig
Source
Description
Spareout1
ThedigitalspareoutofECU
Spareout2
ThedigitalspareoutofECU
Spareout3
ThedigitalspareoutofECU
Spareout4
ThedigitalspareoutofECU
5.2InterruptConfig
Source
SRN
TOS
Priority
Name
Description
6CompileEnvironment
CompileTool:
TaskingVX-ToolsetforTricorev2.2r3