Vbat monitor LPAC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
User8819
Level 4
Level 4
Hello,

Is there any example code or extra documentation available on this topic? I implemented the code according to xmc4400 manual. At first calibration of LPAC thresholds and all settings necessary are done. Measurement on sub/second timer is activated. After VDDP is switched off. Vbat is lowered to 2.9V. I assume that measurement runs automatically in hibernate mode. Then VDDP is applied and VBAT compare status is checked. Result is that Vbat compare status bit is 1, always above threshold. I expect should be 0. I would appreciate any help. Project code in the attachment.

rum
0 Likes
1 Reply
User8819
Level 4
Level 4
RTC periodic event wakeup mechanism must be used instead of sub-second timer in hibernate mode.
0 Likes