CN113722120B - Integrated circuit and method for realizing program development thereof - Google Patents

Integrated circuit and method for realizing program development thereof Download PDF

Info

Publication number
CN113722120B
CN113722120B CN202110876030.9A CN202110876030A CN113722120B CN 113722120 B CN113722120 B CN 113722120B CN 202110876030 A CN202110876030 A CN 202110876030A CN 113722120 B CN113722120 B CN 113722120B
Authority
CN
China
Prior art keywords
unit
connection
protocol conversion
protocol
integrated circuit
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
CN202110876030.9A
Other languages
Chinese (zh)
Other versions
CN113722120A (en
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.)
Longxin Zhongke Taiyuan Technology Co ltd
Original Assignee
Longxin Zhongke Taiyuan Technology 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 Longxin Zhongke Taiyuan Technology Co ltd filed Critical Longxin Zhongke Taiyuan Technology Co ltd
Priority to CN202110876030.9A priority Critical patent/CN113722120B/en
Publication of CN113722120A publication Critical patent/CN113722120A/en
Application granted granted Critical
Publication of CN113722120B publication Critical patent/CN113722120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention provides an integrated circuit and a method for realizing program development thereof, and relates to the technical field of electronics. The communication management unit in the integrated circuit is respectively connected with the control unit, the program storage unit and the protocol conversion unit, the protocol conversion unit is also respectively connected with the control unit and the connection unit, the connection between the protocol conversion unit and the program storage unit through the communication management unit is a first communication protocol connection, and the connection between the protocol conversion unit and the control unit is a second communication protocol connection. The communication management unit and the protocol conversion unit are matched to realize the conversion and transfer of the program data between the connection unit and the program storage unit in the first state, and the conversion and transfer of the operation data between the connection unit and the control unit in the second state. The protocol conversion unit and the communication management unit are arranged, so that the integrated circuit can communicate with other devices by using one connection unit in the process of program downloading and running, and frequent switching among a plurality of connection units can be avoided.

Description

Integrated circuit and method for realizing program development thereof
Technical Field
The present invention relates to the field of electronic technology, and in particular, to an integrated circuit and a method for implementing program development thereof.
Background
An integrated circuit generally includes a program storage unit that can store program data and a control unit that can read and execute the program data in the program storage unit to control the operation of the integrated circuit.
In the use of integrated circuits, two connection units are usually provided in the integrated circuit, since the program download process is different from the running process. In the process of downloading the program, the program storage unit is connected with the upper computer through the first connecting unit, and the upper computer is used for writing the program data into the program storage unit through the first connecting unit. In the operation process of the integrated circuit, the control unit is connected with the upper computer through the second connecting unit, communication connection between the upper computer and the integrated circuit is established, and operation data are transmitted between the upper computer and the integrated circuit through the second connecting unit. When the first connection unit and the second connection unit are simultaneously arranged in the integrated circuit, the plurality of connection units are required to be frequently switched for use in the use process of the integrated circuit.
Disclosure of Invention
The invention provides an integrated circuit and a method for realizing program development thereof, which are used for solving the problem that a plurality of connection units are required to be frequently switched and used in the integrated circuit.
In order to solve the above problems, the present invention discloses an integrated circuit comprising: the device comprises a connection unit, a control unit, a program storage unit, a communication management unit and a protocol conversion unit;
the communication management unit is respectively connected with the control unit, the program storage unit and the protocol conversion unit, wherein the protocol conversion unit is also respectively connected with the control unit and the connection unit, the connection between the protocol conversion unit and the program storage unit through the communication management unit is a first communication protocol connection, and the connection between the protocol conversion unit and the control unit is a second communication protocol connection;
the communication management unit and the protocol conversion unit are matched to realize conversion and transfer of program data between the connection unit and the program storage unit in a first state, and conversion and transfer of operation data between the connection unit and the control unit in a second state.
Optionally, the communication management unit includes a switch subunit and a switch subunit;
the switch subunit is respectively connected with the protocol conversion unit and the switching subunit, and is used for controlling the communication management unit to switch between the first state and the second state and controlling the protocol conversion unit to switch between a first protocol conversion mode corresponding to the first state and a second protocol conversion mode corresponding to the second state;
the switching subunit is further connected with the control unit, the program storage unit and the protocol conversion unit respectively, and is used for closing a first connection between the protocol conversion unit and the program storage unit in a first state and opening a second connection between the control unit and the program storage unit, and opening the first connection and closing the second connection in a second state.
Optionally, the integrated circuit further includes a voltage conversion unit connected to the connection unit, the voltage conversion unit being configured to convert a power supply voltage from the connection unit, and output the power supply voltage to at least one of the control unit, the program storage unit, the communication management unit, and the protocol conversion unit.
Optionally, the voltage conversion unit includes a first voltage conversion subunit and a second voltage conversion subunit, and the supply voltages output by the first voltage conversion subunit and the second voltage conversion subunit are different.
Optionally, the connection unit includes a universal serial bus interface, a communication end of the universal serial bus interface is connected with the protocol conversion unit, and a power end of the universal serial bus interface is connected with the voltage conversion unit.
Optionally, the integrated circuit further includes a voltage indicating unit connected to the voltage converting unit, where the voltage indicating unit is configured to receive a supply voltage of the voltage converting unit and output a voltage indicating signal according to the received supply voltage.
Optionally, the integrated circuit further comprises a power switch unit, one end of the power switch unit is connected with the voltage conversion unit, and the other end of the power switch unit is connected with the connection unit.
Optionally, the integrated circuit further comprises a status indication unit connected to the communication management unit, the status indication unit being configured to output a first status indication signal when the communication management unit is in the first state and to output a second status indication signal when the communication management unit is in the second state.
Optionally, the integrated circuit further comprises a data storage unit connected to the control unit.
In order to solve the above problems, the present invention also discloses a method for implementing program development according to the above integrated circuit, including:
when the communication management unit receives the first control signal, a first connection between the protocol conversion unit and the program storage unit is closed, a second connection between the control unit and the program storage unit is disconnected, and a first protocol conversion setting signal is sent to the protocol conversion unit; after receiving the first protocol conversion setting signal, the protocol conversion unit enters a first protocol conversion mode converted between a communication protocol of a connection unit and a first communication protocol of the program storage unit so as to convert and transfer program data between the connection unit and the program storage unit;
when the communication management unit receives a second control signal, the first connection is disconnected, the second connection is closed, and a second protocol conversion setting signal is sent to the protocol conversion unit; and after receiving the second protocol conversion setting signal, the protocol conversion unit enters a second protocol conversion mode converted between the communication protocol of the connection unit and the second communication protocol of the control unit so as to convert and transmit the operation data between the connection unit and the control unit.
Compared with the prior art, the invention has the following advantages:
in the embodiment of the invention, because of the structures, functions and connection relations of the connection unit, the control unit, the program storage unit, the communication management unit and the protocol conversion unit in the integrated circuit, particularly the arrangement of the protocol conversion unit and the communication management unit, the integrated circuit can use the same connection unit to communicate with other devices in the process of downloading and running the program, frequent switching among a plurality of connection units can be avoided, and the circuit is miniaturized and portable.
Drawings
FIG. 1 shows a schematic diagram of an integrated circuit in an embodiment of the invention;
FIG. 2 illustrates a schematic diagram of another integrated circuit in an embodiment of the invention;
FIG. 3 shows a schematic circuit diagram of a communication management unit in an embodiment of the invention;
FIG. 4 is a schematic circuit diagram of a program storage unit according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a protocol conversion unit according to an embodiment of the present invention;
FIG. 6 illustrates a schematic diagram of a further integrated circuit in accordance with an embodiment of the present invention;
fig. 7 is a schematic diagram showing a voltage conversion unit and connection between the voltage conversion unit and a connection unit and a control unit in the embodiment of the present invention;
FIG. 8A is a schematic circuit diagram of a first voltage conversion subunit according to an embodiment of the present invention;
FIG. 8B is a schematic circuit diagram of a second voltage conversion subunit according to an embodiment of the present invention;
fig. 9 shows a method for implementing program development in an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
One of the core ideas of the embodiment of the invention is that a protocol conversion unit and a communication management unit are arranged in an integrated circuit, the protocol conversion unit and a program storage unit are communicated through the communication management unit in the process of program downloading, and program data between a connection unit and the program storage unit are converted and transferred through the protocol conversion unit, and the program data are written into the program storage unit. In the running process of the integrated circuit, the program storage unit and the control unit are communicated through the communication management unit, running data between the connection unit and the control unit are converted and transferred through the protocol conversion unit, the integrated circuit is connected by using the same connection unit under different conditions, and conversion and transfer of data under different conditions are executed through the protocol conversion unit, so that switching among a plurality of connection units in the using process of the integrated circuit is avoided.
Referring to fig. 1, a schematic diagram of an integrated circuit in an embodiment of the present invention is shown, the integrated circuit including a connection unit 101, a control unit 102, a program storage unit 103, a communication management unit 104, and a protocol conversion unit 105. The communication management unit 104 is connected to the control unit 102, the program storage unit 103, and the protocol conversion unit 105, respectively. The protocol conversion unit 105 is further connected to the control unit 102 and the connection unit 101, and the connection between the protocol conversion unit 105 and the program storage unit 103 through the communication management unit 104 is a first communication protocol connection, and the connection between the protocol conversion unit 105 and the control unit 102 is a second communication protocol connection. The communication management unit 104 cooperates with the protocol conversion unit 105 to convert and transfer program data between the connection unit 101 and the program storage unit 103 in the first state, and to convert and transfer operation data between the connection unit 101 and the control unit 102 in the second state.
Wherein the communication management unit 104 is capable of switching between a first state and a second state, the communication management unit 104 being configured to close a first connection between the protocol conversion unit 105 and the program storage unit 103, to open a second connection between the control unit 102 and the program storage unit 103, and to put the protocol conversion unit 105 in a first protocol conversion mode capable of converting between a communication protocol of the connection unit 101 and a first communication protocol of the program storage unit 103 in the first state; in the second state, the first connection is opened and the second connection is closed, and the protocol conversion unit 105 is placed in a second protocol conversion mode capable of converting between the communication protocol of the connection unit 101 and the second communication protocol of the control unit 102.
In this embodiment, the connection unit 101 in the integrated circuit is used to connect the integrated circuit and the host computer, in the integrated circuit, the connection unit 101 is connected to the protocol conversion unit 105, and the protocol conversion unit 105 is connected to the control unit 102. The communication management unit 104 is connected to the control unit 102, the program storage unit 103, and the protocol conversion unit 105, respectively, and the first state of the communication management unit 104 corresponds to a program downloading process of the integrated circuit, and the second state corresponds to an operation process of the integrated circuit. In one aspect, the communication management unit 104 may close a first connection between the protocol conversion unit 105 and the program storage unit 103 and open a second connection between the control unit 102 and the program storage unit 103 in the first state. At this time, a communication connection is established between the upper computer and the program storage unit 103 through the connection unit 101 and the protocol conversion unit 105, and the protocol conversion unit 105 converts and transfers the program data between the program storage unit 103 and the connection unit 101, that is, the program data between the program storage unit 103 and the upper computer. On the other hand, the communication management unit 104 may open the first connection between the protocol conversion unit 105 and the program storage unit 103 and close the second connection between the control unit 102 and the program storage unit 103 in the second state. At this time, a communication connection is established between the upper computer and the control unit 102 through the connection unit 101 and the protocol conversion unit 105, the protocol conversion unit 105 converts and transfers operation data between the control unit 102 and the connection unit 101, that is, operation data between the control unit 102 and the upper computer, and at the same time, the control unit 102 is connected to the program storage unit 103, and the control unit 102 can read the program data from the program storage unit 103 and operate the program data.
In one embodiment, the control unit 102 may include a processor (Central Processing Unit, CPU) and peripheral circuitry for the processor, and the processor may read program data from the program storage unit 103 and execute the program data to control the actions of the integrated circuit. The program storage unit 103 may include a non-volatile memory (flash memory) such as a flash memory, and a corresponding peripheral circuit. The specific structures of the control unit 102 and the program storage unit 103 may be set according to the requirements, which is not limited in this embodiment.
Alternatively, the connection unit 101 includes a universal serial bus (Universal Serial Bus, USB) interface, and a communication end of the universal serial bus interface is connected to the protocol conversion unit 105. For example, when the connection unit 101 includes a USB-type c interface, the protocol conversion unit 105 may communicate with an upper computer through a USB protocol. In practical application, the structure of the USB interface is simple, and when the protocol conversion unit 105 communicates with the host computer through the USB interface, the structure of the connection unit 101 can be simplified, so that the structure of the integrated circuit can be simplified.
In one embodiment, the protocol conversion unit 105 may include a protocol converter and corresponding peripheral circuitry. The protocol converter is used for communication protocol conversion between the program storage unit 103 and the upper computer, and communication protocol conversion between the control unit 102 and the upper computer. For example, program storage unit 103 has a serial peripheral interface (Serial Perripheral Interface, SPI) that can be used to communicate with other devices using the SPI protocol. The control unit 102 has a universal asynchronous receiver transmitter (Universal Asynchronous Receiver Transmitter, UART) and an SPI interface, and can communicate with other devices through an SPI protocol and a UART protocol, for example, the control unit 102 can communicate with the program storage unit 103 through the SPI protocol, and for example, the control unit 102 can communicate with the protocol conversion unit 105 through the UART protocol. In the process of program downloading, the upper computer is connected with the protocol conversion unit 105 through the connection unit 101, the upper computer is communicated with the protocol conversion unit 105 through a USB protocol, and the protocol conversion unit 105 establishes a first communication protocol connection through an SPI protocol from the communication management unit 104 to the program storage unit 103. At this time, the protocol conversion unit 105 operates in the first protocol conversion mode, and may convert the USB data transmitted from the host computer into SPI data, transmit the SPI data to the program storage unit 103, or convert the SPI data read from the program storage unit 103 into USB data, and transmit the USB data to the host computer through the connection unit 101. Similarly, in the operation process of the integrated circuit, the upper computer and the protocol conversion unit 105 communicate through a USB protocol, and the protocol conversion unit 105 and the control unit 102 establish a second communication protocol connection through a UART protocol. At this time, the protocol conversion unit 105 operates in the second protocol conversion mode, and may convert the USB data transmitted from the host computer into UART data, transmit the UART data to the control unit 102, or convert the UART data transmitted from the control unit 102 into USB data, and transmit the USB data to the host computer.
Optionally, the communication management unit 104 includes a switching subunit and a switching subunit; the switch subunit is respectively connected to the protocol conversion unit 105 and the switching subunit, and the switch subunit is configured to control the communication management unit 104 to switch between a first state and a second state, and control the protocol conversion unit 105 to switch between a first protocol conversion mode corresponding to the first state and a second protocol conversion mode corresponding to the second state. The switching subunit is further connected to the control unit 102, the program storage unit 103 and the protocol conversion unit 105, respectively, and is configured to close a first connection between the protocol conversion unit 105 and the program storage unit 103 in a first state, to open a second connection between the control unit 102 and the program storage unit 103, and to open the first connection and close the second connection in a second state.
As shown in fig. 2, fig. 2 shows a schematic structural diagram of another integrated circuit in an embodiment of the present invention, where the switch subunit 1041 is respectively connected to the protocol conversion unit 105 and the switching subunit 1042, and the switch subunit 1041 may send a first protocol conversion setting signal to the protocol conversion unit 105 in a first state and send a first switching signal to the switching subunit 1042, and send a second protocol conversion setting signal to the protocol conversion unit 105 in a second state and send a second switching signal to the switching subunit 1042. The first interface of the switching subunit 1042 is connected to the protocol conversion unit 105, the second interface is connected to the program storage unit 103, and the third interface is connected to the control unit 102. The switching subunit 1042 may connect the first interface with the second interface after receiving the first switching signal, so as to connect the protocol conversion unit 105 with the program storage unit 103, and establish a first communication protocol connection. Accordingly, the protocol conversion unit 105 may operate in the first protocol conversion mode in response to the first protocol conversion setting signal after receiving the first protocol conversion setting signal, converting and transferring the program data between the connection unit 101 and the program storage unit 103. Similarly, the switching subunit 1042 may connect the second interface with the third interface after receiving the second switching signal to connect the control unit 102 with the program storage unit 103. Accordingly, the protocol conversion unit 105 may operate in the second protocol conversion mode corresponding to the second communication protocol connection after receiving the second protocol conversion setting signal, convert and transfer the operation data between the connection unit 101 and the control unit 102, and the control unit 102 may read the program data from the program storage unit 103 and operate.
As shown in fig. 3, fig. 4 and fig. 5, fig. 3 shows a schematic circuit diagram of a communication management unit in an embodiment of the present invention, fig. 4 shows a schematic circuit diagram of a program storage unit in an embodiment of the present invention, and fig. 5 shows a schematic circuit diagram of a protocol conversion unit in an embodiment of the present invention. The switch subunit 1041 may include a dial switch 301, the switch subunit 1042 may include a double-throw switch chip 302 and its peripheral circuitry, and the peripheral circuitry of the double-throw switch chip 302 may include a first capacitor 303 and a second capacitor 304. The second pin 2, the fifth pin 5, the eleventh pin 11, and the fourteenth pin 14 of the double-throw switch chip 302 form a first interface, and the first interface is connected with the protocol conversion unit 105; the fourth pin 4, the seventh pin 7, the ninth pin 9 and the twelfth pin 12 form a second interface, and the second interface is connected with the program storage unit 103; the third pin 3, the sixth pin 6, the tenth pin 10 and the thirteenth pin 13 constitute a third interface, and the third interface is connected to the control unit 102. One end of the dial switch 301 is grounded, the other end of the dial switch 301 is connected to a first pin 1 of the double-throw switch chip 302, and the first pin 1 is a switch pin. When the user dials the dial switch 301 to close the dial switch 301, the communication management unit switches to the first state, and the switch pin of the double-throw switch chip 302 is connected with a low level, and a low level signal is a first switching signal. At this time, the double-throw switch chip 302 may control the second pin 2 to communicate with the fourth pin 4, the fifth pin 5 to communicate with the seventh pin 7, the eleventh pin 11 to communicate with the ninth pin 9, and the fourteenth pin 14 to communicate with the twelfth pin 12, that is, the first interface to communicate with the second interface to communicate the protocol conversion unit 105 with the program storage unit 103, respectively. Correspondingly, when the dial switch 301 is turned off, the switch pin of the double-throw switch chip 302 is connected to a high level through the fifth resistor 505 shown in fig. 5, the communication management unit switches to the second state, and the switch pin of the double-throw switch chip 302 is not grounded and is at a high level, and the high level signal is the second switching signal. At this time, the double-throw switch chip 302 may control the third pin 3 to communicate with the fourth pin 4, the sixth pin 6 to communicate with the seventh pin 7, the tenth pin 10 to communicate with the ninth pin 9, and the thirteenth pin 13 to communicate with the twelfth pin 12, that is, the second interface to communicate with the third interface to communicate the program storage unit 103 with the control unit 102, respectively. The specific circuit configuration of the communication management unit 104 may be set according to the need, and the present embodiment is not limited thereto.
As shown in fig. 3 and 4, the program storage unit 103 may include a memory 401 and its peripheral circuits, and the peripheral circuits of the memory 401 may include a first resistor 402, a second resistor 403, and a third resistor 404. Referring to fig. 3 and 4, a first pin 1 of a memory 401 is connected to a twelfth pin 12 of a double-throw switch chip 302, a second pin 2 of the memory 401 is connected to a ninth pin 9 of the double-throw switch chip 302, a fifth pin 5 of the memory 401 is connected to a seventh pin 7 of the double-throw switch chip 302, and a sixth pin 6 of the memory 401 is connected to a fourth pin 4 of the double-throw switch chip 302. The specific circuit principle of the program storage unit 103 may be set according to the need, and the present embodiment is not limited thereto.
As shown in fig. 3 and 5, the protocol conversion unit 105 includes a protocol conversion chip 501. The fourth resistor 502 and the third capacitor 503 are connected in series to form a power-on reset circuit of the protocol conversion chip 501. One end of the third capacitor 503 connected to the fourth resistor 502 is also connected to a reset pin of the protocol conversion chip 501, and one end of the third capacitor 503 not connected to the fourth resistor 502 is connected to the fourth capacitor 504. One end of the fourth capacitor 504, which is not connected with the third capacitor 503, is grounded, and one end of the fourth capacitor connected with the third capacitor is also connected with the power supply voltage of the protocol conversion chip 501. The tenth pin 10 and the eleventh pin 11 of the protocol conversion chip 501 are respectively connected to communication terminals in the USB-typeC interface, so as to realize connection with the USB-typeC interface. The fifth pin 5 and the sixth pin 6 of the protocol conversion chip 501 are connected with corresponding pins in the UART interface of the control unit 102. The twenty-second pin 22 of the protocol conversion chip 501 is connected to the eleventh pin 11 of the double-throw switch chip 302, the twentieth pin 20 of the protocol conversion chip 501 is connected to the fifth pin 5 of the double-throw switch chip 302, the eighteenth pin 18 of the protocol conversion chip 501 is connected to the second pin 2 of the double-throw switch chip 302, and the fifteenth pin 15 of the protocol conversion chip 501 is connected to the fourteenth pin 14 of the double-throw switch chip 302. The fifth resistor 505 and the dial switch 301 form a control circuit of the protocol conversion chip 501, the twenty-third pin 23 of the protocol conversion chip 501 is connected to one end of the dial switch 301, and when the dial switch 301 is closed, the twenty-third pin 23 of the protocol conversion chip 501 is connected to a low-level signal, i.e. a first protocol conversion setting signal. At this time, the protocol conversion chip 501 switches to the first protocol conversion mode, and performs conversion between the USB protocol and the SPI protocol between the connection unit 102 and the program storage unit 103. Correspondingly, when the dial switch 301 is turned off, the twenty-third pin 23 of the protocol conversion chip 501 is connected to a high level signal, i.e. a second protocol conversion setting signal, through the fifth resistor 505. At this time, the protocol conversion chip 501 switches to the second protocol conversion mode, and performs conversion between the USB protocol and the UART protocol between the connection unit 101 and the control unit 102. The specific circuit configuration of the protocol conversion unit 105 may be set according to the requirement, and the present embodiment is not limited thereto.
In practical applications, when the communication management unit 104 includes a switch subunit and a switch subunit, simple circuit elements such as a switch and a double-throw switch chip may be used to form the switch subunit and the switch subunit, so that the structure of the communication management unit 104 may be simplified, and the structure of the integrated circuit may be further simplified.
In the embodiment of the present invention, the integrated circuit includes a connection unit 101, a control unit 102, a program storage unit 103, a communication management unit 104, and a protocol conversion unit 105. The communication management unit 104 is respectively connected with the control unit 102, the program storage unit 103 and the protocol conversion unit 105, wherein the protocol conversion unit 105 is also respectively connected with the control unit 102 and the connection unit 101; the connection between the protocol conversion unit 105 to the program storage unit 103 via the communication management unit 104 is a first communication protocol connection, and the connection between the protocol conversion unit 105 and the control unit 102 is a second communication protocol connection. The communication management unit 104 is capable of switching between a first state and a second state, the communication management unit 104 being configured to close a first connection between the protocol conversion unit 105 and the program storage unit 103, disconnect a second connection between the control unit 102 and the program storage unit 103, and place the protocol conversion unit 105 in a first protocol conversion mode capable of converting between a communication protocol of the connection unit 101 and a first communication protocol of the program storage unit 103 in the first state; in the second state, the first connection is opened and the second connection is closed, and the protocol conversion unit 105 is placed in a second protocol conversion mode capable of converting between the communication protocol of the connection unit 101 and the second communication protocol of the control unit 102. Through the arrangement of the protocol conversion unit and the communication management unit, the integrated circuit can use the same connection unit to communicate with other devices in the process of program downloading and running, and frequent switching use among a plurality of connection units can be avoided. Furthermore, since only one connection unit is provided in the integrated circuit, it is possible to avoid providing too many connection units in the integrated circuit, and thus the integrated circuit can be miniaturized and portable.
Optionally, the integrated circuit further includes a voltage conversion unit connected to the connection unit 101, the voltage conversion unit being configured to convert the power supply voltage from the connection unit 101 and output the power supply voltage to at least one of the control unit 102, the program storage unit 103, the communication management unit 104, and the protocol conversion unit 105.
As shown in fig. 6, fig. 6 shows a schematic structural diagram of still another integrated circuit in the embodiment of the present invention, where an input end of a voltage conversion unit 106 is connected to a connection unit 101, and an output end is connected to a protocol conversion unit 105, a control unit 102, a communication management unit 104, and a program storage unit 103, respectively. The connection unit 101 may receive a power supply voltage input to the integrated circuit and transmit the power supply voltage to the voltage conversion unit 106, and the voltage conversion unit 106 may convert the power supply voltage into a power supply voltage, and provide the power supply voltage to the protocol conversion unit 105, the program storage unit 103, the control unit 104, the communication management unit 104, and/or the like, respectively.
In one embodiment, the voltage conversion unit 106 includes a first voltage conversion subunit and a second voltage conversion subunit, the first voltage conversion subunit and the second voltage conversion subunit outputting different supply voltages. As shown in fig. 7, fig. 7 shows a schematic structural diagram of a voltage conversion unit and a connection between the voltage conversion unit and a connection unit and a control unit in an embodiment of the present invention, where the voltage conversion unit 106 includes two voltage conversion sub-units, namely a first voltage conversion sub-unit 1061 and a second voltage conversion sub-unit 1062, each of which includes a voltage stabilizing chip and a corresponding peripheral circuit. When the connection unit 101 includes a universal serial bus interface, a power terminal of the universal serial bus interface is connected to each voltage conversion subunit, respectively. When the usb interface is connected to the host computer, the power supply terminal of the usb interface may supply a 5V power supply voltage, and at this time, the first voltage converting subunit 1061 may convert the 5V power supply voltage to a first power supply voltage of 3.3V, and the second converting subunit 1062 may convert the 5V power supply voltage to a power supply voltage of 1.2V. As shown in fig. 8A, fig. 8A shows a circuit schematic diagram of a first voltage conversion subunit in an embodiment of the present invention, where the first voltage conversion subunit 801 in fig. 8A includes a first voltage stabilizing chip 8011, a second pin 2 and a seventh pin 7 of the first voltage stabilizing chip 8011 are connected to a 5V voltage terminal in a USB-type c interface, a fourth pin 4 is connected to a ground terminal in the USB-type c interface, and the first voltage stabilizing chip 8011 can convert a 5V power supply voltage into a 3.3V first power supply voltage. Similarly, as shown in fig. 8B, fig. 8B shows a schematic circuit diagram of a second voltage conversion subunit according to an embodiment of the present invention, where the second voltage conversion subunit 802 includes a second voltage stabilizing chip 8021, a second pin 2 and a seventh pin 7 of the second voltage stabilizing chip 8021 are connected to a 5V voltage terminal in the USB-typeC interface, a fourth pin 4 is connected to a ground terminal in the USB-typeC interface, and the second voltage stabilizing chip 8021 can convert a 5V power supply voltage into a 1.2V power supply voltage. As shown in conjunction with fig. 3, 4 and 5, the first voltage stabilizing chip 8011 may provide 3.3V for the double throw switch chip 302, the memory 401 and the protocol converter 501, while the second voltage stabilizing chip 8021 may provide 1.2V for a chip in the integrated circuit that requires 1.2V. The peripheral circuits of the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 may be set according to a specific type of the voltage stabilizing chip, which is not limited in this embodiment.
In practical application, the integrated circuit includes the voltage conversion unit 106, and when the voltage conversion unit 106 is connected to the upper computer through the connection unit 101, the power supply voltage can be directly obtained from the upper computer, so that the power adapter can be avoided being set in the integrated circuit. Meanwhile, when the voltage conversion unit 106 includes a plurality of voltage conversion subunits, different levels of supply voltages can be provided for the integrated circuit, and the requirements of the integrated circuit on the different levels of supply voltages can be met.
Optionally, the integrated circuit may further comprise a status indication unit connected to the communication management unit 104, the status indication unit being configured to output a first status indication signal when the communication management unit 104 is in the first state and to output a second status indication signal when the communication management unit 104 is in the second state.
As shown in fig. 2, the status indication unit 107 may output a first status indication signal during the program download process and a second status indication signal during the operation process, the first status indication signal and the second status indication signal being different indication signals. The status indication unit 107 is connected to the switch subunit 1041 in the communication management unit 104, and the switch subunit 1041 may send a first status signal to the status indication unit 107 in the first status, and the corresponding status indication unit 107 may output the first status indication signal to prompt the user that the program is being downloaded. Similarly, the switch subunit 1041 may send a second status signal to the status indication unit 107 in the second state, and the corresponding status indication unit 107 may output the second status indication signal to prompt the user that the integrated circuit is in the running state. Specifically, the status indicating unit 107 may include light emitting diodes of different colors, and the status indicating unit 107 may represent different states of the integrated circuit by outputting status indicating signals of different colors through the light emitting diodes. The specific structure of the status indication unit 107 may be set according to the need, which is not limited in this embodiment.
In practical applications, the status indication unit 107 may output different status indication signals during the program downloading and running processes of the integrated circuit, so as to remind the user of the status of the integrated circuit, and facilitate the use of the integrated circuit.
Optionally, the integrated circuit may further include a voltage indication unit connected to the voltage conversion unit 106, where the voltage indication unit is configured to receive a supply voltage of the voltage conversion unit 106 and output a voltage indication signal according to the received supply voltage.
As shown in fig. 8A, the voltage indicating unit 900 includes a light emitting diode 902 and a voltage reducing resistor 901 connected in series, one end of the voltage reducing resistor 901 is connected to the voltage output pin 5 of the first voltage stabilizing chip 8011, the other end is connected to the light emitting diode 902, and one end of the light emitting diode 902, which is not connected to the voltage reducing resistor 901, is grounded. In combination with the above example, when the USB-type c interface is connected to the host computer, the first voltage stabilizing chip 8011 may receive the power voltage and output the power voltage of 3.3V, and at this time, the light emitting diode 902 is turned on to emit light, and outputs a voltage indication signal.
In practical application, when the integrated circuit includes the voltage indicating unit 900, the voltage indicating unit 900 may output a voltage indicating signal after the integrated circuit is powered on, so that a user may know the working state of the integrated circuit conveniently.
For example, as shown in fig. 6, the program storage unit 103 may include a nonvolatile memory such as a flash memory (flash), which may store program data in an integrated circuit. Optionally, the integrated circuit may further comprise a data storage unit 108, the data storage unit 108 being connected to the control unit 102. The data storage unit 108 may include a Static Random-Access Memory (SRAM), and the SRAM is connected to the control unit 102 through a parallel port, and is used to store temporary data when the control unit 102 is running.
Optionally, the integrated circuit may further include a power switching unit, one end of which is connected to the voltage converting unit 106, and the other end of which is connected to the connection unit 101.
As shown in fig. 6, a power switching unit 109 is provided between the connection unit 101 and the voltage conversion unit 106, and one end of the power switching unit 101 is connected to the connection unit 101 and the other end is connected to the voltage conversion unit 106. More specifically, referring to fig. 8A and 8B, the power switch unit 109 may be a switch, one end of which is connected to a power terminal in the USB-type c interface, and the other end of which is connected to the voltage input pins 2 of the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021. When the switch is turned off, the connection between the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 and the USB-type c interface is turned off, and the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 stop working, and cannot provide power supply voltage for the integrated circuit, so that the integrated circuit stops working. When the switch is closed, the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 are connected and closed with the USB-typeC interface, the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 work, power supply voltage can be provided for the integrated circuit, and the integrated circuit works normally.
In practical applications, when the power switch unit 109 is disposed in the integrated circuit, the power on and off of the integrated circuit can be controlled, and the integrated circuit can be controlled conveniently.
Optionally, the integrated circuit may further comprise a display unit, a camera and/or a driving unit, etc.
In one embodiment, the integrated circuit may be a development board, and the technical solution of the above embodiment makes the development board only need one USB cable to supply power, burn programs and/or debug, so that the development board is convenient to carry and use.
Referring to fig. 9, a method for implementing program development in an embodiment of the present invention is shown, where the method includes:
step 901, when the communication management unit receives the first control signal, closing a first connection between the protocol conversion unit and the program storage unit, disconnecting a second connection between the control unit and the program storage unit, and sending a first protocol conversion setting signal to the protocol conversion unit; and after receiving the first protocol conversion setting signal, the protocol conversion unit enters a first protocol conversion mode for converting between the communication protocol of the connection unit and the first communication protocol of the program storage unit so as to convert and transfer the program data between the connection unit and the program storage unit.
Step 901, when the communication management unit receives the second control signal, the first connection is disconnected and the second connection is closed, and a second protocol conversion setting signal is sent to the protocol conversion unit; and after receiving the second protocol conversion setting signal, the protocol conversion unit enters a second protocol conversion mode converted between the communication protocol of the connection unit and the second communication protocol of the control unit so as to convert and transmit the operation data between the connection unit and the control unit.
In combination with the above example, the first control signal may be a closing signal that toggles the dial switch 301 to close the dial switch 301, and the second control signal may be an opening signal that toggles the dial switch 301 to open the dial switch 301. The specific implementation process of step 901 and step 902 may refer to the above examples, and this embodiment will not be described in detail.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
The above detailed description of an integrated circuit and a method for implementing program development provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (9)

1. An integrated circuit, comprising: the device comprises a connection unit, a control unit, a program storage unit, a communication management unit and a protocol conversion unit;
the communication management unit is respectively connected with the control unit, the program storage unit and the protocol conversion unit, wherein the protocol conversion unit is also respectively connected with the control unit and the connection unit, the connection between the protocol conversion unit and the program storage unit through the communication management unit is a first communication protocol connection, and the connection between the protocol conversion unit and the control unit is a second communication protocol connection;
the communication management unit and the protocol conversion unit are matched to realize conversion and transfer of program data between the connection unit and the program storage unit in a first state, and conversion and transfer of operation data between the connection unit and the control unit in a second state;
the communication management unit comprises a switch subunit and a switching subunit;
the switch subunit is respectively connected with the protocol conversion unit and the switching subunit, and is used for controlling the communication management unit to switch between the first state and the second state and controlling the protocol conversion unit to switch between a first protocol conversion mode corresponding to the first state and a second protocol conversion mode corresponding to the second state;
the switching subunit is further connected with the control unit, the program storage unit and the protocol conversion unit respectively, and is used for closing a first connection between the protocol conversion unit and the program storage unit in a first state and opening a second connection between the control unit and the program storage unit, and opening the first connection and closing the second connection in a second state.
2. The integrated circuit according to claim 1, further comprising a voltage conversion unit connected to the connection unit, the voltage conversion unit being configured to convert a power supply voltage from the connection unit, and output the power supply voltage to at least one of the control unit, the program storage unit, the communication management unit, and the protocol conversion unit.
3. The integrated circuit of claim 2, wherein the voltage conversion unit comprises a first voltage conversion subunit and a second voltage conversion subunit, the first voltage conversion subunit and the second voltage conversion subunit outputting different supply voltages.
4. The integrated circuit of claim 2, wherein the connection unit comprises a universal serial bus interface, a communication terminal of the universal serial bus interface is connected to the protocol conversion unit, and a power terminal of the universal serial bus interface is connected to the voltage conversion unit.
5. The integrated circuit of claim 2, further comprising a voltage indication unit coupled to the voltage conversion unit, the voltage indication unit configured to receive a supply voltage of the voltage conversion unit and output a voltage indication signal based on the received supply voltage.
6. The integrated circuit of claim 2, further comprising a power switching unit having one end connected to the voltage conversion unit and the other end connected to the connection unit.
7. The integrated circuit of claim 1, further comprising a status indication unit coupled to the communication management unit, the status indication unit configured to output a first status indication signal when the communication management unit is in the first state and to output a second status indication signal when the communication management unit is in the second state.
8. The integrated circuit of any of claims 1-7, further comprising a data storage unit coupled to the control unit.
9. A method of implementing program development in an integrated circuit according to any one of claims 1-8, comprising:
when the communication management unit receives the first control signal, a first connection between the protocol conversion unit and the program storage unit is closed, a second connection between the control unit and the program storage unit is disconnected, and a first protocol conversion setting signal is sent to the protocol conversion unit; after receiving the first protocol conversion setting signal, the protocol conversion unit enters a first protocol conversion mode converted between a communication protocol of a connection unit and a first communication protocol of the program storage unit so as to convert and transfer program data between the connection unit and the program storage unit;
when the communication management unit receives a second control signal, the first connection is disconnected, the second connection is closed, and a second protocol conversion setting signal is sent to the protocol conversion unit; and after receiving the second protocol conversion setting signal, the protocol conversion unit enters a second protocol conversion mode converted between the communication protocol of the connection unit and the second communication protocol of the control unit so as to convert and transmit the operation data between the connection unit and the control unit.
CN202110876030.9A 2021-07-30 2021-07-30 Integrated circuit and method for realizing program development thereof Active CN113722120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110876030.9A CN113722120B (en) 2021-07-30 2021-07-30 Integrated circuit and method for realizing program development thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110876030.9A CN113722120B (en) 2021-07-30 2021-07-30 Integrated circuit and method for realizing program development thereof

Publications (2)

Publication Number Publication Date
CN113722120A CN113722120A (en) 2021-11-30
CN113722120B true CN113722120B (en) 2024-04-05

Family

ID=78674525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110876030.9A Active CN113722120B (en) 2021-07-30 2021-07-30 Integrated circuit and method for realizing program development thereof

Country Status (1)

Country Link
CN (1) CN113722120B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0996101A2 (en) * 1998-10-22 2000-04-26 Fujitsu Limited Integrated circuit for protocol control
CN1473300A (en) * 2000-09-29 2004-02-04 Intelligent networks storage interface system and devices
WO2006087773A1 (en) * 2005-02-15 2006-08-24 Fujitsu Limited Protocol converting circuit
EP1705873A1 (en) * 2005-03-25 2006-09-27 Sanden Corporation Communication system, network router and network connection method applying address conversion
CN1996328A (en) * 2006-12-29 2007-07-11 北京飞天诚信科技有限公司 Portable information safety device
CN102469165A (en) * 2010-10-29 2012-05-23 (株)拜斯倍斯 Multiprotocol Adapter System and Data Conversion Method in Multiprotocol Adapter System
CN103164240A (en) * 2011-12-19 2013-06-19 Gn奈康有限公司 Firmware upgrade function for deskphone electronic protocol converter
CN105516078A (en) * 2014-10-01 2016-04-20 Ls产电株式会社 Protocol converter
CN106598897A (en) * 2016-12-13 2017-04-26 天津通信广播集团有限公司 Industry bus system self-adaptive to three industry bus protocols and conversion method
CN106603363A (en) * 2016-12-31 2017-04-26 重庆川仪自动化股份有限公司 Intelligent bus switching controller
CN107370750A (en) * 2017-08-16 2017-11-21 青岛海信宽带多媒体技术有限公司 A kind of date storage method of interconnecting module, device and interconnecting module
CN108415866A (en) * 2018-02-27 2018-08-17 深圳市风云实业有限公司 Intelligent platform management controller
CN108494652A (en) * 2018-03-09 2018-09-04 沈阳中科博微科技股份有限公司 A kind of EtherCAT high speed Ethernets protocol conversion fusion method
CN210123460U (en) * 2019-05-29 2020-03-03 昆山龙腾光电股份有限公司 Testing device and testing equipment
CN211427090U (en) * 2019-08-26 2020-09-04 珠海极海半导体有限公司 Micro control unit device
CN112562121A (en) * 2020-12-30 2021-03-26 洛阳伟信电子科技有限公司 Storage data and rapid downloading method based on SRIO protocol
WO2021073480A1 (en) * 2019-10-18 2021-04-22 深圳市道通科技股份有限公司 Interface circuit and interface communication method and device thereof

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0996101A2 (en) * 1998-10-22 2000-04-26 Fujitsu Limited Integrated circuit for protocol control
CN1473300A (en) * 2000-09-29 2004-02-04 Intelligent networks storage interface system and devices
WO2006087773A1 (en) * 2005-02-15 2006-08-24 Fujitsu Limited Protocol converting circuit
EP1705873A1 (en) * 2005-03-25 2006-09-27 Sanden Corporation Communication system, network router and network connection method applying address conversion
CN1996328A (en) * 2006-12-29 2007-07-11 北京飞天诚信科技有限公司 Portable information safety device
CN102469165A (en) * 2010-10-29 2012-05-23 (株)拜斯倍斯 Multiprotocol Adapter System and Data Conversion Method in Multiprotocol Adapter System
CN103164240A (en) * 2011-12-19 2013-06-19 Gn奈康有限公司 Firmware upgrade function for deskphone electronic protocol converter
CN105516078A (en) * 2014-10-01 2016-04-20 Ls产电株式会社 Protocol converter
CN106598897A (en) * 2016-12-13 2017-04-26 天津通信广播集团有限公司 Industry bus system self-adaptive to three industry bus protocols and conversion method
CN106603363A (en) * 2016-12-31 2017-04-26 重庆川仪自动化股份有限公司 Intelligent bus switching controller
CN107370750A (en) * 2017-08-16 2017-11-21 青岛海信宽带多媒体技术有限公司 A kind of date storage method of interconnecting module, device and interconnecting module
CN108415866A (en) * 2018-02-27 2018-08-17 深圳市风云实业有限公司 Intelligent platform management controller
CN108494652A (en) * 2018-03-09 2018-09-04 沈阳中科博微科技股份有限公司 A kind of EtherCAT high speed Ethernets protocol conversion fusion method
CN210123460U (en) * 2019-05-29 2020-03-03 昆山龙腾光电股份有限公司 Testing device and testing equipment
CN211427090U (en) * 2019-08-26 2020-09-04 珠海极海半导体有限公司 Micro control unit device
WO2021073480A1 (en) * 2019-10-18 2021-04-22 深圳市道通科技股份有限公司 Interface circuit and interface communication method and device thereof
CN112562121A (en) * 2020-12-30 2021-03-26 洛阳伟信电子科技有限公司 Storage data and rapid downloading method based on SRIO protocol

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SATA1.0接口的高速图像传输系统设计;杨雷;夏宇闻;;中国集成电路(08);全文 *
基于TCP/IP协议栈的串口-网口转换器设计;王琪;工业控制计算机;全文 *

Also Published As

Publication number Publication date
CN113722120A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US7523338B2 (en) Apparatus and method to support USB enumeration of a bus powered handheld device
CN111090605B (en) USB-to-UART circuit for MCU software upgrade
US7269669B2 (en) Sharing single host controller with multiple functional devices
EP1775652B1 (en) Apparatus and method to support USB enumeration of a BUS powered handheld device
WO2021258255A1 (en) Dual-interface switch circuit and type-c hub
JP2008192123A (en) Storage device automatically switching interface
CN107515341B (en) Test board
KR20030042056A (en) Card type device capable of being used in secondary battery and host for using the card type device
CN217689081U (en) Chip testing device
US8463978B2 (en) Computer with ability to charge electronic device in power off state and USB interface module thereof
CN202798652U (en) Signal conversion circuit and interface switching equipment
CN113722120B (en) Integrated circuit and method for realizing program development thereof
CN210006035U (en) USB and OTG function switching control circuit, device and mobile terminal
CN216118764U (en) Integrated circuit
CN110032107B (en) Logic system and control method for controlling on-off of 4 paths of signals by using 3 relays
US6246600B1 (en) Multi-use battery
CN210573761U (en) Interface conversion circuit and signal detection device
CN217509888U (en) Battery pole and atomizing device
CN114116570A (en) Electronic device control system and electronic device control method
KR200377353Y1 (en) Data communication device having switching function
CN217588067U (en) UART serial port communication device with wireless communication function
KR20050006484A (en) Compatible usb connector and method for communicating data using it
CN217821586U (en) USB switching circuit and USB switching device
CN212364517U (en) Compatible development board
CN220085495U (en) Test platform

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
GR01 Patent grant
GR01 Patent grant