Disclosure of Invention
The invention provides an anti-irradiation design framework and a control method of an optical module control application specific integrated circuit aiming at the problems in the prior art, and provides a design framework of an anti-irradiation optical module product without a controller in an aerospace environment, so as to solve the technical problems of low real-time speed, stability, electromagnetic interference resistance and poor anti-irradiation capability of a central processing unit and an FPGA framework.
In order to achieve the technical purpose, the invention is realized by adopting the following technical scheme:
a radiation-resistant design architecture for an optical module control application specific integrated circuit, comprising:
the data bus slave interface is used for receiving the temperature compensation data and transmitting the temperature compensation data to the data bus;
a memory for receiving and storing temperature compensation data on the data bus;
the temperature sensing circuit is used for detecting temperature;
the table look-up and calculation unit is used for receiving the detection temperature of the temperature sensing circuit, reading the temperature compensation data stored in the memory through a data bus and acquiring the temperature compensation data corresponding to the detection temperature according to the detection temperature; the temperature compensation data corresponding to the detected temperature are transmitted to a data bus;
and the data bus host interface is used for receiving and outputting temperature compensation data corresponding to the detected temperature.
The radiation-resistant design architecture of the optical module control application specific integrated circuit, as described above, further comprises:
at least one analog channel for receiving analog data;
at least one analog-to-digital converter for outputting a digital signal to the look-up table and calculation unit:
when one analog converter corresponds to a plurality of analog channels, the analog channel selection circuit is further included, and the analog channel which is conducted with the analog-to-digital converter is selected through the analog channel selection circuit.
The radiation-resistant design architecture of the optical module control application specific integrated circuit, as described above, further comprises:
and the debugging module is used for sending the temperature compensation data received by the data bus slave interface to the memory for storage through the data bus when the temperature compensation data is legal.
The radiation-resistant design architecture of the optical module control application specific integrated circuit, as described above, further comprises:
and the register configuration module is used for configuring register parameters.
The radiation-resistant design architecture of the optical module control application specific integrated circuit, as described above, further comprises:
the GPIO interface is used for inputting or outputting data;
the table look-up and calculation module is used for monitoring the input of the GPIO interface and the input of the analog channel and outputting data at the GPIO interface.
The control method based on the optical module comprises the following steps of:
outputting the initialization data in the memory through a data bus host interface;
the temperature sensing circuit detects the temperature;
and the table look-up and calculation unit receives the detected temperature, reads the temperature compensation data stored in the memory through a data bus, acquires the temperature compensation data corresponding to the detected temperature according to the detected temperature, and outputs the temperature compensation data corresponding to the detected temperature through a data bus host interface.
The control method of the optical module monitors the input of the GPIO interface and the input of the analog channel, and outputs data at the GPIO interface.
A control method of an optical module as described above, the control method comprising programming a debug mode: and in the normal working mode, if legal temperature compensation data are received, sending the temperature compensation data to a memory for storage through a data bus.
According to the control method of the optical module, the irradiation dose is acquired, when the irradiation dose exceeds the normal operation limiting value, a first safety mode is operated, and when the irradiation dose exceeds the first safety mode, the data bus host interface outputs the temperature compensation data which is output last time or the set temperature compensation data.
The control method of the optical module as described above operates a second safety mode when the irradiation dose exceeds a burnout limit value, the second safety mode being higher in level than the first safety mode.
Compared with the prior art, the invention has the advantages and positive effects that: the irradiation-resistant design framework of the optical module control application specific integrated circuit can collect the temperature inside the chip in real time, and configures the peripheral laser driving chip and the receiving limiting-amplifying chip through the data bus host interface according to the temperature compensation data configured at different temperatures. Therefore, the invention can meet the irradiation-resistant requirement in the aerospace environment and can realize the effective control of the driving chip in the optical module. The invention can also realize the miniaturization design meeting the irradiation resistance index requirement in the aerospace environment. The invention can be applied to the development of anti-irradiation optical module products in the aerospace environment, replaces the traditional microcontroller and meets the data transmission requirement of an aerospace environment load system.
Other features and advantages of the present invention will become apparent upon review of the detailed description of the invention in conjunction with the drawings.
Detailed Description
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The irradiation-resistant design architecture of the optical module control application specific integrated circuit effectively solves the problem that a traditional microcontroller cannot be used by an irradiation-resistant optical module product in an aerospace environment. The embodiment can realize the miniaturized design meeting the irradiation-resistant index requirement in the aerospace environment, replace the traditional microcontroller, cancel the embedded software design, improve the performances of the controller such as electromagnetic interference resistance, space irradiation resistance and real-time response speed, and the like, and the irradiation-resistant design framework can meet the irradiation-resistant requirement of the integrated circuit in the aerospace environment and can realize the effective control of the driving chip in the optical module. The design and development of the irradiation-resistant optical module product in the aerospace environment can be realized through the embodiment, and the requirements of various load data transmission of the aerospace system are met.
Specifically, the following specifically describes a radiation-resistant design architecture of the optical module control asic according to this embodiment:
the irradiation-proof design structure of the optical module control application specific integrated circuit comprises a data bus slave interface, a memory, a temperature sensing circuit, a table look-up and calculation unit, a data bus host interface, a data bus, an analog-to-digital converter, an analog channel selection circuit, a debugging module, a register configuration module, a GPIO interface and a GPIO configuration module.
As shown in fig. 1, in this embodiment, the data bus is an IIC bus, the data bus slave interface is an IIC bus slave interface, and the data bus host interface is an IIC bus host interface for illustration:
the IIC bus slave interface is used for receiving the temperature compensation data sent by the upper computer and transmitting the temperature compensation data to the IIC bus when the debugging module judges that the temperature compensation data are legal.
And the memory is used for receiving and storing the temperature compensation data on the data bus. The memory of this embodiment is a PROM memory and a nonvolatile memory. The PROM memory is used for storing core key data capable of providing basic functions under the worst irradiation condition, and ensuring that the chip can provide basic functions under the worst irradiation condition. The nonvolatile memory is used for storing important data capable of providing all functions and guaranteeing all functions of the chip.
And the temperature sensing circuit is used for detecting the temperature. The temperature sensing circuit of the embodiment includes a temperature sensing circuit 0 and a temperature sensing circuit 1, which can be used to collect the temperature inside and/or outside the chip.
The table look-up and calculation unit is used for receiving the detection temperature of the temperature sensing circuit, reading the temperature compensation data stored in the memory through the data bus, and acquiring the temperature compensation data corresponding to the detection temperature according to the detection temperature; and the temperature compensation data corresponding to the detected temperature are transmitted to the IIC bus and are transmitted to the corresponding IIC bus host interface through the IIC bus.
And the IIC bus host interface is used for receiving the temperature compensation data corresponding to the detected temperature, outputting the temperature compensation data to the peripheral driving/limiting-amplifying chip and configuring the peripheral driving/limiting-amplifying chip. Meanwhile, the chip also performs data acquisition on the peripheral driving/limiting chip so as to realize monitoring.
At least one analog channel, in this embodiment comprising AIN0-AIN5 6 analog channels, is used to receive analog data.
At least one analog-to-digital converter, the present embodiment includes two analog-to-digital converters, analog-to-digital converter 0 and analog-to-digital converter 1, the analog-to-digital converters are configured to output digital signals to the look-up table and calculation unit:
when one analog converter corresponds to a plurality of analog channels, the analog channel selection circuit is also included, and the analog channel which is conducted with the analog-to-digital converter is selected through the analog channel selection circuit.
The present embodiment includes an analog channel selection circuit 0 corresponding to the analog-to-digital converter 0, and an analog channel selection circuit 1 corresponding to the analog-to-digital converter 1. Wherein analog channel select circuit 0 corresponds to AIN0-AIN2 and analog channel select circuit 1 corresponds to AIN3-AIN5.
And the debugging module is used for sending the temperature compensation data to the memory for storage through the IIC bus when the temperature compensation data received by the IIC bus slave interface is legal. The method for judging whether the temperature compensation data is legal or not comprises the following steps: and judging whether the programming pins, the programming passwords and the programming configuration are valid or not, if yes, legal, otherwise, illegal.
And the register configuration module is used for configuring register parameters.
GPIO interface, is used for inputting or outputting the data.
And the GPIO configuration module is used for configuring GPIO parameters.
The table look-up and calculation module is used for monitoring the input of the GPIO interface and the input of the analog channel and outputting data at the GPIO interface.
The embodiment also provides a control method of the optical module, wherein the control method comprises the following steps of in a normal working mode:
after power-on, the initialization data in the memory is refreshed into the register of the chip, and the configuration data of the peripheral chip in the memory is output through the data bus host interface and written into the peripheral chip according to the configuration of the register.
The temperature sensing circuit detects the temperature;
the table look-up and calculation unit receives the detected temperature, reads the temperature compensation data stored in the memory through the data bus, acquires the temperature compensation data corresponding to the detected temperature according to the detected temperature, outputs the temperature compensation data corresponding to the detected temperature through the data bus host interface, writes the temperature compensation data into the peripheral chip, and reads the peripheral chip data back.
The input of the GPIO interface and the input of the analog channel are monitored, and data is output at the GPIO interface according to the register configuration.
As shown in fig. 2, the method specifically comprises the following steps:
s1, powering up.
S2, refreshing the initialized data in the memory into the chip register.
S3, according to the register configuration, writing configuration data of the peripheral chip in the memory into the peripheral chip, and entering S4 and S7.
S4, collecting temperature data.
S5, looking up a table according to the temperature value.
S6, writing the table look-up data into the peripheral chip, and reading back the peripheral chip data. Step S4 is entered.
S7, monitoring the input of the GPIO and the input of the ADC.
S8, outputting data on the GPIO according to the register configuration. Step S7 is entered.
The control method of the present embodiment further includes programming the debug mode: and in the normal working mode, if legal temperature compensation data are received, sending the temperature compensation data to a memory for storage through a data bus.
The control method of the embodiment further includes a safety mode to protect the optical module. Specifically, in the normal working mode, the irradiation dose is acquired, when the irradiation dose exceeds the normal working limit value, the first safety mode is operated, and in the first safety mode, the data bus host interface outputs the temperature compensation data which is output last time or the set temperature compensation data. And when the irradiation dose exceeds the burning limit value, a second safety mode is operated, the level of the second safety mode is higher than that of the first safety mode, and when the second safety mode is operated, temperature compensation configuration is not carried out according to the temperature value, all functions except the main IIC and the self-checking are closed, so that the chip is protected in real time.
And after the self-checking temperature and the current are recovered to be normal, the safety working state is exited after a period of time, and the normal working state is entered.
The irradiation dose is monitored through an integrated circuit table lookup and calculation unit, when the temperature and the working current exceed the normal working limit value, the irradiation dose is considered to exceed the normal working limit value, and when the temperature and the working current do not exceed the normal working limit value, the irradiation dose is considered to be at the normal working limit value. When the temperature and the working current exceed the burning limit value, the irradiation dose is considered to exceed the burning limit value, and when the temperature and the working current do not exceed the burning limit value, the irradiation dose is considered to not exceed the burning limit value.
The control method of the embodiment further comprises a reset mode and a self-checking mode, wherein the reset mode resets each module, and the self-checking mode performs self-checking on each module.
As shown in fig. 3, the flow of switching between the operating states of the integrated circuit of this embodiment is specifically described:
s1, resetting the integrated circuit according to requirements. The method specifically comprises power-on reset, undervoltage reset, pin receiving external signal reset, upper computer soft reset and the like.
S2, a reset mode.
S3, whether the resetting of each module is completed or not, if yes, the step S4 is carried out, and if not, the step S2 is carried out.
S4, a self-checking mode.
S5, each module is successfully self-checked, if yes, the step S6 is carried out, and if not, the step S14 is carried out.
S6, resetting a self-checking failure frequency counter.
S7, in a normal working mode.
S8, judging whether the temperature and current self-checking values exceed normal operation limiting values, if so, entering a step S9, otherwise, entering a step S16.
S9, judging whether the temperature and current self-checking values exceed the chip burning limit values, if so, entering a step S10, otherwise, entering a step S12.
S10, a second safety mode.
S11, whether the temperature and current self-checking values are normal or not, if so, entering a step S7, otherwise, entering a step S10.
S12, a first safety mode.
S13, whether the temperature and current self-checking values are normal or not, if so, entering a step S7, otherwise, entering a step S12.
S14, a self-checking failure time counter +1.
S15, the number of self-checking failures is equal to 3, if yes, the step S6 is entered, and if not, the step S2 is entered.
S16, whether the programming pin, the programming password and the programming configuration are simultaneously effective or not, if yes, the step S17 is entered, and if not, the step S7 is entered.
S17, programming a debugging mode.
S18, power failure exits.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that modifications may be made to the technical solutions described in the foregoing embodiments, or equivalents may be substituted for some of the technical features thereof; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.