Patent ID: 8074004

Claim:
An electronic device of detecting contention of a bidirectional bus, the electronic device consisting of: an output terminal coupled to the bidirectional bus, for outputting a data output signal to the bidirectional bus; an input terminal coupled to the output terminal and the bidirectional bus, for receiving a data reception signal from the bidirectional bus; a data output unit for providing the data output signal; a sampling timing generator coupled to the data output unit, for generating a sampling timing signal according to the data output signal; a sampling unit coupled to the data output unit and the sampling timing generator, for sampling the data output signal according to the sampling timing signal, to generate a sample data signal; a detection timing generator coupled to the data output unit, for detecting a transition of the data output signal and generating a detection timing signal accordingly when the transition of the data output signal is detected; and a comparing unit coupled to the input terminal, the sampling unit and the detection timing generator, for comparing the data reception signal with the sample data signal according to the detection timing signal, to determine a contention state of the bidirectional bus; wherein the transition of the data output signal is a rising or falling edge of the data output signal and the comparing unit neglects the detection timing signal generated according to a first transition of the data output signal.