Hello, I come back again.
We now use ML128 MINI BOARD to drive FOC motor. Do you have any resources to makes FOC motor rotate?
Does the mini board of ML128 can drive a single shunt resistor FOC motor?
Which PART in the FOC/BLDC simulink model or generated C code file is the motor parameters we can input or adjust?
Because I need to change the max voltage and max current for my FOC motor.
Furthermore, How can I use ML128 internal oscillator but not the external oscillator on the ML128 MINI BOARD.
Do you have the demo code for switching external to internal?
Here I attached a source code below which choose external oscillator:
/*****************************************************************************
*
* Function: void initCPMU(void)
*
* Description: Clock, Reset and Power Management Unit configuration
*
*****************************************************************************/
void initCPMU(void)
{
// Wait for stable supply after power up
while (GDUF_GLVLSF)
{
GDUF_GLVLSF = 1;
}
CPMUREFDIV_REFDIV = CPMU_REFDIV;
CPMUREFDIV_REFFRQ = CPMU_REFFRQ;
CPMUSYNR_SYNDIV = CPMU_SYNDIV;
CPMUSYNR_VCOFRQ = CPMU_VCOFRQ;
CPMUPOSTDIV_POSTDIV = CPMU_POSTDIV;
while (CPMUIFLG_LOCK == 0)
{
}
CPMURFLG = 0x60; //Clear PORF and LVRF
}
Many thkanks.