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.

MCU-PLUS-SDK-AM243X: SYS-MON UV Interrupt Event on R5F

Part Number: MCU-PLUS-SDK-AM243X

Hello,

from software side the proposed solution works well but when voltage level on VMON_SYS pin goes below 0.45V there is no change on register ESM_RAW_2 (0x04100440).

Is there any additional configuration needed?

Best regards,

Sven

  • Hello Sven,

    No additional configuration should be necessary for the ESM_RAW_2 bit. I initially wrote the code to handle the interrupt based on when the VMON_VSYS pin was shorted to ground. Can you confirm the VMON_VSYS pin is below 0.45V by measuring the pin or shorting the pin to ground? I am travelling and will be able to confirm with the AM243x LP that no additional configuration is needed by end of day tomorrow. 

    Regards,

    Erik

  • Hello Erik,

    thanks for your reply. As measured from my hardware collegues the VMON_SYS pin was definitely below 0.45V. We look if we can check what happens if VMON_SYS pin is shortened to ground.

    Best regards,

    Sven

  • Hello Sven,

    I apologize as I was able to confirm that you were correct about additional configuration being needed. In order to have read a value of 0x0020000 for ESM_RAW_2 when VMON_VSYS goes below 0.45V you must have the POK_EN_SEL bit set in the CTRLMMR_MCU_PRG_PPP_0_CTRL register. This can be done by manually setting bit 15 of CTRLMMR_MCU_PRG_PP_0_CTRL (0x04518200). I have attached a modified example of the code that I previously provided you. For this program, when you load and run, there will be a printed statement: "Lower VMON_VSYS Voltage for UV event". At this point, lower VMON_VSYS Voltage (or short to ground) to trigger a UV event. Note: the program will not print  "Test Pass and Interrupts cleared" until VMON_VSYS returns to a "Voltage good" state. So the sequence will be:

    1. Load program onto r5 core and run
    2. Wait for "Lower VMON_VSYS Voltage for UV event" to print
    3. Create UV event (Short VMON_VSYS to ground or other method)
    4. Remove short on VMON_VSYS pin 
    5. "Test Pass and Interrupts cleared" will print to indicate that the Undervoltage event on VMON_VSYS was recognized and handled

    Regards,

    Erik

    AM243_ESM_INTR_R5.zip

  • Thanks Erik, it's working now.

    Regards, Sven