Patent ID: 8700826

Claim:
An integrated circuit for controlling at least one I/O port of an electronic system, comprising: a controller, having a function corresponding to the I/O port; a signal detector, receiving an input signal generated by an external electronic device through the I/O port and detecting whether the input signal from the external electronic device has an identification code, wherein the signal detector generates a select signal according to the identification code when detecting that the input signal has the identification code; and a selector coupled to the I/O port, receiving the select signal and selectively providing the input signal to the controller or a function circuit of the electronic system according to the select signal, wherein when the input signal is directed to the function circuit, the function circuit is assessed by the external electronic device; when the input signal is directed to the controller, the controller processes the input signal to execute a corresponding operation; wherein the signal detector determines whether the input signal has a specific check code, and when the input signal has the specific check code, the signal detector further determines whether the input signal has the identification code, so as to generate the select signal; and wherein when the function circuit is accessed by the external electronic device, the external electronic device controls, debugs, records, or updates the function circuit.