A current-mode switching regulator is provided. In one embodiment, the
regulator is a multi-mode buck-boost regulator that operates as follows.
When the operating mode changes, a gain associated with the inner current
loop changes, and the loop compensation changes. The inner current loop
gain and the loop compensation are adjusted when the operating mode
changes such that the post-mode change feedback variable values are
roughly the same as the pre-mode change feedback variables values.