CN204143439U - Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card - Google Patents

Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card Download PDF

Info

Publication number
CN204143439U
CN204143439U CN201420622732.XU CN201420622732U CN204143439U CN 204143439 U CN204143439 U CN 204143439U CN 201420622732 U CN201420622732 U CN 201420622732U CN 204143439 U CN204143439 U CN 204143439U
Authority
CN
China
Prior art keywords
card
module
analog switch
usb
speed analog
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.)
Active
Application number
CN201420622732.XU
Other languages
Chinese (zh)
Inventor
许云龙
刘晨亮
李传喜
吴玉娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangtai Medical System (qinhuangdao) Ltd By Share Ltd
Contec Medical Systems Co Ltd
Original Assignee
Kangtai Medical System (qinhuangdao) Ltd By Share Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Kangtai Medical System (qinhuangdao) Ltd By Share Ltd filed Critical Kangtai Medical System (qinhuangdao) Ltd By Share Ltd
Priority to CN201420622732.XU priority Critical patent/CN204143439U/en
Application granted granted Critical
Publication of CN204143439U publication Critical patent/CN204143439U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The utility model discloses the commutation circuit that a kind of single-chip microcomputer and USB host computer read and write SD card, comprise SD card, one-chip computer module, card reader module, high-speed analog switch module, USB upper computer detection module, power switching module, one-chip computer module connects a circuit-switched data port and the port selection control end of high-speed analog switch module, high-speed analog switch module and SD card are bi-directionally connected, card reader module input end connects another circuit-switched data port of high-speed analog switch module, USB upper computer detection module output terminal connects one-chip computer module input end, power switching module input end connects one-chip computer module output terminal, power switching module output terminal connects SD card.The utility model adopts Single-chip Controlling high-speed analog switch, switch the connected mode of SD card, when solving band SD card apparatus and USB upper machine communication, communication speed is low, even need to take off the problem that SD card card reader special reads data, the utility model not only data rate is high, and structure is simple, processing ease.

Description

Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card
Technical field
The utility model relates to a kind of SD card data high-speed read/write circuit, and especially a kind of single-chip microcomputer and USB host computer read and write the commutation circuit of SD card.
Background technology
In recent years, due to the progress of science and technology, the equipment of its own band SD card comes into huge numbers of families, SD card is not had by initial, there is SD card till now, greatly facilitate daily life, and some equipment self-carried USB can directly communicate with USB upper computer equipment, when but these equipment communicate with USB upper computer equipment, especially do not need to read SD card data at some, check on the equipment of SD card data, in reading or when checking SD card data, a kind of data being single-chip microcomputer and reading SD card, then after single-chip microcomputer process, USB host computer is sent to by USB again, transmission speed is slow.One SD card must be taken out, and reads SD card with card reader special, and this kind equipment SD data read operation is complicated, and inconvenient user uses.
Utility model content
The commutation circuit that the utility model technical issues that need to address are to provide that a kind of structure is simple, the single-chip microcomputer of processing ease and USB host computer read and write SD card, this circuit single-chip microcomputer can carry out high-speed read-write to SD card, when accessing USB host computer, Single-chip Controlling SD card is connected with host computer, realizes high-speed read-write.
For solving the problems of the technologies described above, the technical scheme that the utility model adopts is:
A kind of single-chip microcomputer and USB host computer read and write the commutation circuit of SD card, comprise SD card, one-chip computer module, card reader module, high-speed analog switch module, USB upper computer detection module, power switching module, wherein, one-chip computer module connects a circuit-switched data port and the port selection control end of high-speed analog switch module, high-speed analog switch module and SD card are bi-directionally connected, card reader module input end connects another circuit-switched data port of high-speed analog switch module, USB upper computer detection module output terminal connects one-chip computer module input end, power switching module input end connects one-chip computer module output terminal, power switching module output terminal connects SD card.
Further improvement of the utility model is: the output signal of described USB upper computer detection module is low and high level signal, is high level when there being USB host computer, otherwise is low level.Described high-speed analog switch module switch speed > 500MHz.
Described one-chip computer module completes following function: 1, when receive testing circuit to high level time, SD card is connected with USB card reader circuit by controlling pin control high-speed analog switch by single-chip microcomputer, power on again to after the time delay of SD card power cut-off simultaneously, make SD be stuck in USB host computer and be identified as a high speed mass storage memory device, read at a high speed the data in SD card.2, when receive testing circuit to low level time, single-chip microcomputer is directly connected with SD card by controlling pin control high-speed analog switch, power on to after the time delay of SD card power cut-off, single-chip microcomputer writes data with SPI or SDIO communication mode in SD card simultaneously again.
Described high-speed analog switch module is single-pole double-throw type high speed analog signal handover module, for switching the connected mode of SD card, control is selected to be connected with single-chip microcomputer or be connected with card reader by single-chip microcomputer, its switching speed > 500MHz.
In order to ensure data communication degree of stability when interrogating with SD cartoon, minimizing makes mistakes, and improves reading speed, the data line in the circuit between SD card and high-speed analog switch module arranges pull-up resistor.
Owing to have employed technique scheme, the technical progress that the utility model obtains is:
The utility model adopts Single-chip Controlling high-speed analog switch, switch the connected mode of SD card, when connect USB upper machine-readable time, SD is connected with USB host computer by high speed card reader, realize the read-write operation of host computer to SD card, when there is no host computer, single-chip microcomputer connects SD card by high-speed analog switch, write data, single-chip microcomputer is the single-chip microcomputer of equipment self, when solving band SD card apparatus and USB upper machine communication, communication speed is low, even need to take off the problem that SD card card reader special reads data, the utility model not only data rate is high, and structure is simple, processing ease.
Accompanying drawing explanation
Fig. 1 is the utility model theory diagram;
Fig. 2 is utility model works process flow diagram.
Embodiment
Below in conjunction with embodiment, the utility model is described in further details:
The utility model is a kind of circuit realizing high speed communication for self-carried USB interfacing equipment and host computer, for medicine equipment and instrument field exploitation.During equipment and USB upper machine communication due to existing self-carried USB interface, host computer read-write SD card speed is very slow, if take out the read-write of SD card card reader special, operates pretty troublesome.Inventors have developed a kind of a kind of circuit being applied in medicine equipment and instrument field, namely a kind of single-chip microcomputer and USB host computer read and write the commutation circuit of SD card, when microprocessor detect is to when having USB upper computer equipment to connect, SD card is switched to and is connected with equipment internal USB card reader circuit by Single-chip Controlling high-speed analog switch, power on again to after the time delay of SD card power cut-off simultaneously, make SD be stuck in USB host computer and be identified as a high speed mass storage memory device, host computer procedure can high-speed read-write SD card.The USB interface high-speed read-write SD card that this circuit can allow user utilize equipment to carry, solves the transmission of equipment self-carried USB slowly, or needs numerous and diverse operation of taking off SD card card reader special read-write SD card from equipment.
As shown in Figure 1, the utility model comprises SD card, one-chip computer module, card reader module, high-speed analog switch module, USB upper computer detection module, power switching module, wherein, one-chip computer module connects a circuit-switched data port and the port selection control end of high-speed analog switch module, it is the control core part of this circuit, control end is selected to control the switching of high-speed analog switch by port, control the power-off of SD card power supply by power switching module and power on, writing the data of FAT16 or FAT32 form with SPI or SDIO communication mode to SD card.Card reader module (at a high speed) input end connects another circuit-switched data port of high-speed analog switch module, and this module is circuit SD card interface being changed into USB interface, and USB host computer reads the data in SD card fast by built-in high speed USB card reader circuit; High-speed analog switch module common data port and SD card are bi-directionally connected, and read-write SD card data, high-speed analog switch module switches SD fast to link the Key Circuit connecing single-chip microcomputer or card reader, switches and control to have been come by single-chip microcomputer.USB upper computer detection module output terminal connects one-chip computer module input end, the host computer of band USB whether is had to be attached thereto, when the host computer of band USB being detected, to single-chip microcomputer one high level for detecting, Single-chip Controlling high-speed analog switch module, makes SD card be connected with card reader; When the host computer of band USB not detected, to single-chip microcomputer one low level, Single-chip Controlling high-speed analog switch module, makes SD card be connected with single-chip microcomputer.Power switching module input end connects one-chip computer module output terminal, and its output terminal connects SD card, by the control of single-chip microcomputer, powers on again, realize restarting of SD card to SD card after carrying out power cut off delay.
Described high-speed analog switch module is single-pole double-throw type high speed analog signal handover module, for switching the connected mode of SD card, control is selected to be connected with single-chip microcomputer or be connected with card reader by single-chip microcomputer, its switching speed > 500MHz.
In order to ensure data communication degree of stability when interrogating with SD cartoon, minimizing makes mistakes, and improves reading speed, the data line in the circuit between SD card and high-speed analog switch module arranges pull-up resistor.
Principle of work:
When equipment does not connect USB host computer time, single-chip microcomputer is linked by high-speed analog switch and SD and connects, power on again to after the time delay of SD card power cut-off, reach the object of restarting SD card, then be FAT16 or FAT32 file layout by SD card initialization, single-chip microcomputer writes data with SPI or SDIO communication mode in SD card.When microprocessor detect is to when having USB upper computer equipment to connect, SD card is switched to and is connected with equipment internal USB card reader circuit by Single-chip Controlling high-speed analog switch, power on again to after the time delay of SD card power cut-off simultaneously, make SD be stuck in USB host computer and be identified as a high speed mass storage memory device, host computer procedure can high-speed read-write SD card.After equipment and USB host computer disconnect, repeat above process, its process flow diagram as shown in Figure 2.
Each module work principle and effect:
Card reader module, when microprocessor detect is to when having USB upper computer equipment to connect, SD card is switched to and is connected with equipment internal USB card reader circuit by Single-chip Controlling high-speed analog switch, power on again to after the time delay of SD card power cut-off simultaneously, make SD be stuck in USB host computer and be identified as a high speed mass storage memory device, host computer procedure can high-speed read-write SD card.
SD data line card adds pull-up resistor, ensure that the reliability that data are transmitted.
USB upper computer detection module: be connected with single-chip microcomputer, whether have the host computer of band USB to be attached thereto for detecting, when the host computer of band USB being detected, to single-chip microcomputer one high level, single-chip microcomputer performs corresponding operation; When the host computer of band USB not detected, to single-chip microcomputer one low level, single-chip microcomputer performs corresponding operation.
One-chip computer module: 1, when receive testing circuit to high level time, SD card is connected with USB card reader circuit by controlling pin control high-speed analog switch by single-chip microcomputer, power on again to after the time delay of SD card power cut-off simultaneously, make SD be stuck in USB host computer and be identified as a high speed mass storage memory device, read at a high speed the data in SD card.2, when receive testing circuit to low level time, single-chip microcomputer is directly connected with SD card by controlling pin control high-speed analog switch, power on to after the time delay of SD card power cut-off, single-chip microcomputer writes data with SPI or SDIO communication mode in SD card simultaneously again.
High-speed analog switch module: by the control of single-chip microcomputer, selects to link with SD the mode connect.
Power switching module: by the control of single-chip microcomputer, powers on after carrying out power cut off delay again, reach the object of restarting SD card to SD card.
Application example:
Below that the utility model is applied in and Holter carries out 24 hours acquisition and recording data to patient and uploads the process step of the concrete instance of analysis;
When equipment does not connect USB host computer, single-chip microcomputer is linked by high-speed analog switch and SD and connects, simultaneously to the object reaching and restart SD card that powers on again after the time delay of SD card power cut-off, then be FAT16 or FAT32 file layout by SD card initialization, data after process are stored in SD card with the communication mode of SPI by single-chip microcomputer, when microprocessor detect is to when having computer by USB data line and this equipment connection, single-chip microcomputer is switched high-speed analog switch and is connected with computer by USB data line by card reader circuit by SD card, the control powered on after simultaneously power cut off delay being carried out to the power supply of SD card, SD card is made to be identified as a high speed mass storage memory device on computers, computer carries out analyzing and processing to the data read by the upper computer software of supporting Holter, upload rear user can watch ecg wave form and carry out analyzing and processing, finally present to user in the mode of report.After equipment and USB host computer disconnect, single-chip microcomputer is linked by high-speed analog switch and SD and connects, and powers on to restart SD card to after the time delay of SD card power cut-off simultaneously again, and single-chip microcomputer and SD cartoon news, by that analogy, repeat said process.

Claims (3)

1. a single-chip microcomputer and USB host computer read and write the commutation circuit of SD card, it is characterized in that: comprise SD card, one-chip computer module, card reader module, high-speed analog switch module, USB upper computer detection module, power switching module, wherein, one-chip computer module connects a circuit-switched data port and the port selection control end of high-speed analog switch module, high-speed analog switch module and SD card are bi-directionally connected, card reader module input end connects another circuit-switched data port of high-speed analog switch module, USB upper computer detection module output terminal connects one-chip computer module input end, power switching module input end connects one-chip computer module output terminal, power switching module output terminal connects SD card.
2. single-chip microcomputer according to claim 1 and USB host computer read and write the commutation circuit of SD card, it is characterized in that the output signal of described USB upper computer detection module is low and high level signal, are high level, otherwise are low level when there being USB host computer.
3. single-chip microcomputer according to claim 1 and USB host computer read and write the commutation circuit of SD card, it is characterized in that described high-speed analog switch module switch speed > 500MHz.
CN201420622732.XU 2014-10-27 2014-10-27 Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card Active CN204143439U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201420622732.XU CN204143439U (en) 2014-10-27 2014-10-27 Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201420622732.XU CN204143439U (en) 2014-10-27 2014-10-27 Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card

Publications (1)

Publication Number Publication Date
CN204143439U true CN204143439U (en) 2015-02-04

Family

ID=52420113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201420622732.XU Active CN204143439U (en) 2014-10-27 2014-10-27 Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card

Country Status (1)

Country Link
CN (1) CN204143439U (en)

Similar Documents

Publication Publication Date Title
US8086791B2 (en) Solid state memory device with PCI controller
US7802043B2 (en) Methods and apparatus for adding an autonomous controller to an existing architecture
CN104168119B (en) adapter card
CN104318280A (en) Method for reading and writing SD card by upper computer via USB
US9324444B2 (en) Data storage device
US11126382B2 (en) SD card-based high-speed data storage method
CN104485962B (en) A kind of Portable Data-Acquisition System and its acquisition method
CN202584143U (en) A read-only card reader with multiple interfaces
US10817405B2 (en) Storage device and debugging system thereof
CN201000623Y (en) Dual-interface flash memory card
KR20210014365A (en) Controller and operating method thereof
CN104123246A (en) Interface expansion device and serial attached SCSI expander
CN204143439U (en) Single-chip microcomputer and USB host computer read and write the commutation circuit of SD card
US20230169028A1 (en) Bridge device and data storage system
CN104932993A (en) Stable hot plug driving method and apparatus as well as hot plugging supporting device
CN102567270A (en) USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter
CN205028281U (en) Multi -functional solid state hard drives
CN205318366U (en) Firmware burns writes device
US10120828B2 (en) Bridge for bus-powered peripheral device power management
CN108153695A (en) Computer system
CN203966113U (en) The USB device that a kind of intelligence of the principal and subordinate for telemetry terminal system is switched
CN208922245U (en) A kind of low power consumption data record and high-speed data transmission apparatus
CN201654787U (en) Data collecting device based on USB
CN201698252U (en) Memory module accommodating system
CN204155181U (en) The outer cryopreservation device of a kind of computing machine

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant