Patent ID: 8868816

Claim:
A mobile terminal, comprising: a connector including a plurality of pins, a plug of a peripheral device being insertable into the connector; a display unit configured to display a menu for setting a connector mode, including a charging mode, a Universal Serial Bus (USB) mode, a Universal Asynchronous Receiver/Transmitter (UART) mode, an antenna mode, an earphone mode, and an ear microphone mode; an input unit configured to receive selection of one connector mode from the menu for setting a connector mode; a main processor configured to connect with a switch unit through a data line, a sound line, a microphone line, and a control line, to receive connector mode selection information from the input unit, and to transfer switching information corresponding to the selected connector mode to the switch unit through the control line; and the switch unit configured to connect with a subset of the pins of the connector, and to selectively connect the subset of the pins to at least one of the data line, the sound line, and the microphone line according to the switching information received from the main processor, wherein the plurality of pins includes two pins configured to be connectable to the data line and one pin configured to be a ground pin performing an antenna function.