Part Number: MCU-PLUS-SDK-AM243X
Reopen the thread below for AM243x.
How to get an interrupt for undervoltage detection with VMON-VSYS pin on R5 processor? Do you have a code example?
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.
Part Number: MCU-PLUS-SDK-AM243X
Reopen the thread below for AM243x.
How to get an interrupt for undervoltage detection with VMON-VSYS pin on R5 processor? Do you have a code example?
Hello Sven,
Thank you for reopening this thread. We are meeting tomorrow morning to discuss the best implementation of a code example for an R5F interrupt based on a VMON-VSYS UV flag. I will have a response for you tomorrow afternoon.
Regards,
Erik
Hello Sven,
I am working on on the code example and plan to post it here next week.
Regards,
Erik
Hello Sven,
I have attached example code in the form of a CCS Project. The code enables the masks and global enables needed for both ESM's for an interrupt to R5FSS. The code simulates a VMON_VSYS undervoltage detection error event by writing a 1 to the bit that corresponds to PMIC_in_UV detection. This is no different than what would happen if a real under voltage event were to be detected by VMON_VSYS. I have also included a diagram that shows the high-level flow from the PMIC_in_UV event to the R5 interrupt.
Regards,
Erik
