Hello,
In looking through the reference manual, I couldn't find enough information on the Power Management system regarding the VDESR flag outputs.
I have tried the following for checking the voltage:
https://www.infineonforums.com/threa...supply-voltage
as well as the following code:
to try to determine whether the power supply is providing 3.3 or 5 volts. Unfortunately, I always get 0 as the voltageLevelFlag which unfortunately does not tell me if the problem is that the power monitoring was not set up properly or there is some other problem. Based on my readings, I would expect that operating with 3.3 volts would give an output of 2 and operating with 5 volts would give an output of 0.
Are any steps missing because the need to set the password was not in the manual? So it is not entirely clear if other steps may be required.
Thanks,
Jason
In looking through the reference manual, I couldn't find enough information on the Power Management system regarding the VDESR flag outputs.
I have tried the following for checking the voltage:
https://www.infineonforums.com/threa...supply-voltage
as well as the following code:
Code:
SCU_GENERAL->PASSWD = 0x000000C0UL;
WR_REG( SCU_ANALOG->ANAVDEL, 0xFFFF, 0, 0x0012 ); // enable voltage detector with 4.4V threshold
SCU_GENERAL->PASSWD = 0x000000C3UL;
voltageLevelFlag = (uint8_t)RD_REG( SCU_POWER->VDESR, SCU_POWER_VDESR_VDDPPW_Msk, SCU_POWER_VDESR_VDDPPW_Pos);
Are any steps missing because the need to set the password was not in the manual? So it is not entirely clear if other steps may be required.
Thanks,
Jason