A kind of abnormal recovery method and serial bus transmission device
A technology of a serial bus and a transmission device is applied in the field of a method, a serial bus transmission device, and abnormal recovery, and can solve the problems of hanging, failure of bus data transmission, and SDA pull-up.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] The abnormality recovery method provided by the embodiment of the present invention is applied to a serial bus transmission device, and the serial bus transmission device includes at least one master device, at least one slave device, and is used for the master device and the slave device A serial bus for communication between devices, the serial bus includes a serial clock bus SCL and a serial data bus SDA. When communicating between devices, the master device plays a main control role and is the initiator of the communication, and the slave device is the destination of the communication process. In addition, the master device can preferentially obtain the control right of the bus.
[0047] The embodiment of the present invention provides a method for abnormal recovery, which is applied to serial bus transmission devices, such as figure 1 As shown, the method includes the following steps:
[0048] 101. The master device and the slave device respectively detect whethe...
Embodiment 2
[0063] The embodiment of the present invention provides a method for abnormal recovery, which is applied to serial bus transmission devices, such as figure 2 As shown, the method includes the following steps:
[0064] 201. The master device and the slave device respectively detect whether the SCL is in an abnormal state.
[0065] In the process of data transmission between the master device and the slave device, both the master device and the slave device can perform real-time detection on the SCL to detect whether the SCL is in an abnormal state. In practical applications, the bus abnormalities that may occur include: The master device is required to lose the bus control right in the bus arbitration, but still thinks that it holds the bus control right, and pulls the SCL low for a long time, that is, the SCL is in the low level state for a long time; or the SCL is blocked The master device or the slave device is pulled low for a long time; or the SCL is in a high state for ...
Embodiment 3
[0076] The embodiment of the present invention provides a method for abnormal recovery, which is applied to serial bus transmission devices, such as Figure 4 As shown, the method includes the following steps:
[0077] 401. The master device and the slave device respectively detect whether the SCL is in an abnormal state.
[0078]In the embodiment of the present invention, both the master device and the slave device can detect the SCL in real time to detect whether the SCL is in an abnormal state. It is required to lose the bus control right, but still thinks that it holds the bus control right, and pulls the SCL low for a long time, that is, the SCL is in a low level state for a long time; or the SCL is controlled by the master device or the slave The device is pulled low for a long time; or the SCL is in a high state for a long time. Therefore, when the master device and the slave device detect whether the SCL is in an abnormal state, they need to detect whether the state ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com