CN115294702A - Connecting circuit supporting connection of multiple SAM cards to microcontroller - Google Patents
Connecting circuit supporting connection of multiple SAM cards to microcontroller Download PDFInfo
- Publication number
- CN115294702A CN115294702A CN202210812256.7A CN202210812256A CN115294702A CN 115294702 A CN115294702 A CN 115294702A CN 202210812256 A CN202210812256 A CN 202210812256A CN 115294702 A CN115294702 A CN 115294702A
- Authority
- CN
- China
- Prior art keywords
- sam
- circuit
- microcontroller
- psam
- sam card
- 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
- 239000003990 capacitor Substances 0.000 claims description 18
- 102100038591 Endothelial cell-selective adhesion molecule Human genes 0.000 claims description 9
- 101000882622 Homo sapiens Endothelial cell-selective adhesion molecule Proteins 0.000 claims description 9
- 239000011324 bead Substances 0.000 claims description 9
- 229910044991 metal oxide Inorganic materials 0.000 claims description 3
- 150000004706 metal oxides Chemical class 0.000 claims description 3
- 239000004065 semiconductor Substances 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0018—Constructional details, e.g. of drawer, printing means, input means
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0036—Checkout procedures
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention relates to the technical field of bus electronic payment, and provides a connecting circuit supporting a plurality of SAM (serial access memory) cards to be connected to a microcontroller, which comprises: the SAM card interface circuit is connected with the SAM card power supply circuit and the SAM card read-write circuit; the microcontroller controls the SAM card power supply circuit to supply power to the SAM card read-write circuit and the SAM card interface circuit; the SAM card read-write circuit is connected with the microcontroller through at least four signal lines and communicates with the microcontroller through an I2C interface to realize the operation of each SAM card so as to reduce the occupation of an I/O (input/output) interface of the microcontroller; the SAM card read-write circuit is connected with at least five SAM cards through an SAM card interface circuit; the SAM card interface circuit comprises an interface circuit and an electrostatic protection circuit, and the electrostatic protection circuit is connected with at least three SAM cards. The invention can realize the purpose of connecting a plurality of SAM cards and reducing the number of I/O ports on the microcontroller occupied by SAM card signals.
Description
Technical Field
The invention relates to the technical field of bus electronic payment, in particular to a connecting circuit supporting connection of a plurality of SAM (serial access memory) cards to a microcontroller.
Background
In recent years, with the development of urban public transport, the types of cards supported by vehicle-mounted POS terminals of the urban public transport are increasing, and the number of cards to be carried by urban residents is reduced. The key of each card is different, and the card swiping machine is required to be provided with a corresponding SAM card, so that the card swiping machine can support different types of cards. At present, a plurality of SAM cards are connected to a microcontroller, and signals of different SAM cards are generally directly connected to the microcontroller, and this connection mode not only occupies more I/O ports of the microcontroller, but also requires complex instructions to control different SAM cards.
Disclosure of Invention
The invention mainly solves the technical problems that the prior art occupies more I/O ports of a microcontroller and needs complex instructions to control different SAM cards, and provides a connecting circuit supporting a plurality of SAM cards to be connected to the microcontroller so as to achieve the purpose of reducing the number of the I/O ports on the microcontroller occupied by SAM card signals while connecting the plurality of SAM cards.
The invention provides a connecting circuit for supporting a plurality of SAM cards to be connected to a microcontroller, which comprises: the SAM card interface circuit is used for providing power supply for 3.3V/5V; the microcontroller controls the SAM card power supply circuit to supply power to the SAM card read-write circuit and the SAM card interface circuit; the SAM card read-write circuit is connected with the microcontroller through at least four signal lines and communicates with the microcontroller through an I2C interface to realize the operation of each SAM card so as to reduce the occupation of an I/O (input/output) interface of the microcontroller; the SAM card reading and writing circuit is connected with at least five SAM cards through the SAM card interface circuit; the SAM card interface circuit comprises an interface circuit and an electrostatic protection circuit, and the electrostatic protection circuit is connected with at least three SAM cards.
Further, the SAM card read-write circuit communicates with the microcontroller through four signal lines, wherein SCL and SDA of the SAM card read-write circuit are connected to I2C _ SCL and I2C _ SDA of the microcontroller through resistors R37 and R38 and pull-up resistors R5 and R40, the reset signal RST is connected to a reset pin PSAM _ RST of the microcontroller through a pull-up resistor R16, and the interrupt signal INT is connected to an interrupt pin PSAM _ INT of the microcontroller through a pull-up resistor R15.
Further, the SAM card interface circuit comprises J3, J11 and J12 of a PSAM card connector and U1 and U5 of an ESAM chip, each SAM card is composed of a power supply VCC, GND, a clock signal CLK, a reset signal RST and a data signal IO, and the CLK, RST and IO of each PSAM card connector are respectively connected to the SAM card read-write circuit and connected to the U11, U8 and U12 of the SAM card interface circuit.
Furthermore, the SAM card read-write circuit is connected with the SAM card through five channels, wherein the first channel, the third channel, the fourth channel, the third channel, the fourth channel, the fifth channel and the PSAM card connectors J3, J11 and J12 are connected, and the fourth channel, the fifth channel, the fourth channel, the fifth channel and the U1 and U5 of the ESAM chip are connected.
Further, the signals of the SAM card include a data signal IO, a reset signal RST, and a clock signal CLK; the data signal IO and the reset signal RST are respectively connected with SAMIO and SAMRST of five channels of the SAM card read-write circuit, the clock signal CLK of each SAM card is connected to CLKOUT _ R of U3, and RST4 and IO4 of a fourth channel are respectively connected to RST and IO on the ESAM chip U1 through pull-up resistors.
Further, the microcontroller sends a command to the SAM card read-write circuit through an I2C interface to operate each SAM card, resets the SAM card read-write circuit through a PSAM _ RST, and completes an execution instruction through a PSAM _ INT.
Furthermore, the SAM card power supply circuit comprises an SIMVCC for supplying power to the SAM card and a PSAM-5V for supplying power to the SAM read-write chip; the SIMVCC power supply is 5V of PSAM _5V or 3.3V of PSAM _ VDD through magnetic beads FB1 and FB 15; PSAM _ VDD and PSAM _5V both control the on-off of the power supply through a control pin PSAM _ EN of the microcontroller; PSAM _ VDD is derived from VDDA _3V3, PSAM _EN, and the switch of the PSAM _ VDD is controlled by a control circuit consisting of a resistor R68, a pull-down resistor R69, a triode Q6, resistors R10 and R1 and an MOS tube T2; the filtered signal is output after being filtered by a capacitor C3, a magnetic bead FB8, a capacitor C12 and a capacitor C91; PSAM _5V comes from +5V, PSAM _5Vcontrols the on-off of a power supply through a control circuit consisting of a resistor R30, a pull-down resistor R31, a triode Q8, resistors R28 and R29 and an MOS (metal oxide semiconductor) tube T1, and is filtered by a capacitor C15, a magnetic bead FB2, a capacitor C16 and a capacitor C17 and then output.
The connecting circuit supporting a plurality of SAM cards to be connected to the microcontroller can simultaneously support at least 5 SAM card operations through the improved SAM card read-write circuit and is communicated with the microcontroller through an I2C interface, thereby achieving the purpose of reducing the number of I/O ports on the microcontroller occupied by SAM card signals. Meanwhile, the SAM card read-write circuit adopts a high-performance ASIC processor, so that a user does not need to care about a complex control method, and can realize the complete operation of the SAM card only by sending a command through a simple IIC interface.
Drawings
FIG. 1 is a general block diagram of the connection circuit of the present invention supporting multiple SAM cards connected to a microcontroller;
fig. 2 is a circuit configuration diagram of the SAM card read-write circuit of the present invention;
FIG. 3 is a circuit configuration diagram of the SAM card interface circuit of the present invention;
fig. 4 is a circuit configuration diagram of a SAM card power supply circuit of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
As shown in fig. 1, fig. 2, and fig. 3, the connection circuit supporting connection of multiple SAM cards to a microcontroller according to an embodiment of the present invention includes: the SAM card interface circuit is used for providing power supply for 3.3V/5V; the microcontroller controls the SAM card power supply circuit to supply power to the SAM card read-write circuit and the SAM card interface circuit; the SAM card read-write circuit is connected with the microcontroller through at least four signal lines and is communicated with the microcontroller through an I2C interface to realize the operation of each SAM card so as to reduce the occupation of an I/O (input/output) interface of the microcontroller; the SAM card read-write circuit is connected with at least five SAM cards through an SAM card interface circuit; the SAM card interface circuit comprises an interface circuit and an electrostatic protection circuit, wherein the electrostatic protection circuit is connected with at least three SAM cards.
In this embodiment, as shown in fig. 2, the SAM card read/write circuit communicates with the microcontroller through four signal lines, wherein the SCL and SDA of the SAM card read/write circuit are connected to the I2C _ SCL and I2C _ SDA of the microcontroller through resistors R37 and R38 and pull-up resistors R5 and R40, the reset signal RST is connected to the reset pin PSAM _ RST of the microcontroller through a pull-up resistor R16, and the interrupt signal INT is connected to the interrupt pin PSAM _ INT of the microcontroller through a pull-up resistor R15.
In this embodiment, as shown in fig. 3, the SAM card interface circuit includes J3, J11, J12 of the PSAM card connector and U1, U5 of the ESAM chip, and each SAM card is composed of a power source VCC, GND, a clock signal CLK, a reset signal RST, and a data signal IO, where CLK, RST, and IO of each PSAM card connector are respectively connected to the SAM card read/write circuit and to U11, U8, and U12 of the SAM card interface circuit.
In this embodiment, as shown in fig. 3, the SAM card read/write circuit is connected to the SAM card through five channels, wherein the first to third channels are connected to the PSAM card connectors J3, J11, and J12, and the fourth to fifth channels are connected to U1 and U5 of the ESAM chip.
In this embodiment, as shown in fig. 3, the signals of the SAM card include a data signal IO, a reset signal RST, and a clock signal CLK; the data signal IO and the reset signal RST are respectively connected with SAMIO and SAMRST of five channels of the SAM card read-write circuit, the clock signal CLK of each SAM card is connected to CLKOUT _ R of U3, and RST4 and IO4 of the fourth channel are respectively connected to RST and IO on the ESAM chip U1 through pull-up resistors.
In this embodiment, as shown in fig. 2, the microcontroller sends a command to the SAM card read-write circuit through the I2C interface to operate each SAM card, and resets the SAM card read-write circuit through the PSAM _ RST, and uses the PSAM _ INT as an interrupt signal for completing the execution of the instruction.
In this embodiment, as shown in fig. 4, the SAM card power supply circuit includes an SIMVCC for supplying power to the SAM card and a PSAM — 5V for supplying power to the SAM read/write chip; the SIMVCC selects 5V of PSAM-5V or 3.3V of PSAM-VDD through magnetic beads FB1 and FB 15; the PSAM _ VDD and the PSAM _5V both control the on-off of a power supply through a control pin PSAM _ EN of the microcontroller; PSAM _ VDD is derived from VDDA _3V3, PSAM _EN, and the switch of the PSAM _ VDD is controlled by a control circuit consisting of a resistor R68, a pull-down resistor R69, a triode Q6, resistors R10 and R1 and an MOS tube T2; the filtered signal is output after being filtered by a capacitor C3, a magnetic bead FB8, a capacitor C12 and a capacitor C91; PSAM _5V comes from +5V, PSAM _5Vcontrols the on-off of a power supply through a control circuit consisting of a resistor R30, a pull-down resistor R31, a triode Q8, resistors R28 and R29 and an MOS (metal oxide semiconductor) transistor T1, and is filtered through a capacitor C15, a magnetic bead FB2, a capacitor C16 and a capacitor C17 and then output.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: modifications of the technical solutions described in the embodiments or equivalent replacements of some or all technical features may be made without departing from the scope of the technical solutions of the embodiments of the present invention.
Claims (7)
1. A connection circuit supporting a plurality of SAM cards connected to a microcontroller, said connection circuit supporting a plurality of SAM cards connected to a microcontroller comprising:
the SAM card interface circuit is used for providing power supply for 3.3V/5V;
the microcontroller controls the SAM card power supply circuit to supply power to the SAM card read-write circuit and the SAM card interface circuit; the SAM card read-write circuit is connected with the microcontroller through at least four signal lines and is communicated with the microcontroller through an I2C interface to realize the operation of each SAM card so as to reduce the occupation of an I/O (input/output) interface of the microcontroller;
the SAM card reading and writing circuit is connected with at least five SAM cards through the SAM card interface circuit; the SAM card interface circuit comprises an interface circuit and an electrostatic protection circuit, and the electrostatic protection circuit is connected with at least three SAM cards.
2. The connection circuit supporting multiple SAM cards connected to a microcontroller according to claim 1, wherein the SAM card read/write circuit communicates with the microcontroller through four signal lines, wherein the SAM card read/write circuit is connected to I2C _ SCL and I2C _ SDA of the microcontroller through resistors R37 and R38 and pull-up resistors R5 and R40, the reset signal RST is connected to the reset pin PSAM _ RST of the microcontroller through a pull-up resistor R16, and the interrupt signal INT is connected to the interrupt pin PSAM _ INT of the microcontroller through a pull-up resistor R15.
3. The connection circuit supporting multiple SAM cards connected to microcontroller according to claim 2, wherein the SAM card interface circuit comprises J3, J11, J12 of PSAM card connector and U1, U5 of ESAM chip, each SAM card is composed of power source VCC, GND, clock signal CLK, reset signal RST, data signal IO, wherein CLK, RST and IO of each PSAM card connector are connected to the SAM card read/write circuit and connected to U11, U8, U12 of SAM card interface circuit, respectively.
4. The connection circuit supporting multiple SAM cards to connect to microcontroller according to claim 3, wherein the SAM card read/write circuit connects with SAM card through five channels, wherein the first to third channels connect with PSAM card connectors J3, J11, J12, and the fourth to fifth channels connect with U1, U5 of the ESAM chip.
5. The connection circuit supporting connection of multiple SAM cards to a microcontroller according to claim 4, wherein the signals of the SAM cards include data signal IO, reset signal RST, clock signal CLK;
the data signal IO and the reset signal RST are respectively connected with SAMIO and SAMRST of five channels of the SAM card read-write circuit, the clock signal CLK of each SAM card is connected to CLKOUT _ R of U3, and RST4 and IO4 of a fourth channel are respectively connected to RST and IO on the ESAM chip U1 through pull-up resistors.
6. The connection circuit supporting multiple SAM cards connected to microcontroller according to claim 5, wherein the microcontroller sends commands to the SAM card read/write circuit through I2C interface to operate on each SAM card, and the reset of the SAM card read/write circuit is implemented by PSAM _ RST, and the PSAM _ INT serves as an interrupt signal for completion of execution instruction.
7. The connection circuit supporting connection of multiple SAM cards to a microcontroller according to claim 6, wherein the SAM card power supply circuit comprises an SIMVCC for supplying power to the SAM card and a PSAM _5V for supplying power to the SAM read-write chip;
the SIMVCC power supply is 5V of PSAM _5V or 3.3V of PSAM _ VDD through magnetic beads FB1 and FB 15; PSAM _ VDD and PSAM _5V both control the on-off of the power supply through a control pin PSAM _ EN of the microcontroller; PSAM _ VDD is derived from VDDA _3V3, PSAM _EN, and the switch of the PSAM _ VDD is controlled by a control circuit consisting of a resistor R68, a pull-down resistor R69, a triode Q6, resistors R10 and R1 and an MOS tube T2; the filtered signal is output after being filtered by a capacitor C3, a magnetic bead FB8, a capacitor C12 and a capacitor C91; PSAM _5V comes from +5V, PSAM _5Vcontrols the on-off of a power supply through a control circuit consisting of a resistor R30, a pull-down resistor R31, a triode Q8, resistors R28 and R29 and an MOS (metal oxide semiconductor) transistor T1, and is filtered through a capacitor C15, a magnetic bead FB2, a capacitor C16 and a capacitor C17 and then output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210812256.7A CN115294702A (en) | 2022-07-12 | 2022-07-12 | Connecting circuit supporting connection of multiple SAM cards to microcontroller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210812256.7A CN115294702A (en) | 2022-07-12 | 2022-07-12 | Connecting circuit supporting connection of multiple SAM cards to microcontroller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115294702A true CN115294702A (en) | 2022-11-04 |
Family
ID=83822667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210812256.7A Pending CN115294702A (en) | 2022-07-12 | 2022-07-12 | Connecting circuit supporting connection of multiple SAM cards to microcontroller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115294702A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110251909A1 (en) * | 2010-04-09 | 2011-10-13 | Clark Clark S | Credit card payment system for handling numerous payors |
WO2011131154A1 (en) * | 2010-04-21 | 2011-10-27 | Leung Yim Mui | Wireless cash register |
CN203025724U (en) * | 2013-01-02 | 2013-06-26 | 宁波齐心电子有限公司 | Card reading circuit for multi-SAM (Subscriber Identity Module) card |
CN204066274U (en) * | 2014-07-28 | 2014-12-31 | 江苏中慧交通智能科技有限公司 | Public transport POS |
CN105911452A (en) * | 2016-04-15 | 2016-08-31 | 福建联迪商用设备有限公司 | Testing circuit, testing device, and testing method for multi-SAM card module |
US10726681B1 (en) * | 2019-07-26 | 2020-07-28 | Clover Network, Inc. | Advanced hardware system for self service checkout kiosk |
-
2022
- 2022-07-12 CN CN202210812256.7A patent/CN115294702A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110251909A1 (en) * | 2010-04-09 | 2011-10-13 | Clark Clark S | Credit card payment system for handling numerous payors |
WO2011131154A1 (en) * | 2010-04-21 | 2011-10-27 | Leung Yim Mui | Wireless cash register |
CN203025724U (en) * | 2013-01-02 | 2013-06-26 | 宁波齐心电子有限公司 | Card reading circuit for multi-SAM (Subscriber Identity Module) card |
CN204066274U (en) * | 2014-07-28 | 2014-12-31 | 江苏中慧交通智能科技有限公司 | Public transport POS |
CN105911452A (en) * | 2016-04-15 | 2016-08-31 | 福建联迪商用设备有限公司 | Testing circuit, testing device, and testing method for multi-SAM card module |
US10726681B1 (en) * | 2019-07-26 | 2020-07-28 | Clover Network, Inc. | Advanced hardware system for self service checkout kiosk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230106495A1 (en) | Memory card and host device thereof | |
JP4799417B2 (en) | Host controller | |
CN103744009A (en) | Serial transmission chip test method, serial transmission chip test system and integrated chip | |
CN102122156B (en) | Novel I/O (Input/Output) bus | |
CN219512630U (en) | MCU multichannel burning device | |
CN103389845A (en) | Capacitance touch screen burn test system | |
EP1403814B1 (en) | Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system | |
CN108595356A (en) | A kind of hard disk backboard and method of compatible RSSD hard disks and NVMe hard disks | |
CN103903651A (en) | Double-line serial port build-in self-test circuit, and communication method thereof | |
CN111309665B (en) | Parallel write operation and read operation control system and method | |
JP3157932B2 (en) | Interface circuit for IC card | |
CN100568159C (en) | Memory card input/output apparatus and control method thereof | |
CN110781130A (en) | System on chip | |
CN108255760A (en) | A kind of multipath I 2 C system and data read-write method | |
CN115294702A (en) | Connecting circuit supporting connection of multiple SAM cards to microcontroller | |
CN107608927B (en) | Design method of LPC bus host port supporting full function | |
US8082417B2 (en) | Method for reducing pin counts and microprocessor using the same | |
CN110647481A (en) | Conversion board card and hard disk interface device | |
CN214540759U (en) | FPGA chip and electronic system | |
CN111710357B (en) | MTP unit read-write control circuit of MCU | |
CN111179996B (en) | Data calibration device and calibration data storing and writing method thereof | |
CN211604095U (en) | SATA raid card | |
WO2019059076A1 (en) | Information recording device, access device, and access method | |
CN104077080A (en) | Memory access method, memory access control method, SPI flash memory device and controller thereof | |
CN113470554A (en) | LED display driving chip open circuit detection read-back method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |