CN201628975U - IIC memory card read-write device with SPI interface - Google Patents

IIC memory card read-write device with SPI interface Download PDF

Info

Publication number
CN201628975U
CN201628975U CN2009202819712U CN200920281971U CN201628975U CN 201628975 U CN201628975 U CN 201628975U CN 2009202819712 U CN2009202819712 U CN 2009202819712U CN 200920281971 U CN200920281971 U CN 200920281971U CN 201628975 U CN201628975 U CN 201628975U
Authority
CN
China
Prior art keywords
interface
spi
iic
memory card
card reader
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.)
Expired - Fee Related
Application number
CN2009202819712U
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.)
Shandong Inspur Software Co Ltd
Original Assignee
Shandong Inspur Software Co 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 Shandong Inspur Software Co Ltd filed Critical Shandong Inspur Software Co Ltd
Priority to CN2009202819712U priority Critical patent/CN201628975U/en
Application granted granted Critical
Publication of CN201628975U publication Critical patent/CN201628975U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model provides an IIC memory card read-write device with an SPI interface. The device comprises a power supply, a crystal oscillator, an LED indicator lamp, the SPI interface, a processor (MCU) and a memory card reader with an IIC interface, wherein the power supply, the crystal oscillator, the LED indicator lamp, the SPI interface and the memory card reader with the IIC interface are connected with the MCU through data lines, so that the operations on the memory card reader with the IIC interface can be realized through the communication between the SPI interface and a processor (CPU) of equipment; the memory card reader with the IIC interface and the MCU serve as an SPI slave computer and an SPI host computer respectively; the memory card reader with the IIC interface is connected with the MCU through an SPI bus to realize SPI communication; and the MCU is used for receiving data sent by the CPU of the equipment through the communication interface connection between the SPI interface and the CPU, resolving commands and parameters for operating an IIC card according to a pre-agreed format, and converting the commands and parameters into the IIC protocol format for corresponding operations on a memory card on the IIC interface.

Description

A kind of IIC memory card read/write device with the SPI interface
Technical field
The utility model relates to a kind of tax controlling equipment, specifically a kind of IIC memory card read/write device with the SPI interface.
Background technology
The card reader majority is communicated by letter with miscellaneous equipment as interface with serial ports or USB at present.
In system, serial port resource is limited, but is to use very frequently, and a lot of devices and peripheral hardware use serial ports and devices communicating, and this has just caused the in short supply of serial port resource.Frequent switching serial equipment not only causes damage but also the exploitation of influence or the efficient of use of interface easily.
USB interface does not have integrated in some middle and high shelves CPU, need add the USB chip if want to realize usb communication, and in internal system, usb communication is seldom adopted in communicating by letter of CPU and other components and parts.
In addition, portion C PU does not have the IIC communication interface, and its GPIO can not be arranged to the transmitted in both directions pattern of input and output, can not Simulation with I IC communication, components and parts that therefore can not direct control IIC interface.
Summary of the invention
A kind of IIC memory card read/write device with the SPI interface of the present utility model is realized in the following manner, its structure is made up of power supply, crystal oscillator, LED light, SPI interface, processor MCU and IIC interface memory card card reader, power supply, crystal oscillator, LED light, SPI interface and IIC interface memory card card reader are connected with processor MCU by data line, utilize the SPI interface and processor CPU communicate to connect, realization is operated being connected on the IIC interface memory card card reader storage card, wherein
IIC interface memory card card reader is set to the SPI slave, processor MCU is set to the SPI main frame, IIC interface memory card card reader is connected to processor MCU by spi bus, realize SPI communication, the function of processor MCU is to be connected with the processor CPU communication interface of equipment by the SPI interface, the data that receiving processor MCU sends, and the order and the parameter that go out to operate IC-card according to the format analysis of appointing in advance, the protocol format that converts IIC then to is operated accordingly to the storage card on the IIC interface.
Excellent effect of the present invention is: overcome the deficiency that prior art exists, develop a kind of card reader of read-write IIC storage card that can external SPI interface that again can be built-in, to save serial port resource, the unmatched problem of solution interface.
Description of drawings
Fig. 1 is the circuit theory diagrams of card reader.
Embodiment:
Below in conjunction with the drawings and specific embodiments the utility model is described further:
A kind of IIC memory card read/write device with the SPI interface as shown in Figure 1, comprises power supply, crystal oscillator, and LED light, the SPI interface, processor and IIC interface memory card card reader are formed.Described card reader utilizes the SPI interface to communicate by letter with the CPU of equipment, realizes the operation to IC-card.Card reader is set to the SPI slave, and the CPU of described equipment is set to the SPI main frame, and card reader is connected to the CPU of equipment by spi bus, realizes SPI communication.
Processor is middle-grade or low-grade MCU, can communicate by letter with IIC interface realization SPI by the SPI interface that carries and communicate by letter with IIC, maybe can simulate SPI interface or IIC interface realization SPI communication or IIC communication by GPIO.The function of processor is to communicate by letter with the CPU of equipment by the SPI interface, receive the data that CPU sends, and the order and the parameter that go out to operate IC-card according to the format analysis of appointing in advance, the protocol format that converts IIC then to is operated accordingly to the storage card of IIC interface.
Processor MCU realizes communicating by letter with SPI by the SPI interface that carries and IIC interface and communicates by letter with IIC, or simulates the SPI interface or the realization of IIC interface is communicated by letter with SPI or IIC communicates by letter by GPIO.
LED is the card reader relay indicating light, and when card reader was worked, LED is luminous to be produced and maintenance with convenient.
Embodiment
Card reader of the present utility model is by power supply, crystal oscillator, and LED light, the SPI interface, processor and IIC interface memory card card reader are formed.
Typical embodiment of the present utility model is that system is built-in.SPI interface among the figure directly is connected with the SPI interface of CPU, can realize that the communication of many slaves of single host communicates by letter with single host list slave.The CS of SPI can omit and not connect when being configured to the communication of single host list slave.When adopting external mode, system will reserve the SPI interface.
After processor receives the data that the SPI main frame sends, according to data layout resolve command and the parameter appointed with main frame, so, require when the program of exploitation CPU, will cooperate with card reader and carry out.In addition, the basic communication agreement of SPI and IIC is all fairly simple, has just repeated no more here.
During this card reader is utilized, low-grade MCU is as processor, realized the conversion of SPI agreement and IIC agreement, solved the unmatched problem of interface, saved serial port resource, it is low to have a cost, portable strong advantage.

Claims (3)

1. IIC memory card read/write device with the SPI interface, it is characterized in that, comprise power supply, crystal oscillator, LED light, SPI interface, processor MCU and IIC interface memory card card reader, power supply, crystal oscillator, LED light, SPI interface and IIC interface memory card card reader are connected with processor MCU by data line, utilize the SPI interface to communicate by letter with processor CPU, realization is to the operation of IIC interface memory card card reader, wherein:
IIC interface memory card card reader is set to the SPI slave, and processor MCU is set to the SPI main frame, and IIC interface memory card card reader is connected to processor MCU by spi bus, realizes SPI communication.
2. card reader according to claim 1 is characterized in that, processor MCU realizes communicating by letter with SPI by the SPI interface that carries and IIC interface and communicates by letter with IIC, or simulates the SPI interface or the realization of IIC interface is communicated by letter with SPI or IIC communicates by letter by GPIO.
3. card reader according to claim 1 is characterized in that, LED is the card reader relay indicating light.
CN2009202819712U 2009-11-30 2009-11-30 IIC memory card read-write device with SPI interface Expired - Fee Related CN201628975U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009202819712U CN201628975U (en) 2009-11-30 2009-11-30 IIC memory card read-write device with SPI interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009202819712U CN201628975U (en) 2009-11-30 2009-11-30 IIC memory card read-write device with SPI interface

Publications (1)

Publication Number Publication Date
CN201628975U true CN201628975U (en) 2010-11-10

Family

ID=43060371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009202819712U Expired - Fee Related CN201628975U (en) 2009-11-30 2009-11-30 IIC memory card read-write device with SPI interface

Country Status (1)

Country Link
CN (1) CN201628975U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142093A (en) * 2011-03-24 2011-08-03 青岛海信移动通信技术股份有限公司 Operation method and device for memory card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142093A (en) * 2011-03-24 2011-08-03 青岛海信移动通信技术股份有限公司 Operation method and device for memory card

Similar Documents

Publication Publication Date Title
CN103200081B (en) A kind of things-internet gateway development platform towards heterogeneous network environment
CN204028959U (en) A kind of portable IC card supplements read write line with money
CN102637453B (en) Phase change memory including serial input/output interface
CN105891764A (en) Watt-hour meter data intelligent reading-writing device and watt-hour meter data intelligent reading-writing method based on Bluetooth communication
CN102801818A (en) Universal sensor interface acquisition system based on ZigBee technology
CN203084709U (en) Multifunctional development board of Internet of Things system
CN102445981B (en) Data transmission system and data transmission method
CN205247378U (en) PS2 interface changes USB interface converter based on singlechip
CN203167288U (en) Internet of Things gateway development platform facing heterogeneous network environments
CN203278279U (en) Multifunctional mobile power supply
CN101719053A (en) Method for reading IIC storage card by SPI interface
CN202887106U (en) Novel multifunctional computer keyboard
CN201628975U (en) IIC memory card read-write device with SPI interface
CN205826852U (en) A kind of electric energy meter data intelligence read-write equipment based on bluetooth communication
CN204066271U (en) A kind of device customized towards POS or scale of tracing to the source
CN206162511U (en) Adjustable serial module of multichannel of compatible X86 and ARM framework platform
CN204613818U (en) A kind of handheld terminal based on COM-Express module
CN103970706A (en) External expansion system of mobile device based on FT311D interface chip
CN103218334A (en) Computer peripheral cascade device based on USB (Universal Serial Bus) and RS485 bus
CN102855217A (en) Universal core board of front-end computer and front-end computer with universal core board
CN105243829B (en) Portable analog meter module
CN205353855U (en) Embedded computer main board
CN214151694U (en) Low-power-consumption small-size handheld flat mainboard based on SCM core module
CN213302800U (en) Low-power consumption singlechip development board
CN203799373U (en) Difunctional USB equipment

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101110

Termination date: 20121130