Patent attributes
The present invention includes a fastening mechanism comprising a base and a metal frame. The base has an accommodating slot arranged for accommodating a memory card, a first fastener and a second fastener. The first fastener and the second fastener are electrically connected to a battery and the memory card, respectively. When the metal frame is in a fastening position and fastened to the first fastener and the second fastener, the memory card can be clamped between the base and the metal frame. Then an electrical path is formed among the first fastener, the second fastener and the metal frame, thereby supplying the memory card with power of the battery. The present invention further includes a portable electronic device with the above fastening mechanism in which the electrical path is opened, while removing the memory card, so as to prevent supplying the memory card with power of the battery.