CN107423242A - SD interface and the electronic installation and method of USB interface multiplexing - Google Patents
SD interface and the electronic installation and method of USB interface multiplexing Download PDFInfo
- Publication number
- CN107423242A CN107423242A CN201710501984.5A CN201710501984A CN107423242A CN 107423242 A CN107423242 A CN 107423242A CN 201710501984 A CN201710501984 A CN 201710501984A CN 107423242 A CN107423242 A CN 107423242A
- Authority
- CN
- China
- Prior art keywords
- interface
- usb
- state
- pin
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
Abstract
The electronic installation and method being multiplexed the present invention relates to a kind of SD interface and USB interface,3rd pin of docking port multiplexing control device is multiplexed,I.e. the 3rd pin was both connected with the data pin of SD interface,It is connected again with the negative signal pin of USB interface,Pin is set respectively to the data pin of SD interface and the negative signal pin of USB interface without docking port multiplexing control device,The pin for reducing multiplex interface multiplexing control device is set,So as to reduce the pin of the electronic installation of SD interface and USB interface multiplexing,Save cost,In addition,Interface duplex control device is according to the state-detection result of the SD interface and the state-detection result of USB interface,To the connection between the SD interface and the SD controllers,Connection between the USB interface and the USB controller switches over,So as to which the switching between SD interface and USB interface can be realized,So that it can both realize that SD interface communicated,Also usb communication can be realized,Meet difference in functionality demand.
Description
Technical field
The present invention relates to field of information processing, the electronic installation and side of more particularly to a kind of SD interface and USB interface multiplexing
Method.
Background technology
With the development of science and technology, requirement more and more higher of the user to consumption electronic product, consumption electronic product need to meet
A variety of different functions, the peripheral hardware (including USB device and SD card etc.) of access are also on the increase, accordingly, it is desirable to pin
Constantly increase, while body is smaller and inexpensive again.To realize more functions, it is necessary to more to consumer electronics product design
Pin, for example, portable small audio amplifier, the interface of its support peripheral hardware set includes SD interface and USB interface, as illustrated in fig. 1 and 2,
SD interface at least supports three pins, respectively command pin CMD, clock pins CLK (band detection functions, that is, when passing through detection
The signal of clock pin can carry out plug detection) and data pin Data0, as shown in figure 3, USB interface at least supports two pins,
Respectively D+ pins and D- pins, Master control chip in order to realize the function of the function of SD interface and USB interface, need to set compared with
More pins are connected with SD interface and USB interface respectively, to realize communication, if in order to save main control chip cost, go to reduce
Pin, functional requirement can not be fully achieved again.
The content of the invention
Based on this, it is necessary to for cost-effective while the problem of functional requirement can not be met, there is provided both save cost
And can meets the SD interface of functional requirement and the electronic installation and method of USB interface multiplexing.
A kind of SD interface and the electronic installation of USB interface multiplexing, including:Processor, condition checkout gear, SD controllers,
USB controller, interface duplex control device, SD interface and USB interface, the SD interface include command pin, clock pins
And data pin, the USB interface include negative signal pin and positive signal pin, the interface duplex control device
Side includes the first pin, second pin, the 3rd pin and the 4th pin;
The processor is connected with the condition checkout gear, and the condition checkout gear is also controlled by the SD respectively
Device and the USB controller are connected with the opposite side of the interface duplex control device, the interface duplex control device one
First pin of side is connected with the command pin of the SD interface, and the second pin is described with the SD interface
Clock pins connect, the 3rd pin respectively with described in the data pin of the SD interface and the USB interface
Negative signal pin is connected, and the 4th pin is connected with the positive signal pin of the USB interface;
The condition checkout gear is according to the level signal of the second pin of the interface duplex control device, the described 3rd
The level signal of the level signal of pin and the 4th pin, the state of the SD interface and USB interface is detected, point
Not Huo get the state-detection result of SD interface and the state-detection result of USB interface, by the processor by the state
Testing result and the state-detection result of USB interface are transmitted to the interface duplex control device, pass through the interface duplex
Control device is according to the state-detection result of the SD interface and the state-detection result of USB interface, SD described in switching control
Connected state between interface and the SD controllers, the connected state between the USB interface and the USB controller.
The present invention also provides a kind of multiplexing side of the electronic installation being multiplexed such as above-mentioned SD interface and USB interface of embodiment
Method, comprise the following steps:
By the condition checkout gear according to the level signal of the second pin of the interface duplex control device, described
The level signal of 3rd pin and the level signal of the 4th pin, are examined to the state of the SD interface and USB interface
Survey, obtain the state-detection result of SD interface and the state-detection result of USB interface respectively;
The state-detection result of the state-detection result and USB interface is transmitted to described by the processor and connect
Mouthful multiplexing control device, by described in the interface duplex control device switching control between SD interface and the SD controllers
Connected state between connected state, and the USB interface and the USB controller.
The electronic installation and method being multiplexed by above-mentioned SD interface and USB interface, the of multiplex interface multiplexing control device
Three pins, i.e. the 3rd pin were both connected with the data pin of SD interface, and were connected with the negative signal pin of USB interface, without
Docking port multiplexing control device sets pin respectively to the data pin of SD interface and the negative signal pin of USB interface, reduces
The pin of multiplex interface multiplexing control device is set, so as to reduce the pin of the electronic installation of SD interface and USB interface multiplexing,
Cost is saved, in addition, by interface duplex control device according to the state-detection result of the SD interface and the shape of USB interface
State testing result, the connected state between SD interface described in switching control and the SD controllers, and the USB interface with it is described
Connected state between USB controller, i.e., it can realize that the switching SD interface is controlled with the SD by interface duplex control device
Between device processed, the connected state between the USB interface and the USB controller, so as to which SD interface and USB interface can be realized
Between switching so that above-mentioned SD interface and USB interface multiplexing electronic installation can realize SD interface communicate, can also realize USB
Interface 108 communicates, and reduction pin is cost-effective while can meet difference in functionality demand.
Brief description of the drawings
Fig. 1 is existing SD card structure principle chart;
Fig. 2 is each pinout information figure of SD card in Fig. 1;
Fig. 3 is existing USB interface structure principle chart;
A kind of structure principle chart for the electronic installation that Fig. 4 is multiplexed for the SD interface and USB interface of embodiment;
Fig. 5 is the flow chart of the SD interface and USB interface multiplexing method of a kind of embodiment;
Fig. 6 is the flow chart of the SD interface and USB interface multiplexing method of a specific embodiment;
Fig. 7 is the flow chart of the SD interface and USB interface multiplexing method of another specific embodiment.
Embodiment
Referring to Fig. 4, a kind of SD interface of embodiment and the electronic installation of USB interface multiplexing are provided, including:Processor
101st, condition checkout gear 102, SD controllers 104, USB controller 103, interface duplex control device 105, SD interface 107 with
And usb 1 08, SD interface 107 include command pin Command, clock pins Clock and data pin Data0, USB
Interface 108 includes negative signal pin D- and positive signal pin D+, and the side of interface duplex control device 105 is drawn including first
Pin T1, second pin T2, the 3rd pin T3 and the 4th pin T4.
Processor 101 is connected with condition checkout gear 102, condition checkout gear 102 also respectively by SD controllers 104 with
And USB controller 103 is connected with the opposite side of interface duplex control device 105, the first of the side of interface duplex control device 105
Pin T1 is connected with the command pin Command of SD interface 107, and second pin T2 and the clock pins Clock of SD interface 107 connect
Connect, the 3rd pin T3 connects with the data pin Data0 of SD interface 107 and the negative signal pin D- of usb 1 08 respectively
Connect, the 4th pin T4 is connected with the positive signal pin D+ of usb 1 08.
Level signal of the condition checkout gear 102 according to the second pin T2 of interface duplex control device 105, the 3rd pin
The level signal of T3 level signal and the 4th pin T4, the state of SD interface 107 and usb 1 08 is detected,
The state-detection result of SD interface 107 and the state-detection result of usb 1 08 are obtained respectively, pass through the processor 101
The state-detection result of the state-detection result and USB interface is transmitted to the interface duplex control device 105, passed through
Interface duplex control device 105 is cut according to the state-detection result of SD interface 107 and the state-detection result of usb 1 08
The connected state changed between control SD interface 107 and SD controllers 104, the company between usb 1 08 and USB controller 103
Logical state.
The electronic installation being multiplexed by above-mentioned SD interface and USB interface, the 3rd of multiplex interface multiplexing control device 105 draws
The data pin of pin T3, i.e. the 3rd pin T3 both with SD interface 107 is connected, and is connected with the negative signal pin D- of usb 1 08
Connect, control device 105 is multiplexed to the data pin of SD interface 107 and the negative signal pin D+ of usb 1 08 without docking port
Pin is set respectively, and the pin for reducing multiplex interface multiplexing control device 105 is set, so as to reduce SD interface and USB interface
The pin of the electronic installation of 108 multiplexings, saves cost, in addition, by interface duplex control device 105 according to SD interface 107
The state-detection result of state-detection result and usb 1 08, between switching control SD interface 107 and SD controllers 104
Connected state between connected state, and usb 1 08 and USB controller 103, i.e., can by interface duplex control device 105
Realize between switching SD interface 107 and SD controllers 104, the connected state between usb 1 08 and USB controller 103,
So as to which the switching between SD interface 107 and usb 1 08 can be realized so that above-mentioned SD interface and the electronics dress of USB interface multiplexing
Put achievable SD interface 107 to communicate, can also realize that usb 1 08 communicates, reduction pin is cost-effective while can meet difference
Functional requirement.
In one of the embodiments, the condition checkout gear 102 detects that SD interface 107 is in online and moving type
State, and when not being in communications status, SD controllers corresponding to the interface duplex control device 105 to the SD interface 107
104 send hang-up instruction, and the SD controllers 104 control the SD interface 107 to enter suspended state according to the hang-up instruction,
The condition checkout gear 102 detects usb 1 08 according to the three level signal and the 4th level signal
When having external equipment insertion, USB controller 103 and the usb 1 08 are connected by the interface duplex control device 105,
And the state of usb 1 08 is arranged to active state.
Specifically, when detecting that SD interface 107 is in online and active state, and not being in communications status, mesh is represented
Before to be in the interface of active state be SD interface 107, now, command pin Command, clock pins in SD interface 107
Clock is connected with data pin Data0 by interface duplex control device 105 with SD controllers 104, SD controllers 104
Row data communication can be entered with SD interface 107.Although connection can communicate, simultaneously certain moment need to communicate, i.e., SD connects
Mouthfuls 107 to be in active state etc. to be communicated but not necessarily communicate, and now, can hang up SD interface 107, to usb 1 08
Detected, i.e., when detecting that usb 1 08 has external equipment (USB device) insertion according to three level signal, pass through interface
It is multiplexed control device 105 and connects USB controller 103 and usb 1 08, be i.e. USB controller 10 passes through interface duplex control device
105 connections, and the state of usb 1 08 is arranged to active state, usb 1 08 can be communicated with USB controller 103
, that is, when needing the communication of usb 1 08, usb 1 08 can be logical by interface duplex control device 105 and USB controller 103
Letter.
In this way, the over-over communication of SD interface 107 and usb 1 08 can be realized, interference will not be both produced, and can is real respectively
Existing SD interface 107 and 08 corresponding function of usb 1 so that above-mentioned SD interface and the electronic installation of USB interface multiplexing can be realized
SD interface 107 communicates, and can also realize that usb 1 08 communicates, and reduction pin is cost-effective while can meet difference in functionality need
Ask.
In one of the embodiments, after the activation of usb 1 08 etc. (be active etc. to be communicated) to be communicated,
Can subsequently enter row data communication, after the completion of being communicated, usb 1 08 can be hung up, then, by SD interface 107 from
Suspended state is recovered to active state.
In one of the embodiments, the condition checkout gear 102 detects that SD interface 107 is in online and inactive
During state, the condition checkout gear 102 detects USB according to the three level signal and the 4th level signal
When interface 108 has external equipment insertion, the USB controller 103 and USB is connected by the interface duplex control device 105
Interface 108, and the state of usb 1 08 is arranged to active state.
In one of the embodiments, the condition checkout gear 102 detects that usb 1 08 is in online and non-live
During dynamic state, the condition checkout gear 102 detects that SD interface 107 has external equipment to insert according to the second electrical level signal
It is fashionable, SD controllers 104 and the SD interface 107 are connected by the interface duplex control device 105, and by SD interface 107
State be arranged to active state.
In one of the embodiments, the opposite side of interface duplex control device 105 include first port, second port,
3rd port, the 4th port and fifth port, condition checkout gear 102 by SD controllers 104 respectively with interface duplex control
First port, second port and the 3rd port of device 105 processed connect, and condition checkout gear 102 passes through USB controller 103
It is connected respectively with the 4th port of interface duplex control device 105 and fifth port, is multiplexed and controlled by the control interface of processor 101
When device 105 processed connects SD controllers 104 with SD interface 107, SD controllers 104 are connected by first port and the first pin T1
Connect, be connected by second port with second pin T2, is connected by the 3rd port with the 3rd pin T3, by being multiplexed control device
When 105 connection USB controllers 103 are with usb 1 08, USB controller 103 is connected by the 4th port with the 3rd pin T3, is led to
Fifth port is crossed to be connected with the 4th pin T4.
In one of the embodiments, the electronic installation that above-mentioned SD interface and usb 1 08 are multiplexed also includes decoding dress
To put, processor 101 is connected with SD controllers 104 and USB controller 103 respectively by decoding apparatus, specifically, processor
101 are connected with decoding apparatus, and decoding apparatus is also controlled by SD controllers 104 and USB controller 103 with interface duplex respectively
The opposite side connection of device 105.
When SD controllers 104 are connected by interface duplex control device 105 with SD interface 107, it can be read in SD interface 107
The data of SD card, decoding apparatus are transmitted after being decoded to the data in the SD card of reading to processor 101.USB controller
103 by interface duplex control device 105 with usb 1 08 when being connected, and the data of USB card in usb 1 08 can be read, and is solved
Code device is transmitted to processor 101 after being decoded to the data in the USB card of reading.
Referring to Fig. 5, the present invention also provides a kind of multiplexing side of the electronic installation of above-mentioned SD interface and USB interface multiplexing
Method, comprise the following steps:
S510:Drawn by condition checkout gear according to the level signal of the second pin of interface duplex control device, the 3rd
The level signal of the level signal of pin and the 4th pin, the state of SD interface and USB interface is detected, obtained respectively
The state-detection result of SD interface and the state-detection result of USB interface;
S520:The state-detection result of state-detection result and USB interface is transmitted to interface duplex by processor
Control device, pass through the connected state between interface duplex control device switching control SD interface and SD controllers, and USB interface
Connected state between USB controller.
By above-mentioned SD interface and USB interface multiplexing method, by condition checkout gear according to interface duplex control device
Second pin level signal, the level signal of the 3rd pin and the level signal of the 4th pin, to SD interface and USB
The state of interface is detected, and multiplex interface is multiplexed the 3rd pin of control device, reduces multiplex interface multiplexing control device
Pin is set, so as to save cost, in addition, by interface duplex control device according to the state-detection result of SD interface and
The state-detection result of USB interface, the connected state between switching control SD interface and SD controllers, and USB interface are controlled with USB
Connected state between device processed, i.e., it can be realized between SD interface and SD controllers by interface duplex control device, and USB interface
Connected state between USB controller, so as to which the switching between SD interface and USB interface can be realized so that above-mentioned SD interface
It can realize that SD interface communicates with the electronic installation of USB interface multiplexing, can also realize that USB interface communicates, reduce pin and save cost
While can meet difference in functionality demand.
In one of the embodiments, it is described by interface duplex control device switching control SD interface and SD controllers it
Between connected state, include the step of connected state between USB interface and USB controller:
Detect that SD interface is in online and active state by the condition checkout gear, and be not in communications status
When, sent by the interface duplex control device to SD controllers corresponding to the SD interface and hang up instruction, controlled by the SD
Device processed hangs up instruction and controls the SD interface to enter suspended state according to described, by the condition checkout gear according to described the
Three level signal and the 4th level signal, when detecting that USB interface has external equipment insertion, are controlled by interface duplex
Device connects USB controller and the USB interface, and the state of USB interface is arranged into active state.
In one of the embodiments, it is described by interface duplex control device switching control SD interface and SD controllers it
Between connected state, include the step of connected state between USB interface and USB controller:
When detecting SD interface in online and inactive state by the condition checkout gear, and pass through the state
Detection means detects that USB interface has external equipment insertion according to the three level signal and the 4th level signal
When, USB controller and the USB interface are connected by the interface duplex control device, and the state of USB interface is arranged to
Active state.
In one of the embodiments, it is described by interface duplex control device switching control SD interface and SD controllers it
Between connected state, include the step of connected state between USB interface and USB controller:
When detecting USB interface in online and inactive state by the condition checkout gear, and pass through the shape
State detection means when detecting that SD interface has external equipment insertion, passes through the interface duplex according to the second electrical level signal
Control device connects SD controllers and the SD interface, and the state of SD interface is arranged into active state.
Above-mentioned USB and SD interface multiplexing method process are specifically described with a specific embodiment below.
When carrying out interface duplex using the multiplexing method of the present embodiment, main situation about distinguishing under following several states:
The processing of above-mentioned 8 kinds of situations, the first (Command couples with SD interface of pin T1 are mainly considered in the case of multiplexing
Should), second pin T2 (corresponding with the Clock of SD interface), the 3rd pin T3 is (with the Data0 of the SD interface and D- of USB interface
Correspond to respectively), the 4th pin T4 (corresponding with USB interface D+):Concrete methods of realizing is as follows:
Situation 1:
1.1st, condition checkout gear periodically detects SD card insertion situation, interface duplex control device control second pin T2
By the clock pins Clock connections of resistance and SD interface, whether detection SD interface has whether SD card is inserted.
1.2nd, condition checkout gear periodically detects USB insertion situations, and interface duplex control device controls the 3rd pin
Whether T3 and the 4th pin T4 detection USB interfaces (corresponding with the D- and D+ of USB interface respectively) have USB device insertion.
Situation 2:
2.1st, SD card is online, but not in active state, then condition checkout gear takes 1.2 identical modes to detect USB
Whether interface has USB device insertion.
Situation 3:
3.1st, SD card is online and in active state, then condition checkout gear needs to judge SD interface when detecting USB
Whether be in busy state, i.e. Command, clock pins Clock and data pin Data0 whether just in the communications, if
Busy state i.e. in the communications, then abandons this USB detections, if non-busy state, interface duplex control device is first sent
SD controllers are ordered to control SD card to enter Suspend Mode by it, SD controllers discharge the control to the 3rd pin T3, Ran Houzai
Whether inserted using 1.2 method detection USB, detected rear port, reuse management module sends a command to SD controllers by it
Recover the control to pin 3, and allow SD card to recover again.
Situation 4:
4.1st, USB is online, but not in active state, because condition checkout gear only needs to use second pin T2 electricity
Ordinary mail number judges SD card plug state, then whether condition checkout gear is inserted using 1.1 method detection SD card.
Situation 5:
5.1st, USB is online and in active state, because condition checkout gear only needs to use second pin T2 electricity
Ordinary mail number judges SD card plug state, then whether condition checkout gear is inserted using 1.1 method detection SD.
Situation 6:
6.1st, condition checkout gear periodically detects SD card and extracts situation, interface duplex control device control second pin
Whether the T2 clock pins Clock connections by resistance and SD interface (corresponding with the Clock of SD interface), detection SD card extract.
6.2nd, condition checkout gear periodically detects USB insertion situations, and interface duplex control device is first sent a command to
SD controllers discharge control to the 3rd pin T3, further according to the 3rd pin T3 and the 4th pin T4 (respectively with the D+ of USB interface
It is corresponding with D-) detect whether USB extracts.
Situation 7:
7.1st, SD card is online and in active state, then condition checkout gear needs to judge that SD card is when detecting USB
No to be in busy state, i.e. whether sense command pin Command, clock pins Clock and data pin Data0 are communicating
In, if, abandoning this USB detections in busy state i.e. in the communications, if non-busy state, interface duplex control dress
Put and first send a command to SD controllers and enter Suspend Mode by it, then whether extracted, examined using 6.2 method detection USB again
Survey rear port multiplexing control device transmission command SD controllers and enter reforestation practices by it.
Situation 8:
8.1st, USB is online and in active state, because condition checkout gear only needs to use second pin T2 to sentence
Disconnected SD card plug state, then condition checkout gear whether extracted using 6.1 method detection SD.
It is not powered on when initial, is not inserted into SD card and USB device, i.e. SD interface and USB interface is in off-line state, is opening
Begin after being powered, it is rear to insert exemplified by USB device first to insert SD card.After SD card is inserted, pass through clock pins Clock level
Signal is detectable SD card insertion, i.e. SD card insertion is online, can be by SD interface due to being now also not inserted into USB device
It is to be communicated that state is arranged to active state etc., can also be maintained at online inactive state, referring to Fig. 6, the present embodiment
The process of USB and SD interface multiplexing method is as follows:
(S1.1) whether detection SD card is in active state, if being in active state, performs (S1.2), if not being in work
Dynamic state, then perform (S1.6).
(S1.2) whether detection SD card is in communications status, if not being in communications status, performs (S1.3).
(S1.3) interface duplex control device sends suspending command to SD controllers, and SD controllers control SD card, which enters, to be hung up
State, SD controllers discharge the control to the 3rd pin T3, then perform (S1.4).
(S1.4) condition checkout gear is detected in USB interface according to the 3rd pin T3 and the 4th pin T4 level signal is
No to have USB device insertion, if there is insertion USB device, i.e. USB interface is online, then performs (S1.5).
(S1.5) USB interface is arranged to active state.USB interface and USB controls are connected by interface duplex control device
Device processed.Now, USB interface etc. is to be communicated, and USB interface is connected by interface duplex control device with USB controller, follow-up USB
Interface can be communicated with USB controller.
(S1.6) condition checkout gear is detected in USB interface according to the 3rd pin T3 and the 4th pin T4 level signal is
No to have USB device insertion, if there is insertion USB device, i.e. USB interface is online, and USB interface is arranged into active state.
In addition, first to insert USB device, it is rear to insert exemplified by SD card.Perform following detection and setting up procedure:
(S2.1) whether detection USB device is in presence, if being in presence, performs (S2.2).
(S2.2) whether detection USB device is in active state, if not being in active state, performs (S2.3).
(S2.3) whether condition checkout gear is detected in SD interface according to second pin T2 level signal has SD card is standby to insert
Enter, that is, detect whether SD card is online, if there is insertion SD card, i.e. SD card is online, then perform (S2.4).
(S2.4) SD card is arranged to active state.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics
Shield, all it is considered to be the scope of this specification record.
Above example only expresses several embodiments of the present invention, its describe it is more specific and in detail, but can not be because
This and be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, not
On the premise of departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention.Cause
This, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of SD interface and the electronic installation of USB interface multiplexing, it is characterised in that including:Processor, condition checkout gear,
SD controllers, USB controller, interface duplex control device, SD interface and USB interface, the SD interface include command pin,
Clock pins and data pin, the USB interface include negative signal pin and positive signal pin, the interface duplex control
The side of device processed includes the first pin, second pin, the 3rd pin and the 4th pin;
The processor is connected with the condition checkout gear, the condition checkout gear also respectively by the SD controllers with
And the USB controller is connected with the opposite side of the interface duplex control device, the interface duplex control device side
First pin is connected with the command pin of the SD interface, the clock of the second pin and the SD interface
Pin connect, the 3rd pin respectively with the data pin of the SD interface and the negative pole of the USB interface
Signal pins are connected, and the 4th pin is connected with the positive signal pin of the USB interface;
Level signal of the condition checkout gear according to the second pin of the interface duplex control device, the 3rd pin
Level signal and the 4th pin level signal, the state of the SD interface and USB interface is detected, obtained respectively
The state-detection result of SD interface and the state-detection result of USB interface, by the processor by the state-detection
As a result and the state-detection result of USB interface is transmitted to the interface duplex control device, is controlled by the interface duplex
Device is according to the state-detection result of the SD interface and the state-detection result of USB interface, SD interface described in switching control
With the connected state between the SD controllers, the connected state between the USB interface and the USB controller.
2. SD interface according to claim 1 and the electronic installation of USB interface multiplexing, it is characterised in that the state inspection
When surveying device and detect that SD interface is in online and active state, and not being in communications status, the interface duplex control dress
Put to send to SD controllers corresponding to the SD interface and hang up instruction, the SD controllers are according to the hang-up instruction control
SD interface enters suspended state, the condition checkout gear according to the three level signal and the 4th level signal,
When detecting that USB interface has external equipment insertion, USB controller and the USB are connected by the interface duplex control device
Interface, and the state of USB interface is arranged to active state.
3. SD interface according to claim 1 and the electronic installation of USB interface multiplexing, it is characterised in that the state inspection
When survey device detects SD interface in online and inactive state, the condition checkout gear is according to the three level signal
And the 4th level signal, when detecting that USB interface has external equipment insertion, connected by the interface duplex control device
Logical USB controller and the USB interface, and the state of USB interface is arranged to active state.
4. SD interface according to claim 1 and the electronic installation of USB interface multiplexing, it is characterised in that the state inspection
When survey device detects USB interface in online and inactive state, the condition checkout gear is believed according to the second electrical level
Number, when detecting that SD interface has external equipment insertion, SD controllers and the SD are connected by the interface duplex control device
Interface, and the state of SD interface is arranged to active state.
5. SD interface according to claim 1 and the electronic installation of USB interface multiplexing, it is characterised in that interface duplex control
The opposite side of device processed includes first port, second port, the 3rd port, the 4th port and fifth port, the state inspection
Survey device and pass through the SD controllers first port, the second port and institute with the interface duplex control device respectively
State the 3rd port connection, the condition checkout gear by the USB controller respectively with the interface duplex control device
4th port and fifth port connection, it is described when connecting SD controllers with SD interface by the interface duplex control device
SD controllers are connected by the first port with first pin, are connected by the second port and the second pin
Connect, be connected by the 3rd port with the 3rd pin, being multiplexed control device by the processor control interface connects
When USB controller is with USB interface, the USB controller is connected by the 4th port with the 3rd pin, by described
Fifth port is connected with the 4th pin.
6. SD interface according to claim 1 and the electronic installation of USB interface multiplexing, it is characterised in that also include:Decoding
Device, the processor are connected with the SD controllers and the USB controller respectively by decoding apparatus.
7. the multiplexing method of any one SD interface and the electronic installation of USB interface multiplexing in a kind of such as above-mentioned claim 1-6,
It is characterised in that it includes following steps:
By the condition checkout gear according to the level signal of the second pin of the interface duplex control device, the described 3rd
The level signal of the level signal of pin and the 4th pin, the state of the SD interface and USB interface is detected, point
Huo get not the state-detection result of SD interface and the state-detection result of USB interface;
The state-detection result of the state-detection result and USB interface is transmitted to the interface by the processor and answered
With control device, pass through the connection described in the interface duplex control device switching control between SD interface and the SD controllers
Connected state between state, and the USB interface and the USB controller.
8. the multiplexing method of SD interface according to claim 7 and the electronic installation of USB interface multiplexing, it is characterised in that
The connected state by described in the interface duplex control device switching control between SD interface and the SD controllers, and
The step of connected state between the USB interface and the USB controller, includes:
When detecting that SD interface is in online and active state by the condition checkout gear, and not being in communications status,
Sent by the interface duplex control device to SD controllers corresponding to the SD interface and hang up instruction, by the SD controllers
Suspended state is entered according to the instruction control SD interface of hanging up, by the condition checkout gear according to the described 3rd electricity
Ordinary mail number and the 4th level signal, when detecting that USB interface has external equipment insertion, are controlled by the interface duplex
Device connects USB controller and the USB interface, and the state of USB interface is arranged into active state.
9. according to the method for claim 7, it is characterised in that described to pass through the interface duplex control device switching control
Connected state between the SD interface and the SD controllers, the connection between the USB interface and the USB controller
The step of state, includes:
When detecting SD interface in online and inactive state by the condition checkout gear, and pass through the state-detection
Device when detecting that USB interface has external equipment insertion, leads to according to the three level signal and the 4th level signal
The interface duplex control device connection USB controller and the USB interface are crossed, and the state of USB interface is arranged to activity
State.
10. according to the method for claim 7, it is characterised in that described switched by the interface duplex control device is controlled
Make the connected state between the SD interface and the SD controllers, the company between the USB interface and the USB controller
The step of logical state, includes:
When detecting USB interface in online and inactive state by the condition checkout gear, and examined by the state
Device is surveyed according to the second electrical level signal, when detecting that SD interface has external equipment insertion, is controlled by the interface duplex
Device connects SD controllers and the SD interface, and the state of SD interface is arranged into active state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710501984.5A CN107423242A (en) | 2017-06-27 | 2017-06-27 | SD interface and the electronic installation and method of USB interface multiplexing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710501984.5A CN107423242A (en) | 2017-06-27 | 2017-06-27 | SD interface and the electronic installation and method of USB interface multiplexing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107423242A true CN107423242A (en) | 2017-12-01 |
Family
ID=60427581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710501984.5A Pending CN107423242A (en) | 2017-06-27 | 2017-06-27 | SD interface and the electronic installation and method of USB interface multiplexing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423242A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111241014A (en) * | 2018-11-28 | 2020-06-05 | 聚晶半导体股份有限公司 | Interface transmission module and signal transmission method |
CN112286854A (en) * | 2020-10-12 | 2021-01-29 | 杭州德旺信息技术有限公司 | Multiplexing system, method and storage medium for UART interface and SPI interface |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203405813U (en) * | 2013-08-26 | 2014-01-22 | 四川和通科技有限公司 | UART interface multiplex extension device used for concentrator and collector |
CN103778092A (en) * | 2014-01-06 | 2014-05-07 | 建荣集成电路科技(珠海)有限公司 | USB and SD interface multiplex circuit and multiplex method |
CN204406394U (en) * | 2015-01-26 | 2015-06-17 | 复旦大学无锡研究院 | USB and ADC interface multiplexing circuit |
-
2017
- 2017-06-27 CN CN201710501984.5A patent/CN107423242A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203405813U (en) * | 2013-08-26 | 2014-01-22 | 四川和通科技有限公司 | UART interface multiplex extension device used for concentrator and collector |
CN103778092A (en) * | 2014-01-06 | 2014-05-07 | 建荣集成电路科技(珠海)有限公司 | USB and SD interface multiplex circuit and multiplex method |
CN204406394U (en) * | 2015-01-26 | 2015-06-17 | 复旦大学无锡研究院 | USB and ADC interface multiplexing circuit |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111241014A (en) * | 2018-11-28 | 2020-06-05 | 聚晶半导体股份有限公司 | Interface transmission module and signal transmission method |
CN111241014B (en) * | 2018-11-28 | 2021-07-02 | 聚晶半导体股份有限公司 | Interface transmission module and signal transmission method |
CN112286854A (en) * | 2020-10-12 | 2021-01-29 | 杭州德旺信息技术有限公司 | Multiplexing system, method and storage medium for UART interface and SPI interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103117490B (en) | The control method of usb hub and usb hub | |
CN106104506B (en) | For entering the method, apparatus and computer program product of attachment joint mode in USB c-type interface | |
CN100583076C (en) | Hot plug detection method of mobile memory card | |
CN104657313B (en) | Detecting system and method for universal serial bus device | |
CN104063348B (en) | Realize the device and method of compatible USB communications and voice communication | |
CN101526930A (en) | USB interface master-slave machine detection device and detection method | |
WO2009091193A2 (en) | Mobile terminal for supporting uart communication and usb communication using single connector and operating method for same | |
CN107003974B (en) | Interface detection method and device | |
US20150156089A1 (en) | Data communication interface | |
CN103888873B (en) | Electronic installation, UART output systems and method | |
CN102054370B (en) | USB (universal serial bus) cable controller and electronic reading device using same | |
CN103019991A (en) | Interface system, switching method, USB key and UART terminal | |
CN112799985B (en) | USB interface control method, USB control circuit and intelligent networking equipment mainboard | |
CN107423242A (en) | SD interface and the electronic installation and method of USB interface multiplexing | |
CN104750226B (en) | USB OTG PRSs and method | |
CN103778092A (en) | USB and SD interface multiplex circuit and multiplex method | |
CN104459376B (en) | A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit | |
CN105512085A (en) | Information processing method and electronic equipment | |
CN108664365A (en) | The detection method of the external accessory of a kind of electronic equipment | |
CN204009438U (en) | A kind of intelligent wireless touch control panel with phonetic function | |
CN106294252B (en) | Ultrahigh speed chip interconnection means and its connection control method | |
CN110311436A (en) | A kind of charging circuit and electronic equipment of USB interface | |
CN103218336B (en) | SD/MMC card and IIC from the opertaing device of machine, its control method and control system | |
CN201667067U (en) | USB interface | |
CN101827157B (en) | Automatic detection and recognition method of electronic device, electronic system and peripheral device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |
|
RJ01 | Rejection of invention patent application after publication |