摘要 |
A mobile device for supporting universal asynchronous receiver/transmitter (UART) communication and universal serial bus (USB) communication using a single connector and a method thereof are provided. The mobile device includes a USB connector, a USB module selectively connected with the connector to communicate with an external USB device, at least one internal UART device selectively connected with the connector to communicate with an external UART device, a determiner configured to determine whether the connector has been coupled to the external USB device or the external UART device based on a signal applied to at least one of pins of the connector, a switching unit configured to selectively connect data lines of the connector to one among the USB module and the at least one internal UART module based on a determination result of the determiner, and a central processing unit (CPU) configured to control the switching unit, thereby automatically switching the data lines of the connector to an appropriate internal module according to whether a device coupled to the connector is a USB device or a UART device.
|