Electronic device for contention detection of bidirectional bus and related method
First Claim
1. 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.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device of detecting contention of a bidirectional bus for avoiding failing to drive a bidirectional bus due to bus contention includes: an output terminal, an input terminal and a data output unit, a timing comparing controller and a comparing unit. The output terminal is coupled to the bidirectional bus and used for outputting a data output signal to the bidirectional bus. The input terminal is coupled to the output terminal and the bidirectional bus and used for receiving a data reception signal from the bidirectional bus. The data output unit is used for providing the data output signal. The timing comparing controller is used for generating a timing comparison signal according to the data output signal. The comparing unit is used for comparing the data reception signal with the data output signal according to the timing comparison signal to determine a contention state of the bidirectional bus.
27 Citations
8 Claims
-
1. 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. - View Dependent Claims (2, 3, 4)
-
-
5. A method of detecting contention of a bidirectional bus used for transmitting a data output signal and receiving a data reception signal, the method consisting of:
-
generating a sampling timing signal according to the data output signal; sampling the data output signal according to the sampling timing signal, to generate a sample data signal; 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 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 detection timing signal generated according to a first transition of the data output signal is neglected. - View Dependent Claims (6, 7, 8)
-
Specification