According to the spec process, our design is as follows,premise:
Vsup = 24V(always connect the battery) wake1:control by mcu,the MCU detects whether a key is inserted to determine wake1 status. wake2:control by external buttons
Plan on:
In normal state , the MCU detects that the key is not conneted:Set GoTo_STBY =1;Wake1 = 0;
The State change to Standby.
Plan on:
In Standby state , the MCU can't work ,the external button is pressed:
The State change to normal.
In Standby state , the MCU can't work , the external button is not pressed(set Wake2=0):
The State change to Powerdown.
Plan on:
In Powerdown state, hold down the external button of more than 300ms
The State change to standby ,beacse of hold down the external button ,so the state change to normal.