Serial port expansion device based on WK2124-ISSG

Through the serial port expansion device based on the WK2124-ISSG module, the four-channel RS232 serial ports are expanded using the SPI port, and the problems of increased bus complexity and power consumption caused by serial port expansion in the existing technology are solved, and high performance and high real-time serial port expansion are achieved.

CN222813143UActive Publication Date: 2025-04-29崂山国家实验室
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421703955.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2025-04-29
Estimated Expiration
2034-07-18

AI Technical Summary

Technical Problem

When the existing technology expands the serial port, the bus module circuit is complicated and the power consumption is increased, and the application scenarios cannot meet the requirements of high performance or high real-time.

Method used

The serial port expansion device based on the WK2124-ISSG module is adopted, and the SPI port of the WK2124-ISSG module is used to expand the 4-channel RS232 serial port real-time communication, and the serial port expansion is performed using the microcontroller and the MAX3232CPW module.

Benefits of technology

It realizes serial port expansion of microcontrollers, meets the needs of more than one serial external devices, reduces bus complexity and power consumption, and is suitable for high-performance or high-real-time application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222813143U_ABST
    Figure CN222813143U_ABST
Patent Text Reader

Abstract

The utility model discloses a serial port expansion device based on WK2124-ISSG, and belongs to the technical field of electronics. And the serial port expansion device comprises a WK2124-ISSG module, a microcontroller and an MAX3232CPW module. A PC5 pin, a PA5 pin, a PA6 pin, a PA7 pin and a PD1 pin of the microcontroller are sequentially connected with an SCS pin, an SCLK pin, an SDOUT pin, an SDIN pin and an IRQ pin of the WK2124-ISSG module in a one-to-one correspondence manner so as to expand a serial port; and the MAX3232CPW module is connected with the WK2124-ISSG module and an external RS232 device, so that the external RS232 device is in communication connection with the microcontroller through an expanded serial port. According to the serial port expansion device based on the WK2124-ISSG, serial port expansion of the microcontroller can be achieved, and the requirements of a larger number of serial port external devices are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the field of electronic technology, and in particular relates to a serial port expansion device based on WK2124-ISSG. Background Art

[0002] With the progress of society and the rapid development of artificial intelligence technology, various types of smart devices are becoming more and more popular, and the functions integrated in smart devices are also increasing. Since the functional components, sensors, and communication modules used by smart devices all use serial ports for communication, when there are too many devices connected to the serial port, far exceeding the serial port resources, the serial port needs to be expanded.

[0003] In the prior art, in order to solve the problem of realizing the function of simultaneous communication of the extended serial port, a time-division multiplexing processing mechanism is adopted, and a group of data lines are used to transmit address information in the address phase of the bus transaction and transmit data information in the data phase. Although this method reduces the number of buses, reduces the volume and reduces the cost, it also makes the circuit of the bus module more complicated. In addition, some solutions in the prior art involve the use of logic devices, power supply circuits and optoelectronic isolation modules, which will increase power consumption and cost, and cannot meet the application scenarios with high performance or high real-time requirements. Summary of the invention

[0004] In view of the deficiencies existing in the related art, the purpose of the present invention is to provide a serial port expansion device based on WK2124-ISSG to solve the problems raised in the above background technology.

[0005] In order to achieve the above purpose, the utility model provides the following technical solutions:

[0006] A serial port expansion device based on WK2124-ISSG, comprising:

[0007] WK2124-ISSG module, the WK2124-ISSG module has SCS pin, SCLK pin, SDIN pin, SDOUT pin and IRQ pin;

[0008] The microcontroller has a PC5 pin, a PA5 pin, a PA6 pin, a PA7 pin and a PD1 pin, the PC5 pin is connected to the SCS pin through a lead SPI1_CS, the PA5 pin is connected to the SCLK pin through a lead SPI1_SCK, the PA6 pin is connected to the SDOUT pin through a lead SPI1_MISO, the PA7 pin is connected to the SDIN pin through a lead SPI1_MOSI, and the PD1 pin is connected to the IRQ pin through a lead SPI1_IRQ, so as to expand the serial port;

[0009] MAX3232CPW module, the MAX3232CPW module is connected to the WK2124-ISSG module, and the MAX3232CPW module is also connected to an external RS232 device, so that the external RS232 device communicates with the microcontroller through the serial port expanded by the WK2124-ISSG module.

[0010] In some of the embodiments, the MAX3232CPW module includes the same U1 chip and U3 chip, and the U1 chip and the U3 chip have a T1IN pin, a T2IN pin, a R1OUT pin, and a R2OUT pin, respectively.

[0011] In some of the embodiments, the WK2124-ISSG module further has an RX3 pin, a TX3 pin, an RX1 pin, a TX1 pin, an RX2 pin, a TX2 pin, an RX4 pin, and a TX4 pin;

[0012] The RX3 pin is connected to the R2OUT pin of the U1 chip through the lead EX1_RX3, the TX3 pin is connected to the T2IN pin of the U1 chip through the lead EX1_TX3, the RX1 pin is connected to the R1OUT pin of the U1 chip through the lead EX1_RX1, the TX1 pin is connected to the T1IN pin of the U1 chip through the lead EX1_TX1, the RX2 pin is connected to the R1OUT pin of the U3 chip through the lead EX1_RX2, the TX2 pin is connected to the T1IN pin of the U3 chip through the lead EX1_TX2, the RX4 pin is connected to the R2OUT pin of the U3 chip through the lead EX1_RX4, and the TX4 pin is connected to the T2IN pin of the U3 chip through the lead EX1_TX4.

[0013] In some of the embodiments, the U1 chip and the U3 chip further have an R1IN pin, an R2IN pin, a T1OUT pin, and a T2OUT pin, respectively, for connecting an external RS232 device.

[0014] In some of the embodiments, the serial port expansion device based on WK2124-ISSG further includes a power supply module, which is respectively connected to the WK2124-ISSG module, the microcontroller and the MAX3232CPW module to provide working power.

[0015] In some embodiments, the power supply module includes:

[0016] The step-down module has a +Vin pin and a GND pin, the +Vin pin is connected to the positive power supply, and the GND pin is connected to the negative power supply, so as to convert the power supply voltage into the working power supply voltage;

[0017] The P1 terminal has pin 1, pin 2, pin 3 and pin 4. Pin 1 and pin 2 are connected to the positive power supply, and pin 3 and pin 4 are connected to the negative power supply.

[0018] In some of the embodiments, the step-down module is K7803T-500R3.

[0019] In some of the embodiments, the serial port expansion device based on WK2124-ISSG further includes a clock source, which is connected to the WK2124-ISSG module to provide a clock pulse signal.

[0020] In some of these embodiments, the clock source is a crystal clock.

[0021] In some of the embodiments, the serial port expansion device based on WK2124-ISSG further includes a resistor R1, and the resistor R1 is connected in parallel with the crystal oscillator clock and the WK2124-ISSG module.

[0022] Compared with the prior art, the beneficial effects of the utility model are:

[0023] 1. The serial port expansion device based on WK2124-ISSG provided by the utility model is composed of a WK2124-ISSG module, a microcontroller and a MAX3232CPW module, which can realize the serial port expansion of the microcontroller and meet the needs of a larger number of serial port external devices.

[0024] 2. The serial port expansion device based on WK2124-ISSG provided by the utility model realizes the expansion of 4-way RS232 serial port real-time communication based on the SPI port of the WK2124-ISSG module, and the baud rate, word length and check format of the RS232 of the expanded sub-channel can be set independently. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation on the present invention. In the drawings:

[0026] Figure 1 This is a schematic diagram of a WK2124-ISSG module of an embodiment of a serial port expansion device based on WK2124-ISSG of the utility model;

[0027] Figure 2 A schematic diagram of a MAX3232CPW module of an embodiment of a serial port expansion device based on WK2124-ISSG of the utility model;

[0028] Figure 3A schematic diagram of a microcontroller of an embodiment of a serial port expansion device based on WK2124-ISSG of the utility model;

[0029] Figure 4 This is a schematic diagram of a power supply module of an embodiment of a serial port expansion device based on WK2124-ISSG of the utility model;

[0030] Figure 5 This is a control program diagram of the WK2124-ISSG module of an embodiment of the serial port expansion device based on WK2124-ISSG of the utility model. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0032] In the description of the present invention, it should be understood that the terms "center", "lateral", "longitudinal", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0033] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0034] See attached Figures 1 to 5 , a schematic embodiment of the serial port expansion device based on WK2124-ISSG proposed by the utility model is given, and the serial port expansion device is composed of a WK2124-ISSG module, a microcontroller and a MAX3232CPW module.

[0035] See attached Figure 1 and Figure 3, the WK2124-ISSG module has SCS pin, SCLK pin, SDIN pin, SDOUT pin and IRQ pin. The microcontroller has PC5 pin, PA5 pin, PA6 pin, PA7 pin and PD1 pin. The PC5 pin is connected to the SCS pin through the lead SPI1_CS, the PA5 pin is connected to the SCLK pin through the lead SPI1_SCK, the PA6 pin is connected to the SDOUT pin through the lead SPI1_MISO, the PA7 pin is connected to the SDIN pin through the lead SPI1_MOSI, and the PD1 pin is connected to the IRQ pin through the lead SPI1_IRQ to expand the serial port. Among them, the PC5 pin of the microcontroller is an enable pin, which is valid at a low level. That is, when the PC5 pin of the microcontroller outputs a low level, the WK2124-ISSG module starts to work; otherwise, the WK2124-ISSG module does not work.

[0036] When there are many devices connected to the microcontroller serial port, far exceeding its own serial port resources, and each serial port needs to work simultaneously, the serial port expansion device based on WK2124-ISSG can realize the serial port expansion of the microcontroller to meet the needs of more serial port external devices.

[0037] The WK2124-ISSG module is a 4-channel UART device with SPI interface. The WK2124-ISSG module realizes the function of SPI bridging / expanding 4 enhanced serial ports (UART). It has a low-power design and can be configured with automatic sleep and automatic wake-up modes (uS-level wake-up). In addition. The WK2124-ISSG module has an ultra-large hardware transceiver cache, streamlined configuration registers and control words, and is simple and reliable to operate. The WK2124-ISSG module also has a high-speed CMOS process, and the sub-serial port rate can reach up to 2Mbps. The operating voltage range of the WK2124-ISSG module is 2.5V~5V, the number of pins is 20, the maximum operating temperature is +125℃, and the minimum operating temperature is -55℃.

[0038] Based on the SPI port of the WK2124-ISSG module, the 4-way RS232 serial port real-time communication is realized. The baud rate, word length and check format of the RS232 of the extended sub-channel can be set independently. The maximum communication rate can be 2Mbps. Each sub-channel can be independently set to work in IrDA infrared communication. Each sub-channel has an independent 256BYTE FIFO for receiving / transmitting, and the FIFO interrupt can be programmed according to user needs. The WK2124 adopts the SSOP20 green and environmentally friendly lead-free package, can work in a wide operating voltage range of 2.5~5.0V, and has a configurable automatic sleep / wake-up function.

[0039] In actual application, the WK2124-ISSG module allows each sub-serial port channel to be independently enabled or disabled. The sub-serial port channel can only communicate data when it is enabled. Disabling unused sub-serial port channels during use can reduce power consumption. Figure 5 , WK2124-ISSG module enables the slave serial port clock, and the low bits 0, 1, 2, and 3 are set to 1, whichever slave serial port is enabled. For example, if UT2 is enabled, it is 0000 0010, that is, 0x02.

[0040] See attached Figure 1 and Figure 2 , the MAX3232CPW module is connected to the WK2124-ISSG module, and the MAX3232CPW module is also connected to an external RS232 device so that the external RS232 device can communicate with the microcontroller through the serial port expanded by the WK2124-ISSG module. In this embodiment, the MAX3232CPW module has the functions of two line drivers, two line receivers and a dual-channel charge pump circuit. Specifically, the MAX3232CPW module includes the same U1 chip and U3 chip, and the U1 chip and the U3 chip have a T1IN pin, a T2IN pin, an R1OUT pin and an R2OUT pin respectively. The WK2124-ISSG module also has a RX3 pin, a TX3 pin, a RX1 pin, a TX1 pin, a RX2 pin, a TX2 pin, a RX4 pin and a TX4 pin. Among them, the RX3 pin is connected to the R2OUT pin of the U1 chip through the lead EX1_RX3, the TX3 pin is connected to the T2IN pin of the U1 chip through the lead EX1_TX3, the RX1 pin is connected to the R1OUT pin of the U1 chip through the lead EX1_RX1, the TX1 pin is connected to the T1IN pin of the U1 chip through the lead EX1_TX1, the RX2 pin is connected to the R1OUT pin of the U3 chip through the lead EX1_RX2, the TX2 pin is connected to the T1IN pin of the U3 chip through the lead EX1_TX2, the RX4 pin is connected to the R2OUT pin of the U3 chip through the lead EX1_RX4, and the TX4 pin is connected to the T2IN pin of the U3 chip through the lead EX1_TX4.

[0041] The MAX3232CPW module features pin-to-pin (serial port connection pins, including GND) ±15kV IEC ESD protection. The MAX3232CPW module complies with TIA / EIA-232-F requirements and provides an electrical interface between a microcontroller and an external RS232 device for serial communication. The charge pump and four small external capacitors support power from a single 3V to 5.5V supply. The MAX3232CPW module can operate at data signaling rates up to 250kbit / s, with a driver output slew rate of up to 30V / μs.

[0042] See the attached Figure 2 The U1 chip and the U3 chip also have R1IN pin, R2IN pin, T1OUT pin and T2OUT pin respectively, which are connected to the external RS232 device through the R1IN pin, R2IN pin, T1OUT pin and T2OUT pin.

[0043] See attached Figure 4 ,The serial port expansion device based on WK2124-ISSG also includes a power supply module, which is respectively connected to the WK2124-ISSG module, the microcontroller and the MAX3232CPW module to provide working power.

[0044] In this embodiment, the power supply module is composed of a step-down module and a P1 terminal. The step-down module has a +Vin pin and a GND pin. The +Vin pin is connected to the positive power supply, and the GND pin is connected to the negative power supply to convert the power supply voltage into a working power supply voltage. The P1 terminal is a power supply plug-in. The P1 terminal has pins 1, 2, 3, and 4. Pins 1 and 2 are connected to the positive power supply, and pins 3 and 4 are connected to the negative power supply. In this embodiment, the step-down module is selected as K7803T-500R3. K7803T-500R3 has the characteristics of high efficiency and low no-load power consumption. The power supply voltage is reduced to 3.3V by the step-down module K7803T-500R3 for the WK2124-ISSG module, the microcontroller, and the MAX3232CPW module to work.

[0045] See attached Figure 1 In this embodiment, the serial port expansion device based on WK2124-ISSG also includes a clock source, which is connected to the WK2124-ISSG module to provide a clock pulse signal. The clock source is a crystal oscillator clock, which has the advantages of high frequency and stability and low power consumption. In order to reduce the interference and noise of the circuit and improve the stability of the circuit, the serial port expansion device based on WK2124-ISSG also includes a resistor R1, which is connected in parallel with the crystal oscillator clock and the WK2124-ISSG module.

[0046] In the above exemplary embodiment, the serial port expansion device based on WK2124-ISSG is composed of a WK2124-ISSG module, a microcontroller and a MAX3232CPW module, which can realize the serial port expansion of the microcontroller to meet the needs of a larger number of serial port external devices. The serial port expansion device based on WK2124-ISSG is based on the SPI port of the WK2124-ISSG module to realize the expansion of 4-way RS232 serial port real-time communication, and the baud rate, word length and check format of the RS232 of the expanded sub-channel can be set independently.

[0047] Finally, it should be noted that: the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0048] The above embodiments are only used to illustrate the technical solution of the utility model rather than to limit it. Although the utility model is described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the utility model can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the utility model, which should be included in the scope of the technical solution for which protection is requested in the utility model.

Claims

1. A serial port expansion device based on WK2124-ISSG, characterized in that: include: A WK2124-ISSG module, wherein the WK2124-ISSG module has an SCS pin, an SCLK pin, an SDIN pin, an SDOUT pin, and an IRQ pin; A microcontroller, wherein the microcontroller has a PC5 pin, a PA5 pin, a PA6 pin, a PA7 pin and a PD1 pin, wherein the PC5 pin is connected to the SCS pin via a lead SPI1_CS, the PA5 pin is connected to the SCLK pin via a lead SPI1_SCK, the PA6 pin is connected to the SDOUT pin via a lead SPI1_MISO, the PA7 pin is connected to the SDIN pin via a lead SPI1_MOSI, and the PD1 pin is connected to the IRQ pin via a lead SPI1_IRQ, so as to expand the serial port; A MAX3232CPW module, wherein the MAX3232CPW module is connected to the WK2124-ISSG module, and the MAX3232CPW module is also connected to an external RS232 device, so that the external RS232 device is connected to the microcontroller through the serial port extended by the WK2124-ISSG module.

2. The serial port expansion device based on WK2124-ISSG according to claim 1, characterized in that: The MAX3232CPW module includes the same U1 chip and U3 chip, and the U1 chip and U3 chip have a T1IN pin, a T2IN pin, a R1OUT pin, and a R2OUT pin, respectively.

3. The serial port expansion device based on WK2124-ISSG according to claim 2, characterized in that: The WK2124-ISSG module also has an RX3 pin, a TX3 pin, an RX1 pin, a TX1 pin, an RX2 pin, a TX2 pin, an RX4 pin and a TX4 pin; The RX3 pin is connected to the R2OUT pin of the U1 chip through the lead EX1_RX3, the TX3 pin is connected to the T2IN pin of the U1 chip through the lead EX1_TX3, the RX1 pin is connected to the R1OUT pin of the U1 chip through the lead EX1_RX1, the TX1 pin is connected to the T1IN pin of the U1 chip through the lead EX1_TX1, the RX2 pin is connected to the R1OUT pin of the U3 chip through the lead EX1_RX2, the TX2 pin is connected to the T1IN pin of the U3 chip through the lead EX1_TX2, the RX4 pin is connected to the R2OUT pin of the U3 chip through the lead EX1_RX4, and the TX4 pin is connected to the T2IN pin of the U3 chip through the lead EX1_TX4.

4. The serial port expansion device based on WK2124-ISSG according to claim 2, characterized in that: The U1 chip and the U3 chip also have an R1IN pin, an R2IN pin, a T1OUT pin and a T2OUT pin respectively for connecting to an external RS232 device.

5. The serial port expansion device based on WK2124-ISSG according to claim 1, characterized in that: It also includes a power supply module, which is respectively connected to the WK2124-ISSG module, the microcontroller and the MAX3232CPW module to provide working power.

6. The serial port expansion device based on WK2124-ISSG according to claim 5, characterized in that: The power supply module comprises: A step-down module, wherein the step-down module has a +Vin pin and a GND pin, wherein the +Vin pin is connected to a positive power supply, and the GND pin is connected to a negative power supply, so as to convert the power supply voltage into a working power supply voltage; The P1 terminal has pin 1, pin 2, pin 3 and pin 4. The pin 1 and pin 2 are connected to the positive power supply, and the pin 3 and pin 4 are connected to the negative power supply.

7. The serial port expansion device based on WK2124-ISSG according to claim 6, characterized in that: The step-down module is K7803T-500R3.

8. The serial port expansion device based on WK2124-ISSG according to claim 1, characterized in that: It also includes a clock source, which is connected to the WK2124-ISSG module to provide a clock pulse signal.

9. The serial port expansion device based on WK2124-ISSG according to claim 8, characterized in that: The clock source is a crystal oscillator clock.

10. The serial port expansion device based on WK2124-ISSG according to claim 9, characterized in that: It also includes a resistor R1, which is connected in parallel with the crystal oscillator clock and the WK2124-ISSG module.