1、ETCdriverimplement0908v10 ETC Driver Implement DocumentTianjin UniversityInfineon Automotive Electronic Joint LaboratoryState Key Laboratory of EnginesTianJin University, ChinaRevision historyVersionByModificationsV0.1, 08th July 2008Wei ZhouCreationContents1 Introduction 41.1 Overview 41.2 Referenc
2、e 42. Type definition 53 Global Variable 64 Function Definitions 74.1 ETC_Init 74.2 ETC_DSBL 84.3 ETC_ENBL 94.4 ETC_SetIN2H 104.5 ETC_SetIN2L 104.6 ETC_IN1PWM 104.7 ETC_PWM 114.8 ETC_PID 115 Resources Configuration 125.1 Periperal Config 125.2 Interrupt Config 126 Compile Environment 131 Introductio
3、n1.1 OverviewThis document describes the implementations of the ETC driver to be developed in the frame of the GEMS-K1 project. The ETC driver configures control the ETC accurately and quickly,the controller is built by PID which is divided into two parts, so it can be more better satisfied the non-
4、linear system.1.2 Reference1 ETC_testSpec_20080908_v1.0_LB.doc2 ETC_driver_specification_20080908_v1.0.doc2. Type definitionTypeDescriptionRange3 Global VariableThis chapter describes the global variable.VarialbesTypeDescriptionLastDutyCyclefloatSave the absolute return-value of ETC_PID function in
5、the last cycle and it is used in the ETC_PWM function which calculates PWM signal.CurDutyCyclefloatSave the absolute return-value of ETC_PID function in the current cycleDirectionuint8Save the direction value of the ETC and it is used in the ETC_PWM function.ETC_PID_Par_ram103floatIt is used to cont
6、rol the PID controller.ETC_BasDutCyc_CW10floatIt is used in the KWP2000 function.ETC_BasDutCyc_CCW10floatIt is used in the KWP2000 function.4 Function Definitions4.1 ETC_InitSyntaxvoid ETC_Init(void);ParametersNoneReturnNoneNotificationDescriptionThis is the initialization function of the timer.Reen
7、trancyNoRemarks4.2 ETC_DSBLSyntaxvoid ETC_DSBL()ParametersNoneReturnNoneNotificationDescriptionThis function disables the ETC controller.ReentrancyNoRemarks4.3 ETC_ENBLSyntaxvoid ETC_ENBL() ParametersnoneReturnnoneNotificationDescriptionThis function enables the ETC controller.ReentrancyNoRemarks4.4
8、 ETC_SetIN2HSyntaxvoid ETC_SetIN2H(void)ParametersnoneReturnnoneNotificationDescriptionThis function controls the direction of the PWM output (positive direction).ReentrancyNoRemarks4.5 ETC_SetIN2LSyntaxvoid ETC_SetIN2L(void)ParametersnoneReturnnoneNotificationDescriptionThis function controls the d
9、irection of the PWM output (negative direction).ReentrancyNoRemarks4.6 ETC_IN1PWMSyntaxvoid ETC_IN1PWM(float Fre,float DutyCycle)ParametersFre: the frequency of PWM.DutyCycle: the dutyfactor of PWM.ReturnnoneNotificationDescriptionThis function controls the PWM of the first Periperal.ReentrancyNoRem
10、arks4.7 ETC_PWMSyntaxvoid ETC_PWM(float Fre,float DutyCycle,uint8 Dir )ParametersFre: the frequency of PWM.DutyCycle: the dutyfactor of PWM.Dir: the direction of the PWMReturnnoneNotificationDescriptionThis function calculates the control PWM signal including the frequency, dutyfactor and direction.
11、ReentrancyNoRemarks4.8 ETC_PIDSyntaxfloat ETC_PID(float number1, float ETC_Angle, float Mean_Angle);Parametersnumber1: the output of ETC controller in the last cycle.ETC_Angle: the actual throttle position of the ETC.Mean_Angle: the output throttle position which provided by ECU.Returnout: the contr
12、ol value of throttle position.NotificationDescriptionThis is the controller of the Electronic throttle.ReentrancyNoRemarks5 Resources ConfigurationThe resource used by ETC driver5.1 Periperal ConfigSourceDescriptionP0.14P0.15As ETC driver output pins5.2 Interrupt ConfigSourceSRNTOSPriorityNameDescription6 Compile EnvironmentCompile Tool: Tasking for Tricore
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1