ensuring a predetermined initial state when the supply voltage has been applied; storing the actual state when the supply voltage fails