An implantable or other ambulatory medical device can include a magnetic field detector, such as configured to detect an intense magnetic field. In an example, the ambulatory or implantable medical device can include an inductive switching supply, such as including one or more of a peak current comparator, or a zero current comparator. In an example, the ambulatory or implantable medical device can include a controller circuit, configured to control a switch, such as to controllably charge an inductor included in the inductive switching supply.