This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCF8316A: About MPET configuration

Part Number: MCF8316A

Tool/software:

Hello, I have a question about MPET, hope to get your answer.

If I set 0xEE to 0x00000021(set MPET_CMD to 1 and MPET_WRITE_SHADOW to 1), can the MCF8316A save the values to shadow after finishing MPET test?

Regards,

Eddie Yao.

  • Hi Eddie Yao,

    When MOTOR_RES, MOTOR_IND, MOTOR_BEMF_CONST, SPEED_LOOP_KP, or SPEED_LOOP_KI values are set to zero, then the result from MPET will automatically be written to the shadow register automatically regardless if MPET_WRITE_SHADOW is set to 1.

    I will check if writing 1 to both MPET_CMD and MPET_WRITE_SHADOW will result in MPET writing the MPET results to the shadow registers at the end of MPET.

    Regards,

    Joshua

  • Hi Joshua,
    Thank you so much.
    I hope to get the mpet parameters and write them into eeprom automatically if I set  0xEE to 0x00000021.
    Is there any result now?
    Hope to get you answer as soon
    Regards,
    Eddie Yao

  • Hi Eddie Yao,

    I tested writing 0x3F to the register ALGO_CTRL2 which sets MPET to preform all measurements and sets MPET_CMD and MPET_WRITE_SHADOW. The test confirmed that writing both MPET_CMD and MPET_WRITE_SHADOW as 1b to the register at the same time will make it so that the results of MPET will automatically be written to the shadow registers. The shadow registers will be written to as the appropriate step of MPET is completed. 

    I hope to get the mpet parameters and write them into eeprom automatically if I set  0xEE to 0x00000021

    After MPET completes you can send the EEPROM write command. When writing to EEPROM we recommend only sending the write command when the algorithm state is motor idle. We also recommend waiting 750 ms to allow the EEPROM write to complete for the best results.

    Regards,

    Joshua

  • Hi Joshua,

    Got it ,thank you so much!

    I only need to run MPET to get R/L/BMEF, so I will set 0x003C to to the register ALGO_CTRL2.

    I considered that it only need to wait 100ms to write EEPROM, now I will change it into more than 750ms, really appreciate you.

    Best Regards,
    Eddie Yao

  • This is a correction, set 0x003D to to the register ALGO_CTRL2.