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.
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:
Regards,
Erik