I'm using the MCP1640T-I/CHY in the following setup:
MCP_EN is connected to C2 on my Electron. The R1/R2 configuration ensures Vout is 5V.
The datasheet mentions the following about the Enable pin:
So by pulling C2 low, I want to disable the regulator.This is crucial, as I have components with a very high quiescent current connected to Vout, and I need my setup to draw as little current as possible in Deep Sleep. I use the following code for this:
SYSTEM_MODE(SEMI_AUTOMATIC);
const int MCP_EN = C2;
void setup(){
Serial.begin(9600);
pinMode(MCP_EN, OUTPUT);
}
void loop() {
digitalWrite(MCP_EN, HIGH);
delay(5000);
digitalWrite(MCP_EN, LOW);
delay(5000);
System.sleep(SLEEP_MODE_DEEP, 10000);
}
Observations: While EN is high, Vout is 5V. When EN is pulled low, Vout starts dropping towards 0V. When the Electron enters Deep Sleep, Vout goes back to 5V after about a second. EN appears to remain at 0V. The components connected to Vout continue to draw a lot of current while the Electron is in Deep Sleep.
What am I misunderstanding about the functionality of this device? It'd be great if someone could give me a push in the right direction here...