CN113722120A - Integrated circuit and method for realizing program development - Google Patents
Integrated circuit and method for realizing program development Download PDFInfo
- Publication number
- CN113722120A CN113722120A CN202110876030.9A CN202110876030A CN113722120A CN 113722120 A CN113722120 A CN 113722120A CN 202110876030 A CN202110876030 A CN 202110876030A CN 113722120 A CN113722120 A CN 113722120A
- Authority
- CN
- China
- Prior art keywords
- unit
- protocol conversion
- connection
- voltage
- protocol
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000006243 chemical reaction Methods 0.000 claims abstract description 211
- 238000004891 communication Methods 0.000 claims abstract description 110
- 230000005540 biological transmission Effects 0.000 claims abstract description 7
- 238000007726 management method Methods 0.000 claims description 64
- 238000013500 data storage Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 14
- 230000000087 stabilizing effect Effects 0.000 description 12
- 230000002093 peripheral effect Effects 0.000 description 10
- 239000003990 capacitor Substances 0.000 description 9
- 230000006641 stabilisation Effects 0.000 description 6
- 238000011105 stabilization Methods 0.000 description 6
- 108010001267 Protein Subunits Proteins 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-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, relating 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 protocol conversion unit is connected with the program storage unit through the communication management unit to form a first communication protocol connection, and the protocol conversion unit is connected with the control unit to form a second communication protocol connection. The communication management unit and the protocol conversion unit are matched to realize the conversion and the transmission of the program data between the connection unit and the program storage unit in the first state and the conversion and the transmission of the operation data between the connection unit and the control unit in the second state. The arrangement of the protocol conversion unit and the communication management unit enables the integrated circuit to use one connection unit to communicate with other devices in the process of downloading and running programs, and can avoid frequent switching use among a plurality of connection units.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an integrated circuit and a method for implementing program development.
Background
An integrated circuit typically 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 process of the integrated circuit, two connection units are usually arranged in the integrated circuit because the program downloading process is different from the running process. In the program downloading process, the program storage unit and an upper computer are connected through the first connecting unit, the upper computer such as a computer writes program data into the program storage unit through the first connecting unit. In the operation process of the integrated circuit, the control unit and the upper computer are connected 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 to be used 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 aim to solve 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 problem, 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 protocol conversion unit is connected with the program storage unit through the communication management unit as a first communication protocol, and the protocol conversion unit is connected with the control unit as a second communication protocol;
the communication management unit and the protocol conversion unit are matched to realize conversion and transmission of program data between the connection unit and the program storage unit in a first state and conversion and transmission 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 switching subunit;
the switching subunit is respectively connected with the protocol conversion unit and the switching subunit, and is configured to control the communication management unit to switch between the first state and the second state, and control 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 to the control unit, the program storage unit, and the protocol conversion unit, respectively, and is configured to close a first connection between the protocol conversion unit and the program storage unit and to disconnect a second connection between the control unit and the program storage unit in a first state, and to disconnect the first connection and close the second connection in a second state.
Optionally, the integrated circuit further includes a voltage conversion unit connected to the connection unit, where the voltage conversion unit is configured to convert a power supply voltage from the connection unit and output a 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 converting unit includes a first voltage converting subunit and a second voltage converting subunit, where the first voltage converting subunit and the second voltage converting subunit output different supply voltages.
Optionally, the connection unit includes a universal serial bus interface, a communication end of the universal serial bus interface is connected to the protocol conversion unit, and a power end of the universal serial bus interface is connected to the voltage conversion unit.
Optionally, the integrated circuit further includes a voltage indication unit connected to the voltage conversion unit, where the voltage indication unit is configured to receive a supply voltage of the voltage conversion unit and output a voltage indication signal according to the received supply voltage.
Optionally, the integrated circuit further includes a power switch unit, one end of the power switch unit is connected to the voltage conversion unit, and the other end of the power switch unit is connected to 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 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 problem, the present invention also discloses a method for implementing program development according to the above integrated circuit, comprising:
after receiving the first control signal, the communication management unit closes the first connection between the protocol conversion unit and the program storage unit, disconnects the second connection between the control unit and the program storage unit, and sends a first protocol conversion setting signal to the protocol conversion unit; 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 transmit the program data between the connection unit and the program storage unit;
after receiving a second control signal, the communication management unit disconnects the first connection and closes the second connection, and sends a second protocol conversion setting signal to the protocol conversion unit; and after receiving the second protocol conversion setting signal, the protocol conversion unit enters a second protocol conversion mode for converting 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, due to the structures, functions and connection relations of the connecting unit, the control unit, the program storage unit, the communication management unit and the protocol conversion unit in the integrated circuit, especially the arrangement of the protocol conversion unit and the communication management unit, the integrated circuit can use the same connecting unit to communicate with other equipment in the process of downloading and running programs, the frequent switching use among a plurality of connecting 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 shows a schematic diagram of another integrated circuit in an embodiment of the invention;
FIG. 3 shows a circuit schematic of a communication management unit in an embodiment of the invention;
FIG. 4 shows a circuit schematic of a program storage unit in an embodiment of the invention;
fig. 5 shows a circuit schematic of a protocol conversion unit in an embodiment of the invention;
FIG. 6 shows a schematic diagram of a further integrated circuit in an embodiment of the invention;
fig. 7 is a schematic structural diagram illustrating a voltage conversion unit and its connection with a connection unit and a control unit according to an embodiment of the present invention;
FIG. 8A shows a circuit schematic of a first voltage converting subunit in an embodiment of the invention;
FIG. 8B is a circuit diagram of a second voltage converting subunit in an embodiment of the invention;
fig. 9 shows a method for implementing program development in an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core concepts of the embodiments of the present invention is to provide a protocol conversion unit and a communication management unit in an integrated circuit, communicate the protocol conversion unit and a program storage unit through the communication management unit in a program downloading process, convert and transmit program data between a connection unit and the program storage unit through the protocol conversion unit, and write the program data into the program storage unit. In the operation process of the integrated circuit, the communication management unit is communicated with the program storage unit and the control unit, the protocol conversion unit is used for converting and transmitting operation data between the connection unit and the control unit, the same connection unit is used for connecting the integrated circuit under different conditions, and the protocol conversion unit is used for executing the conversion and transmission of the data under different conditions, so that the switching use among a plurality of connection units in the use process of the integrated circuit is avoided.
Referring to fig. 1, a schematic structural diagram of an integrated circuit in an embodiment of the present invention is shown, where 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 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, respectively, the connection between the protocol conversion unit 105 and 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 cooperates with the protocol conversion unit 105 to realize conversion and transfer of program data between the connection unit 101 and the program storage unit 103 in the first state, and to convert and transfer of 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 is configured to close a first connection between the protocol conversion unit 105 and the program storage unit 103 in the first state, 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 the communication protocol of the connection unit 101 and the first communication protocol of the program storage unit 103; 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 upper computer, and 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 operating process of the integrated circuit. On the one hand, the communication management unit 104 may close a first connection between the protocol conversion unit 105 and the program storage unit 103 and disconnect a second connection between the control unit 102 and the program storage unit 103 in the first state. At this time, the upper computer and the program storage unit 103 establish a communication connection via the connection unit 101 and the protocol conversion unit 105, and the protocol conversion unit 105 converts and transfers program data between the program storage unit 103 and the connection unit 101, that is, 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 transmits 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, meanwhile, the control unit 102 is connected with the program storage unit 103, and the control unit 102 can read program data from the program storage unit 103 and operate the program data.
In one embodiment, the control Unit 102 may include a processor (CPU) and peripheral circuits of the processor, and the processor may read program data from the program storage Unit 103 and execute the program data to control the operation of the integrated circuit. The program storage unit 103 may include a non-volatile memory (non-volatile 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 can be set according to the requirements, and this embodiment does not limit this.
Optionally, the connection unit 101 includes a Universal Serial Bus (USB) interface, and a communication end of the USB interface is connected to the protocol conversion unit 105. For example, when the connection unit 101 includes a USB-typeC interface, the protocol conversion unit 105 can communicate with the upper computer through a USB protocol. In practical applications, the structure of the USB interface is simple, and when the protocol conversion unit 105 communicates with the upper 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, the program storage unit 103 has a Serial Peripheral Interface (SPI), and can communicate with other devices using an SPI protocol. The control unit 102 has a 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 program downloading process, 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 the USB protocol, and the protocol conversion unit 105 is connected with the program storage unit 103 through the SPI protocol through the communication management unit 104. At this time, the protocol conversion unit 105 operates in the first protocol conversion mode, and may convert USB data sent by the upper computer into SPI data and send the SPI data to the program storage unit 103, or convert SPI data read from the program storage unit 103 into USB data and send the USB data to the upper computer through the connection unit 101. Similarly, in the operation process of the integrated circuit, the upper computer communicates with the protocol conversion unit 105 through the USB protocol, and the protocol conversion unit 105 establishes a second communication protocol connection with the control unit 102 through the UART protocol. At this time, the protocol conversion unit 105 operates in the second protocol conversion mode, and may convert USB data transmitted by the upper computer into UART data and transmit the UART data to the control unit 102, or convert UART data transmitted by the control unit 102 into USB data and transmit the USB data to the upper computer.
Optionally, the communication management unit 104 includes a switch subunit and a switching subunit; the switch subunit is connected to the protocol conversion unit 105 and the switching subunit, respectively, and is configured to control the communication management unit 104 to switch between the first state and the 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 the first state, disconnect a second connection between the control unit 102 and the program storage unit 103, and disconnect the first connection and close the second connection in the second state.
As shown in fig. 2, fig. 2 shows a schematic structural diagram of another integrated circuit in the embodiment of the present invention, the switch subunit 1041 is connected to the protocol conversion unit 105 and the switching subunit 1042, respectively, and the switch subunit 1041 may send a first protocol conversion setting signal to the protocol conversion unit 105 and send a first switching signal to the switching subunit 1042 in a first state, and send a second protocol conversion setting signal to the protocol conversion unit 105 and send a second switching signal to the switching subunit 1042 in a second state. 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 sub-unit 1042 can connect the first interface and the second interface after receiving the first switching signal, so as to connect the protocol conversion unit 105 and the program storage unit 103, and establish the first communication protocol connection. Accordingly, the protocol conversion unit 105 can operate in the first protocol conversion mode, convert and transfer the program data between the connection unit 101 and the program storage unit 103 in response to the first protocol conversion setting signal after receiving the first protocol conversion setting signal. Similarly, the switching sub-unit 1042 can communicate the second interface with the third interface after receiving the second switching signal to communicate 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.
Exemplarily, as shown in fig. 3, fig. 4 and fig. 5, fig. 3 shows a circuit schematic diagram of a communication management unit in an embodiment of the present invention, fig. 4 shows a circuit schematic diagram of a program storage unit in an embodiment of the present invention, and fig. 5 shows a circuit schematic diagram of a protocol conversion unit in an embodiment of the present invention. The switch subunit 1041 may include a dial switch 301, the switching subunit 1042 may include a double-throw switch chip 302 and its peripheral circuits, and the peripheral circuits 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 to 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 form a third interface, and the third interface is connected with the control unit 102. One end of the dial switch 301 is grounded, and the other end is connected to a first pin 1 of the double-throw switch chip 302, where the first pin 1 is a switch pin. When a 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 to the low level, i.e., the 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, respectively, that is, the first interface communicates with the second interface to communicate with the protocol conversion unit 105 and the program storage unit 103. 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, the switch pin of the double-throw switch chip 302 is not grounded and is a high level, and a high level signal is a 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, respectively, that is, the second interface communicates with the third interface, so as to communicate with the program storage unit 103 and the control unit 102. The specific circuit structure of the communication management unit 104 may be set according to the requirement, and this embodiment does not limit this.
As shown in fig. 3 and 4, the program storage unit 103 may include a memory 401 and peripheral circuits thereof, 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, the first pin 1 of the memory 401 is connected to the twelfth pin 12 of the double-throw switch chip 302, the second pin 2 of the memory 401 is connected to the ninth pin 9 of the double-throw switch chip 302, the fifth pin 5 of the memory 401 is connected to the seventh pin 7 of the double-throw switch chip 302, and the sixth pin 6 of the memory 401 is connected to the fourth pin 4 of the double-throw switch chip 302. The specific circuit principle of the program storage unit 103 can be set according to the requirement, and the embodiment does not limit this.
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 further 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. The end of the fourth capacitor 504 not connected to the third capacitor 503 is grounded, and the end connected to the third capacitor is also connected to the 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 a communication terminal in the USB-typeC interface, so as to implement 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 constitute 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, which is a first protocol conversion setting signal. At this time, the protocol conversion chip 501 switches to the first protocol conversion mode, and the conversion between the USB protocol and the SPI protocol is performed 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 the conversion between the USB protocol and the UART protocol is performed between the connection unit 101 and the control unit 102. The specific circuit structure of the protocol conversion unit 105 may be set according to the requirement, and this embodiment does not limit this.
In practical applications, when the communication management unit 104 includes a switch subunit and a switching subunit, the switch subunit and the switching subunit may be formed by simple circuit elements such as a switch and a double-throw switch chip, which may simplify the structure of the communication management unit 104 and further simplify the structure of the integrated circuit.
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 and 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 is configured to close a first connection between the protocol conversion unit 105 and the program storage unit 103 in the first state, 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 the communication protocol of the connection unit 101 and the first communication protocol of the program storage unit 103; 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 connecting unit to communicate with other equipment in the process of downloading and running the program, and frequent switching use among a plurality of connecting units can be avoided. In addition, since only one connecting unit is provided in the integrated circuit, it is possible to avoid providing too many connecting units in the integrated circuit, thereby making the integrated circuit compact 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.
Exemplarily, as shown in fig. 6, fig. 6 shows a schematic structural diagram of another integrated circuit in the embodiment of the present invention, an input end of the voltage conversion unit 106 is connected to the connection unit 101, and an output end thereof is connected to the protocol conversion unit 105, the control unit 102, the communication management unit 104, and the 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 to supply the power supply voltage to the protocol conversion unit 105, the program storage unit 103, the control unit 104, and/or the communication management unit 104, respectively.
In one embodiment, the voltage converting unit 106 includes a first voltage converting subunit and a second voltage converting subunit, and the first voltage converting subunit and the second voltage converting subunit output different supply voltages. As shown in fig. 7, fig. 7 is a schematic structural diagram illustrating a voltage converting unit and connections between the voltage converting unit and a connection unit and a control unit in an embodiment of the present invention, where the voltage converting unit 106 includes two voltage converting sub-units, namely a first voltage converting sub-unit 1061 and a second voltage converting sub-unit 1062, and each voltage converting sub-unit includes a voltage stabilizing chip and a corresponding peripheral circuit. When the connection unit 101 includes a universal serial bus interface, the power supply terminals of the universal serial bus interface are connected to each of the voltage converting sub-units, respectively. When the usb interface is connected to the upper computer, the power source terminal of the usb interface may supply a 5V power voltage, and at this time, the first voltage converting subunit 1061 may convert the 5V power voltage into a 3.3V first power voltage, and the second voltage converting subunit 1062 may convert the 5V power voltage into a 1.2V power voltage. 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, in fig. 8A, the first voltage conversion subunit 801 includes a first voltage stabilization chip 8011, a second pin 2 and a seventh pin 7 of the first voltage stabilization chip 8011 are connected to a 5V voltage terminal in a USB-typeC interface, a fourth pin 4 is connected to a ground terminal in the USB-typeC interface, and the first voltage stabilization chip 8011 may convert a power voltage of 5V into a first power supply voltage of 3.3V. Similarly, as shown in fig. 8B, fig. 8B shows a circuit schematic diagram of a second voltage conversion subunit in the embodiment of the present invention, the second voltage conversion subunit 802 includes a second voltage stabilization chip 8021, a second pin 2 and a seventh pin 7 of the second voltage stabilization chip 8021 are connected to a 5V voltage end in the USB-typeC interface, a fourth pin 4 is connected to a ground end in the USB-typeC interface, and the second voltage stabilization chip 8021 can convert a power voltage of 5V into a power supply voltage of 1.2V. As shown in fig. 3, 4 and 5, the first voltage regulator chip 8011 may provide a voltage of 3.3V for the double-throw switch chip 302, the memory 401 and the protocol converter 501, and the second voltage regulator chip 8021 may provide a supply voltage of 1.2V for a chip of the integrated circuit that needs a voltage of 1.2V. The peripheral circuits of the first voltage regulator chip 8011 and the second voltage regulator chip 8021 may be configured according to the specific type of the voltage regulator chip, which is not limited in this embodiment.
In practical application, the integrated circuit comprises the voltage conversion unit 106, when the voltage conversion unit 106 is connected with an upper computer through the connection unit 101, power supply voltage can be directly obtained from the upper computer, and a power adapter can be prevented from being arranged 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 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 program downloading and a second status indication signal during operation, where the first status indication signal and the second status indication signal are different indication signals. The status indication unit 107 is connected to the switch subunit 1041 in the communication management unit 104, 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 operating state. Specifically, the status indication unit 107 may include light emitting diodes with different colors, and the status indication unit 107 may output status indication signals with different colors through the light emitting diodes to indicate different statuses of the integrated circuit. The specific structure of the status indication unit 107 can be set according to the requirement, and this embodiment is not limited to this.
In practical application, the state indicating unit 107 can output different state indicating signals respectively during the program downloading and running processes of the integrated circuit to remind a user of the state of the integrated circuit, so that the integrated circuit can be conveniently used.
Optionally, the integrated circuit may further include a voltage indication unit connected to the voltage conversion unit 106, and the voltage indication unit is configured to receive the supply voltage of the voltage conversion unit 106 and output a voltage indication signal according to the received supply voltage.
Illustratively, as shown in fig. 8A, the voltage indicating unit 900 includes a light emitting diode 902 and a step-down resistor 901 connected in series, one end of the step-down 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 step-down resistor 901, is grounded. By combining the above example, when the USB-typeC interface is connected to the upper computer, the first voltage regulator chip 8011 may receive the power voltage and output a 3.3V power supply voltage, 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 indication unit 900, the voltage indication unit 900 may output a voltage indication signal after the integrated circuit is powered on, so that a user can know the operating state of the integrated circuit conveniently.
Illustratively, 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 for storing temporary data during operation of the control unit 102.
Optionally, the integrated circuit may further include a power switch unit, one end of which is connected to the voltage conversion unit 106, and the other end of which is connected to the connection unit 101.
As shown in fig. 6, the power switch unit 109 is provided between the connection unit 101 and the voltage conversion unit 106, and one end of the power switch 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 having one end connected to a power terminal of the USB-typeC interface and the other end connected to the voltage input pin 2 of the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021. When the switch is turned off, the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 are disconnected from the USB-type c interface, the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 stop working, the integrated circuit cannot be supplied with power supply voltage, and 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, and the first voltage stabilizing chip 8011 and the second voltage stabilizing chip 8021 operate to provide a supply voltage for the integrated circuit, so that the integrated circuit operates normally.
In practical application, 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 conveniently controlled.
Optionally, the integrated circuit may further comprise a display unit, a camera and/or a driving unit, etc.
In one embodiment, the integrated circuit can be a development board, and the technical scheme of the embodiment enables the development board to be capable of supplying power, burning programs and/or debugging only by one USB line, and is convenient to carry and use.
Referring to fig. 9, a method for implementing program development in the embodiment of the present invention is shown, where the method includes:
In conjunction with the above example, the first control signal may be a close signal for toggling the dip switch 301 to close the dip switch 301, and the second control signal may be an open signal for toggling the dip switch 301 to open the dip switch 301. The specific implementation processes of step 901 and step 902 may refer to the above example, which is not described in detail in this embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The integrated circuit and the method for developing the program thereof provided by the present invention are introduced in detail, and the principle and the implementation manner of the present invention are explained by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
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 protocol conversion unit is connected with the program storage unit through the communication management unit as a first communication protocol, and the protocol conversion unit is connected with the control unit as a second communication protocol;
the communication management unit and the protocol conversion unit are matched to realize conversion and transmission of program data between the connection unit and the program storage unit in a first state and conversion and transmission of operation data between the connection unit and the control unit in a second state.
2. The integrated circuit of claim 1, wherein the communication management unit comprises a switching subunit and a switching subunit;
the switching subunit is respectively connected with the protocol conversion unit and the switching subunit, and is configured to control the communication management unit to switch between the first state and the second state, and control 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 to the control unit, the program storage unit, and the protocol conversion unit, respectively, and is configured to close a first connection between the protocol conversion unit and the program storage unit and to disconnect a second connection between the control unit and the program storage unit in a first state, and to disconnect the first connection and close the second connection in a second state.
3. 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.
4. The integrated circuit of claim 3, wherein the voltage converting unit comprises a first voltage converting subunit and a second voltage converting subunit, and the first voltage converting subunit and the second voltage converting subunit output different supply voltages.
5. The integrated circuit according to claim 3, wherein the connection unit comprises a universal serial bus interface, a communication terminal of the universal serial bus interface is connected with the protocol conversion unit, and a power terminal of the universal serial bus interface is connected with the voltage conversion unit.
6. The integrated circuit of claim 3, further comprising a voltage indication unit connected to the voltage conversion unit, wherein the voltage indication unit is configured to receive a supply voltage of the voltage conversion unit and output a voltage indication signal according to the received supply voltage.
7. The integrated circuit of claim 3, further comprising a power switch unit, wherein one end of the power switch unit is connected to the voltage conversion unit, and the other end of the power switch unit is connected to the connection unit.
8. 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.
9. The integrated circuit of any of claims 1-8, further comprising a data storage unit coupled to the control unit.
10. A method for integrated circuit implemented program development according to any of claims 1-9, comprising:
after receiving the first control signal, the communication management unit closes the first connection between the protocol conversion unit and the program storage unit, disconnects the second connection between the control unit and the program storage unit, and sends a first protocol conversion setting signal to the protocol conversion unit; 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 transmit the program data between the connection unit and the program storage unit;
after receiving a second control signal, the communication management unit disconnects the first connection and closes the second connection, and sends a second protocol conversion setting signal to the protocol conversion unit; and after receiving the second protocol conversion setting signal, the protocol conversion unit enters a second protocol conversion mode for converting 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.
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 true CN113722120A (en) | 2021-11-30 |
CN113722120B 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)
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 |
-
2021
- 2021-07-30 CN CN202110876030.9A patent/CN113722120B/en active Active
Patent Citations (17)
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)
Title |
---|
杨雷;夏宇闻;: "基于SATA1.0接口的高速图像传输系统设计", 中国集成电路, no. 08 * |
王琪: "基于TCP/IP协议栈的串口-网口转换器设计", 工业控制计算机 * |
Also Published As
Publication number | Publication date |
---|---|
CN113722120B (en) | 2024-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6663420B1 (en) | Adapter for exchanging data and transmitting power between PC and portable device | |
US5157769A (en) | Computer data interface for handheld computer transfer to second computer including cable connector circuitry for voltage modification | |
CN217689081U (en) | Chip testing device | |
US20120021696A1 (en) | Data card with usb function | |
CN110442216B (en) | System, apparatus and method for flexible control of voltage regulator of integrated circuit | |
US20080012524A1 (en) | Chargeable electronic devices and direct current voltage supply systems | |
CN107515341B (en) | Test board | |
KR102315230B1 (en) | ELECTRONIC DEVICE WITH USB Type-C CONNECTOR | |
US20120089763A1 (en) | Computer and usb interface module thereof | |
WO2022095606A1 (en) | Information reading method, device, cable, charging system, and computer storage medium | |
US20070136497A1 (en) | System and method of communicating with portable devices | |
CN107391410B (en) | Bridge connector | |
CN113722120A (en) | Integrated circuit and method for realizing program development | |
CN216118764U (en) | Integrated circuit | |
US20220050515A1 (en) | Transmission device with external power | |
CN110417083B (en) | External equipment power supply unit | |
CN110380719A (en) | Data transmission circuit, control system and the control device of chip | |
CN110597375B (en) | External equipment power supply device | |
US6246600B1 (en) | Multi-use battery | |
CN209401012U (en) | A kind of USB interface power control | |
CN113220623A (en) | Electronic device sharing universal sequence bus signal and operation method thereof | |
EP2297833A1 (en) | Charge suspend feature for mobile device | |
KR20110015742A (en) | Method for power supply using usb interface and portable terminal using the same | |
US6781525B2 (en) | Shared interface device | |
KR200377353Y1 (en) | Data communication device having switching function |
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 |