Hi liwuquan,
Sorry for delayed response.
The generated code for the FET pre-driver initialization flow chart is part of the
void Read_Hall_Sensors_and_Speed_Est(void) function. There is a large switch that contains all the sequences
...
} else {
switch (OpenLoop_Control_with_SpeedE_DW.is_c2_OpenLoop_Control_with_Spe) {
case OpenLoop_Control_with_Spee_IN_A:
Data = (uint16_T)0x20;
OpenLoop_Control_with_SpeedE_DW.is_c2_OpenLoop_Control_with_Spe =
OpenLoop_Control_with_Spee_IN_B;
break;
case OpenLoop_Control_with_Spee_IN_B:
Data = (uint16_T)0x30;
OpenLoop_Control_with_SpeedE_DW.is_c2_OpenLoop_Control_with_Spe =
OpenLoop_Control_with_Spee_IN_C;
break;
...
This code is called on the model step function / basically an interrupt
void SYSTEM_TASK(void)
{
OpenLoop_Control_with_SpeedEstimator_step();
}
The SW needs to initialize the pre-driver. The most critical part is the PWM sequence to load the bootstrap capacitors, otherwise the PWM signals will not pass from the MPC5744 CPU to the actual MOSFETs.
In respect with the MotorGD devkit please get in contact with wem'sperez since he might help you with the available stock information.
Regarding the schematics i need to look for the official ones and i'll come back to you. The videos are using a prototype board and some of the resistors capacitors have been changed in the final layout.
Thank you!
Daniel