Fusion splicer information batch write-in circuit
By designing microcontrollers and multi-channel chip selection circuits in optical fiber splicers, multiple FLASH chips are realized at one time, solving the problems of slow writing speed and strict power requirements in the prior art, and improving production efficiency and stability.
Patent Information
- Application Number
- CN202420828381.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2034-04-22
AI Technical Summary
When writing FLASH chips, existing fiber splicers need to separate multiple circuit pins, resulting in strict power requirements and slow writing speed, which affects production efficiency.
A batch writing circuit for information of welding machine is designed, and the microcontroller unit controls the multi-chip selection circuit and level conversion circuit through IIC signals to realize the writing of multiple FLASH chips at one time, reducing the dependence on circuit pins.
It improves writing efficiency, can burn multiple FLASH chips at once, simplifies production processes, reduces manual operation complexity, and maintains stability in different environments.
Smart Images

Figure CN222213364U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of optical cable construction, in particular to a circuit for batch writing information of a welding machine. Background Art
[0002] Fiber fusion splicers need to use memory chips to provide software programs and firmware information during normal operation. This information is usually burned using debugging serial ports or JTAG, but this method requires the chip to be placed on the circuit board in advance and burned separately, and then assembled on the required machine after the data is burned, which is time-consuming and labor-intensive, and is not conducive to mass production in factories.
[0003] FLASH is a type of memory chip that is widely used in electronic products. During factory production, it is best to burn the program into the chip first and then mount it, which is referred to as "burn first and then mount". This method can greatly improve production efficiency.
[0004] There are many problems with the "burn first and paste later" tools of SPIFLASH on the market. The communication between the FLASH chip and other chips is carried out through the SPI protocol. The connection of the SPI protocol is as follows Figure 1 If the chip information is burned only through SPI, multiple circuits need to be separated from one circuit pin, which places strict requirements on the host driver circuit of the SPI protocol. The power must be large enough to drive all slave circuits, and the power must be stable and not too large to avoid burning the single-chip FLASH; if the writing is controlled by one chip at a time, the writing speed will be greatly reduced. Summary of the invention
[0005] The utility model aims to provide a batch writing circuit for welding machine information, so as to realize writing all chips at one time and improve writing efficiency.
[0006] To achieve the above purpose, the utility model provides the following solutions:
[0007] A welding machine information batch writing circuit, comprising: a micro control unit, a multi-channel chip selection circuit and a FLASH module;
[0008] The microcontroller unit is used to control the data transmission direction and transmission path of the multi-channel chip selection circuit and control the writing state of the FLASH chip in the FLASH module through the IIC signal;
[0009] The FLASH module includes a level conversion circuit and multiple flash base circuits and a level conversion circuit; each flash base circuit can accommodate two FLASH chips; the level conversion circuit is used to output multiple identical signals to the flash base circuit and ensure that each output signal is consistent with the original input signal.
[0010] Optionally, the multi-channel chip select circuit specifically includes: an SPI_CS IIC control circuit and an LED IIC control circuit;
[0011] The SPI_CS IIC control circuit is used to control the welding machine information batch writing circuit;
[0012] The LED IIC control circuit is used to display the working condition of the circuit for controlling the batch writing of the welding machine information; when any signal of the SPI_CS IIC control circuit is selected, the selected signal is pulled low, and the LED corresponding to the selected signal in the LED IIC control circuit lights up;
[0013] The SPI_CS IIC control circuit includes an INT port, an A0 port to an A2 port, a P00 port to a P17 port, an SDA port, an SCL port, a VCC port and a GND port; wherein the INT port is an interrupt signal pin; the A0 port to the A2 port are IIC communication address ports for setting the chip; the P00 port to the P17 port are output pins; the SDA port and the SCL port are IIC signal input pins; the VCC port and the GND port are power supply ports;
[0014] The SPI_CS IIC control circuit and the LED IIC control circuit are the same.
[0015] Optionally, it also includes: a pin circuit;
[0016] The pin circuit specifically includes a plurality of resistors and a switch; the switch includes a plurality of sub-switches; a resistor and a sub-switch are connected to form an address selection branch.
[0017] Optionally, each address selection branch is connected to any port from port A0 to port A2.
[0018] Optionally, the level conversion circuit specifically includes: a DIR port, port, A1 port to A8 port, B1 port to B8 port, VCC port and GND port; among which, DIR port is the send / receive input port of direction control; Port A1 to A8 and port B1 to B8 are data input and output ports.
[0019] Optionally, the flash base circuit specifically includes: Port, DO port, port, GND port, DI port, CLK port, port and VCC port; among them, The port is the enable pin; the CLK port is the clock pin; the DO port, DI port, Ports and The port is a data pin.
[0020] Optionally, it also includes: a voltage-stabilized power supply circuit;
[0021] The voltage-stabilized power supply circuit is used to provide a voltage-stabilized power supply.
[0022] According to the specific embodiments provided by the utility model, the utility model discloses the following technical effects: the utility model controls the data transmission direction and transmission path of the multi-channel chip select circuit and controls the write state of the FLASH chip in the FLASH module, and selects the level conversion circuit to output multiple identical signals to the flash base circuit, and ensures that each output signal is consistent with the original input signal, and finally uses multiple flash base circuits to accommodate multiple FLASH chips. Compared with only using the SPI protocol, the utility model does not need to divide multiple circuits on one circuit pin, but uses the multi-channel chip select circuit to selectively determine the data transmission direction and transmission path, and selects the level conversion circuit and the flash base circuit to realize one-time burning of multiple FLASH chips, thereby improving writing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 This is a schematic diagram of SPI connection;
[0025] Figure 2 SPI_CS IIC control circuit diagram for the first signal input;
[0026] Figure 3 SPI_CS IIC control circuit diagram for the second signal input;
[0027] Figure 4 This is the LED IIC control circuit diagram for the first signal input;
[0028] Figure 5 The LED IIC control circuit diagram for the second signal input;
[0029] Figure 6 For Figure 2 and Figure 3The pin circuit diagram of the connection from port A0 to port A2;
[0030] Figure 7 For Figure 4 and Figure 5 The pin circuit diagram of the connection from port A0 to port A2;
[0031] Figure 8 It is the circuit diagram of level conversion;
[0032] Fig. 9 This is the circuit diagram of the flash base;
[0033] Fig.10 A first voltage-stabilized power supply circuit diagram for a working circuit for voltage conversion to output a stable power supply;
[0034] Fig.11 for Fig.10 Corresponding indicator light circuit diagram;
[0035] Fig.12 A second voltage-stabilized power supply circuit diagram for a working circuit for voltage conversion to output a stable power supply;
[0036] Fig.13 for Fig.12 Corresponding indicator light circuit diagram;
[0037] Fig.14 It is a software driver flow chart. DETAILED DESCRIPTION
[0038] 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 of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in 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.
[0039] The utility model provides a welding machine information batch writing circuit, comprising: a micro control unit, a multi-channel chip selection circuit and a FLASH module.
[0040] The microcontroller unit is used to control the data transmission direction and transmission path of the multi-channel chip selection circuit and control the writing state of the FLASH chip in the FLASH module through the IIC signal.
[0041] The FLASH module includes a level conversion circuit and multiple flash base circuits and a level conversion circuit; each flash base circuit can accommodate two FLASH chips; the level conversion circuit is used to output multiple identical signals to the flash base circuit and ensure that each output signal is consistent with the original input signal.
[0042] In practical applications, such as Figure 2-Figure 5 As shown, the multi-channel chip selection circuit specifically includes: an SPI_CS IIC control circuit and an LED IIC control circuit.
[0043] The SPI_CS IIC control circuit is used to control the welding machine information batch writing circuit.
[0044] The LED IIC control circuit is used to display the working status of the circuit for controlling the batch writing of welding machine information; when any signal of the SPI_CS IIC control circuit is selected, the selected signal is pulled low, and the LED corresponding to the selected signal in the LED IIC control circuit lights up.
[0045] The SPI_CS IIC control circuit includes an INT port, A0 port to A2 port, P00 port-P17 port, SDA port, SCL port, VCC port and GND port; wherein, the INT port is an interrupt signal pin, which can be left unconnected because it is only used for one-way communication; the A0 port to A2 port are IIC communication address ports for setting the chip; the P00 port-P17 port are output pins; the SDA port and the SCL port are IIC signal input pins; the VCC port and the GND port are power supply ports.
[0046] The SPI_CS IIC control circuit and the LED IIC control circuit are the same.
[0047] Furthermore, the multi-channel chip selection circuit uses the PCA9555 chip, which is a remote 16-bit I2C and SMBus I / O expander with interrupt output and configuration register. The advantage of using this chip is that the level output of 16 IO ports can be controlled by the IIC signal of 2 pins. The IIC signal is transmitted by the CPU to select the signal, and then the FLASH chip is controlled to write and read, and the writing status and success or failure are displayed.
[0048] In practical applications, such as Figure 6-Figure 7 As shown, it also includes: a pin circuit; the pin circuit specifically includes multiple resistors and a switch; the switch includes multiple sub-switches; a resistor and a sub-switch are connected to form an address selection branch.
[0049] Each address selection branch is connected to any port from port A0 to port A2.
[0050] Furthermore, by adjusting the 12-way DIP switch, the addresses of the 4 PCA9555 chips can be freely set. However, it should be noted that duplicate addresses should be avoided to avoid address conflicts.
[0051] In practical applications, such as Figure 8 As shown, the level conversion circuit specifically includes: a DIR port, port, A1 port to A8 port, B1 port to B8 port, VCC port and GND port; among which, DIR port is the send / receive input port of direction control; The port is the output enable input port; port A1 to port A8 and port B1 to port B8 are data input and output ports. The specific working conditions are controlled by the DIR port level, that is, when the DIR port is at a high level, An flows to Bn, and when the DIR port is at a low level, Bn flows to An, n=1,2,3,...8.
[0052] Furthermore, the level conversion circuit uses the 74LVC245A chip, which is an 8-way transceiver with in-phase three-state bus compatible outputs in both the transmit and receive directions. The circuit has an output enable input that is easy to cascade and a send / receive input (DIR) for direction control. The outputs are controlled to effectively isolate the bus. The inputs can be driven by 3.3V or 5V devices. When disabled, up to 5.5V can be applied to the outputs.
[0053] By supplying power through the VCC port and the GND port and pulling up the DIR pin signal, it can be ensured that the flow direction of the internal signal of the chip is A→B, that is, An→Bn.
[0054] In practical applications, such as Fig. 9 As shown, the flash base circuit specifically includes: Port, DO port, port, GND port, DI port, CLK port, port and VCC port; among them, The port is the enable pin; the CLK port is the clock pin; the DO port, DI port, Ports and The port is a data pin.
[0055] Furthermore, each flash chip base can accommodate two flash chips. Usually, 16 flash chip bases are needed to burn 32 chips at the same time.
[0056] In actual application, install 32 flash chips on the flash base, click the write button, and after the writing is completed, you can observe the writing status at this time according to the status indicators; when the status of the 32 LED indicators is stable, the inspection is completed, and the writing completion status can be determined by watching the results displayed on the LCD screen or checking the LED indicators.
[0057] In practical applications, it also includes: a voltage-stabilized power supply circuit; the voltage-stabilized power supply circuit is used to provide a voltage-stabilized power supply. Fig.10 and Fig.12 It is a voltage-stabilized power supply circuit used for voltage conversion and output of stable power supply for the working circuit. Fig.11 and Fig.13 Used to identify the working status of different regulated power supply circuits.
[0058] Furthermore, the voltage required for VCC and VCC-SPI is 3.3v, so the RT9013 chip is selected as the linear regulator.
[0059] The RT9013 is a high performance, 500mA output current capable linear regulator that provides extremely high PSRR and ultra-low dropout. This product is ideal for the performance and size requirements of portable RF and wireless applications. Quiescent current can be as low as 5μA to extend battery life. The RT9013 is also suitable for low ESR ceramic capacitors, thereby reducing the required board space on handheld wireless devices. It consumes 0.7μA (typical) in shutdown mode and has a very fast startup time (less than 40μs). Other features include ultra-low dropout voltage, high output accuracy, current limit protection and high PSRR.
[0060] The software control is realized by the RT-1052 chip as the main control CPU, and the start of writing is controlled by an external touch screen; all FLASH chips are selected through the IIC bus, data is transmitted through SPI communication, and the signal stability is ensured through the level conversion circuit, and all FLASH are written at one time; then the FLASH chip is enabled through IIC signal polling to compare the written data chip by chip, and the location of the FLASH chip that has been successfully written is displayed after the comparison is completed, such as Fig.14 shown.
[0061] The download board formed by the circuit designed according to the utility model can work stably under normal temperature, high and low temperature and high altitude conditions, and has a certain anti-interference ability; the download efficiency is improved, 32 flash chips can be written at one time and whether the writing is successful can be detected, defective products can be detected more effectively, and only one power supply is occupied, and manual operation is simple.
[0062] The utility model is a level conversion circuit which can ensure that one original signal generates multiple identical output signals at the same time and ensures that each output signal is consistent with the original signal; a multi-channel chip selection circuit which adjusts the chip selection signal of the selected chip by changing the input signal.
[0063] 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.
[0064] This article uses specific examples to illustrate the principles and implementation methods of the utility model. The above examples are only used to help understand the method and core ideas of the utility model. At the same time, for those skilled in the art, according to the ideas of the utility model, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the utility model.
Claims
1. A welding machine information batch writing circuit, characterized in that: include: Microcontrol unit, multi-channel chip select circuit and FLASH module; The micro control unit is used to control the data transmission direction and transmission path of the multi-channel chip selection circuit and control the writing state of the FLASH chip in the FLASH module through the IIC signal; The FLASH module includes a level conversion circuit and a plurality of flash base circuits and a level conversion circuit; Each flash base circuit can accommodate 2 FLASH chips; The level conversion circuit is used to output a plurality of identical signals to the flash base circuit and ensure that each output signal is consistent with the original input signal.
2. The circuit for batch writing information of welding machines according to claim 1, characterized in that: The multi-channel chip selection circuit specifically includes: an SPI_CS IIC control circuit and an LED IIC control circuit; The SPI_CS IIC control circuit is used to control the welding machine information batch writing circuit; The LED IIC control circuit is used to display the working condition of the circuit for controlling the batch writing of the welding machine information; when any signal of the SPI_CS IIC control circuit is selected, the selected signal is pulled low, and the LED corresponding to the selected signal in the LED IIC control circuit lights up; The SPI_CS IIC control circuit includes an INT port, an A0 port to an A2 port, a P00 port to a P17 port, an SDA port, an SCL port, a VCC port and a GND port; wherein the INT port is an interrupt signal pin; the A0 port to the A2 port are IIC communication address ports for setting the chip; the P00 port to the P17 port are output pins; the SDA port and the SCL port are IIC signal input pins; the VCC port and the GND port are power supply ports; The SPI_CS IIC control circuit and the LED IIC control circuit are the same.
3. The circuit for batch writing welding machine information according to claim 2, characterized in that: Also includes: Pin circuit; The pin circuit specifically includes a plurality of resistors and a switch; the switch includes a plurality of sub-switches; A resistor and a sub-switch are connected to form an address selection branch.
4. The circuit for batch writing information of welding machines according to claim 3, characterized in that: Each address selection branch is connected to any port from port A0 to port A2.
5. The circuit for batch writing welding machine information according to claim 1, characterized in that: The level conversion circuit specifically includes: a DIR port, port, A1 port to A8 port, B1 port to B8 port, VCC port and GND port; among which, DIR port is the send / receive input port of direction control; Port A1 to A8 and port B1 to B8 are data input and output ports.
6. The circuit for batch writing information of welding machines according to claim 1, characterized in that: The flash base circuit specifically includes: Port, DO port, port, GND port, DI port, CLK port, port and VCC port; among them, The port is the enable pin; the CLK port is the clock pin; the DO port, DI port, Ports and The port is a data pin.
7. The circuit for batch writing welding machine information according to claim 1, characterized in that: Also includes: Voltage stabilized power supply circuit; The voltage-stabilized power supply circuit is used to provide a voltage-stabilized power supply.
