Patent attributes
An electronic camera automatically suspends the power supply when an external storage medium is detached, and automatically resumes the power supply when the external storage medium is attached. This eliminates the necessity of operating a power switch when the external storage medium is detached and attached. The power supply to a memory card interface and a memory card is suspended upon detection of the start of the detachment of the memory card while the main switch is ON. This protects the memory card and data therein, and reduces the waste of power in the camera while the memory card is detached from the camera. The power supply is resumed upon detection of the attachment of the memory card to the camera. If a predetermined period has elapsed since the power supply is suspended while the memory card is not attached from the camera, the main switch is automatically turned off.