Tool/software:
Dear TI Support Team,
I am working with the MSPM0L2228 microcontroller in a battery-powered application. The system uses the internal high-speed oscillator (HSOSC) as the main clock and an external 32.768 kHz crystal for low-frequency timing.
For battery charging, we are using the BQ24072RGT charger IC. The PG (Power Good) and CHG (Charge Status) pins are connected to the MCU GPIOs for monitoring the charging state.
We are seeing the following behavior:
- When the charger is connected and PG is low, the MCU runs at the expected configured frequency.
- When the charger is disconnected (PG goes high) and the system switches to battery-only power, the system frequency drops to 32 MHz — suggesting a fallback to the default HSOSC configuration.
- When the charger is reconnected, the MCU returns to the correct frequency configuration.
We are not intentionally modifying the clock configuration during power transitions. This leads us to believe that a voltage dip, brown-out, or internal reset may be causing the clock system to revert to defaults.
Could you please help clarify:
1. Under what conditions would the MSPM0L2228 revert to 32 MHz default HSOSC behavior?
2. Does the controller lose its clock configuration when switching from charger to battery?
3. What is the recommended approach to maintain or reinitialize the clock configuration in such scenarios?
4. Is it expected that PG/CHG or VDDS changes could trigger a reset or fallback behavior?
I can share my clock initialization code and schematic if needed. Your insights on maintaining clock stability during power transitions would be greatly appreciated.
Best regards,
ANKUSH