In one of my application I'm using C8051F410 uC.
I want to monitor voltage of RTC Battery( Typical 3V) Vrtc-backup pin. I have no IO left to read this voltage through ADC.
I tried monitoring VREGEN bit in RTC0ADR, to check if Vrtc-backup > VDD(2.5V).
Description of VREGEN says
" This bit is automatically set to 1b when Vrtc-backup > VDD "
When Vrtc-backup voltage 3V, I found VREGEN bit as 0b
When I made Vrtc-backup voltage 1.5V, I found VREGEN bit still 0b.
I changed init to RTC0ADR=0x26;
When Vrtc-backup voltage 3V, I found VREGEN bit as 1b
When I made Vrtc-backup voltage 1.5V, I found VREGEN bit still 1b.
I do not found any change in VREGEN bit when Vrtc-backup changes.
Is it possible to monitor Vrtc-backup using VREGEN???
If yes, please guide me what I am missing / doing wrong here.
Sorry for the delayed response. I am looking into this issue and will let you know of updates.
Sorry for the delayed response. I was able to reproduce the first part of this issue where VRTC-BACKUP > VDD won't enable the VREGEN bit. I am still currently still looking into this issue. I will let you know when I have more updates. Thank you for your patience.
Can you please provide a simplified version of your project for me to look into the second part of this issue?