Hi Mark and Ricardo,
Mark, Thank you for the info & the links. I'll definitely read through them.
I may not be explaining the situation very well mainly because I'm still very new in using the MCU MKL28Z & still learning. Please read other explanation below.
Ricardo, you made me realize I might be mistaken in the approach & resolution to what I need to accomplish.
The main goal is (as Ricardo asked), even when a coin cell battery is plugged in to the HW circuit, if the product is completely powered off, let's say it's in a box stocked-up on a retailer shelf, I do NOT want any of the HW circuit or the MCU drawing any power from the connected coin cell battery. No, I don't want to set it in any low power mode while it is boxed on a shelf. I need ALL circuits OFF, even with coin battery installed on the board. (Again, we can not have removable tab on the cell because product will be sealed & customer can not reach inside to retract the tab.)
One issue is this MKL28 does not have a "VBAT" input pin as how it is with another MCU Kinetis K22F which we are using on an old product. The K22F on that product is where we have connected the battery to the VBAT pin & according to this MCU's reference manual, that VBAT pin only supplies power to the RTC and some config block 32 byte "files" while the rest of the MCU is "dead". So even when powered down, the product keeps date & time because RTC "ticking".
I want to apply the same principle to the MKL28-based new product I'm developing. In this early stage of HW circuit design, I've recommend to our HW engineer (I'm more in FW engineering) to connect the battery circuit to the VDD which if the system is powered-down will mean the coin battery will supply back-up power to the WHOLE SYSTEM, & not just the RTC. This means I have to constantly keep the MCU in lowest power mode even if the product is inside a box on a shelf? which does not make any sense. I need the whole MCU powered-off if main power is taken-out even if coin battery is installed. So that's why I only wanted to turn off RTC if in case the battery is only supplying power to it (not the whole MCU).
I just found the VOUT33 pin on MKL28. It is mentioned mainly in the context of the "USB", not so much for RTC backup power ala-K22F. We are not implementing a USB communication at this point for this product. Refman says keep VREGIN & VOUT33 floating if not to be used.
Does anyone know if the VOUT33 on the MKL28 can be utilized / programmed / connect like the the VBAT on the K22? which pin or crystal or what have you should I connect VOUT33 to so it supplies power ONLY TO RTC peripheral but NOT the whole MCU (need to be shutdown). So if product is the box, I'll just "DISABLE" the RTC via CGC bit on PCC_RTC register. Which I hope will ensure NONE of the MCU & HW circuit will consume any coin battery life.
Please correct me if any of the above I said is incorrect & please explain if you have what other options/solutions I can do both in HW circuit connection & my FW programming to accomplish my goal.
Thank you so much for the help.
MI