I want to use VMON_VSYS to detect voltage when power failed, how to config in program.
hardware: AM64X EVM
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.
I want to use VMON_VSYS to detect voltage when power failed, how to config in program.
hardware: AM64X EVM
Hello,
I'm sorry for the delay here. We will have a response for you within the next couple of days.
Regards,
Sahin
Hello Li Zhang,
The VMON_VSYS pin is different from the other VMON_xyz pins. It implements a simple comparator with 0.45V +/-3% reference. In the AM64x EVM there is a resistor divider connected to VCC_5V0 (100k R1, 11k R2) resulting in UV trip at 4.54V
POK status is captured in the below two registers to poll for UV/OV event
There are also control registers but default settings appears to be all POK enabled for UV detection.
Looking at TRM I assume there is a copy and paste error in register names:
Just corrected the last two. Does it solve your issue?
Hello Li Zhang,
Here is some additional information regarding the ESM interrupt mapping in AM64x / AM243x. You may poll the register in CTRLMMR_MCU_PRG_PP_0_STAT or use the ESM interrupt #81 based on the below mapping.
ESM errors 64 through 77 mapping:
[6] pok_vdds_ddrio
[5] pok_vddr_core
[4] pok_vddshv_mcu_1p8
[3] pok_vddshv_mcu_3p3
[2] pok_vmon_cap_mcu_general
[1] pok_vddshv_main_1p8
[0] pok_vddshv_main_3p3
ESM errors 78 through 82 mapping:
[4] pok_vdd_mcu_ov
[3] pok_vdda_pmic_in_uv
[2] pok_vdda_mcu_uv
[1] pok_vdda_mcu_ov
[0] pok_vdd_mcu_uv
Hello Li,
Yes it appears to be an error in the register descriptions. The field name is correct but the field description is not.