High reliability initialization timing control unit for electronic systems

By designing a highly reliable initialization sequence control unit in the electronic system to ensure the duration of the power-on reset signal and watchdog reset signal, the problem of unsuccessful peripheral initialization is solved and 100% normal initialization of the electronic system and CPU are achieved. , Highly reliable operation of peripherals.

CN111752739BActive Publication Date: 2024-09-03CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010528895.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-11
Publication Date
2024-09-03
Estimated Expiration
2040-06-11

AI Technical Summary

Technical Problem

During the power-on initialization process of existing electronic systems, there is a risk of unsuccessful peripheral initialization with a small probability. Especially during BSP initialization, the low pulse width of the peripheral reset signal does not last long enough, causing peripherals such as the GM7150 to fail to work properly.

Method used

A highly reliable initialization timing control unit for electronic systems is designed. Through the collaborative work of the watchdog monitoring chip, CPLD chip and CPU chip, it ensures the duration of the power-on reset signal and the watchdog reset signal, and ensures that the CPU and peripherals are reset. The low pulse width time of the signal meets the initialization requirements of GM7150, and a suitable dog feeding signal is generated through CPLD logic and application software to extend the duration of the reset signal.

Benefits of technology

It achieves 100% normal power-on initialization of the electronic system, ensuring high-reliability operation of the CPU and peripherals. It is suitable for all complex electronic systems, and only needs to change the CPLD logic and application software based on traditional methods without changing the hardware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111752739B
    Figure CN111752739B
Patent Text Reader

Abstract

The invention discloses a high-reliability initialization timing control unit for an electronic system. A watchdog monitoring chip sends a low-pulse-width watchdog reset signal after power-on, and sends a low-pulse-width watchdog period reset signal when no normal hardware dog feeding signal is received; a high-level watchdog reset signal is sent when a normal hardware dog feeding signal is received; a CPLD chip outputs a low-pulse-width CPU reset signal and a peripheral reset signal in response to the low-pulse-width watchdog reset signal, and changes to a high level after a lag of 20us; after receiving a low-level software dog-banning signal, a normal hardware dog-feeding signal is generated through internal hardware logic, and after receiving a high-level software dog-banning signal, a normal hardware dog-feeding signal is generated through application software; a CPU chip outputs a low-level software dog-banning signal when BSP starts initialization; after all tasks complete initialization, the application software runs and outputs a high-level software dog-banning signal to start a dog feeding operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The patent of this invention belongs to the field of electronic engineering and relates to a high-reliability initialization timing control unit for an electronic system. Background Art

[0002] Power-on initialization is an essential part of the operation of electronic systems. Stable and reliable operation of electronic systems requires normal power-on initialization as a prerequisite. Power-on initialization generally includes operating system initialization, BSP initialization, memory initialization, and peripheral initialization. This series of initialization operations requires timing control to complete, such as Figure 1 The figure shows a typical electronic system timing control unit, which is composed of a watchdog monitoring chip, a CPLD chip, a CPU chip and a peripheral chip. Each chip is interconnected through signals, including a dog-disable signal, a dog-feeding signal, a power-on reset signal, a watchdog reset signal, a CPU reset signal, a peripheral reset signal, etc. The specific meanings of each signal are as follows:

[0003] a) Software watchdog disable signal (WD_EN): The CPU operates the corresponding register through software, so that the corresponding GPIO pin generates a 0 or 1 level control signal. A value of 0 indicates that the watchdog is not enabled or disabled, and a value of 1 indicates that the watchdog is enabled or turned on;

[0004] b) Hardware watchdog disable signal (CPLD_WD_EN): A control signal generated by hardware outside the unit. A value of 0 indicates that the watchdog is not enabled or disabled, and a value of 1 indicates that the watchdog is enabled or turned on.

[0005] c) Software dog feeding signal (WD_INH): The CPU operates the corresponding register through software, so that the corresponding GPIO pin generates a control signal that changes from 0 to 1, forming a square wave signal with a pulse width of 200ms;

[0006] d) Hardware dog feeding signal (CPLD_WD_INH): The 200ms pulse width square wave signal of 0 and 1 conversion output by CPLD can be generated by the CPLD's own logic or directly obtained by using WD_INH;

[0007] e) Power-on reset signal (CPLD_PSM_RST): The power-on reset signal sent by the external power supply, the low pulse width duration is ≥30ms;

[0008] f) Watchdog reset signal (WD_RST): The reset signal output by the watchdog monitoring chip. After power-on, it will send a low pulse width signal with a duration of 200ms. When the watchdog is not fed, it will send a low pulse width signal with a periodic duration of 200ms.

[0009] g) Peripheral reset signal (VIDEO_RST): The reset signal output by CPLD to the peripheral, and its signal characteristics are determined by the CPLD logic.

[0010] h) CPU reset signal (PS_POR_B): The reset signal output by CPLD to CPU, and its signal characteristics are determined by CPLD logic.

[0011] The eight signals of software dog-disable signal WD_EN, hardware dog-disable signal CPLD_WD_EN, power-on reset signal CPLD_PSM_RST, hardware dog-feeding signal CPLD_WD_INH, watchdog reset signal WD_RST, peripheral reset signal VIDEO_RST, CPU reset signal PS_POR_B, and software dog-feeding signal WD_INH are processed by logic in the CPLD chip, among which software dog-disable signal WD_EN, hardware dog-disable signal CPLD_WD_EN, power-on reset signal CPLD_PSM_RST, watchdog reset signal WD_RST, and software dog-feeding signal WD_INH are used as input signals, and hardware dog-feeding signal CPLD_WD_INH, peripheral reset signal VIDEO_RST, and CPU reset signal PS_POR_B are used as output signals. The logical relationship is described as follows:

[0012] a) Hardware dog feeding signal CPLD_WD_INH can be generated by CPLD hardware logic, or it can be obtained by directly using WD_INH. The signal characteristic is a 200ms pulse width square wave with 0 and 1 switching;

[0013] b)VIDEO_RST=(CPLD_WD_EN&WD_EN)? WD_RST:1'b1;

[0014] c) The CPU reset signal PS_POR_B is generated by a specific logic according to the input power-on reset signal CPLD_PSM_RST and the watchdog reset signal WD_RST;

[0015] d) When the software dog disable signal WD_EN=1, the watchdog is turned on and the dog feeding signal WD_INH is started. When the software dog disable signal WD_EN=0, the watchdog is disabled and the dog feeding signal WD_INH is turned off.

[0016] like Figure 2The figure shows the traditional initialization timing control diagram of the electronic system. The CPU reset signal PS_POR_B responds to the watchdog reset signal WD_RST with a low pulse width and lags behind by 20us. The CPU reset is completed and the operating system initialization operation is performed. At this time, the CPU reset signal PS_POR_B only responds to the power-on reset signal CPLD_PSM_RST reset signal within 32s. The watchdog monitoring chip does not receive the normal dog feeding signal, causing the watchdog reset signal WD_RST to send a periodic reset signal with a pulse width of 200ms. The peripheral reset signal VIDEO_RST responds to the watchdog reset signal WD_RST and also sends a periodic reset signal. When the operating system initialization is completed, the BSP starts to initialize, the software dog disable signal WD_EN is set low by the BSP, the watchdog is disabled, and the peripheral reset signal VIDEO_RST outputs a high level until the application software turns on the watchdog and feeds the dog 30s later. The software dog disable signal WD_EN is pulled high, and the application software turns on task monitoring, thus completing the power-on initialization process of the electronic system.

[0017] The electronic system can generally achieve normal initialization by using the above initialization timing control process, but there is also a small probability of failure in the initialization of the peripherals. Taking GM7150 as an example, the following is explained:

[0018] GM7150 is a NTSC / PAL / SECAM video decoder. It can work normally after normal initialization. The power-on initialization process of GM7150 is as follows: Figure 3 As shown, the power-on initialization timing diagram of GM7150 is as follows Figure 4 As shown in the figure, it can be seen that the power-on initialization of GM7150 requires the reset signal RESETB to be kept at a low level for at least "500ns+20ms". Figure 2 It can be seen that the peripheral reset signal VIDEO_RST is the RESETB peripheral reset signal sent to GM7150. Its low pulse width duration is 200ms, which meets the GM7150 power-on initialization timing requirements. However, since the software dog disable signal WD_EN signal will be set low during BSP initialization, the peripheral reset signal VIDEO_RST will be pulled high at this time. Figure 5 As shown, the peripheral reset signal VIDEO_RST will be pulled high when the low pulse width duration is very short (less than "500ns+20ms" time), and the power-on initialization of GM7150 will fail.

[0019] In view of the existence of the above risks, it is urgent to find a new system initialization timing control method to meet the needs of 100% normal initialization of the system. Summary of the invention

[0020] Aiming at the shortcomings of the traditional initialization timing control method of the electronic system, the present invention proposes a high-reliability initialization timing control unit for the electronic system, which provides sufficient power-on reset time for the CPU and peripherals and ensures 100% normal power-on initialization of the electronic system.

[0021] A high-reliability initialization timing control unit for an electronic system, comprising a watchdog monitoring chip, a CPLD chip, a CPU chip and a peripheral chip;

[0022] The timing control unit sends a low pulse width power-on reset signal CPLD_PSM_RST with a duration of ≥30ms to the CPLD chip after power-on.

[0023] After power-on, the watchdog monitoring chip sends a low-pulse-width watchdog reset signal WD_RST with a duration of 200ms to the CPLD chip. If it does not receive the normal hardware dog-feeding signal CPLD_WD_INH, it sends a low-pulse-width watchdog reset signal WD_RST with a cycle duration of 200ms to the CPLD chip; if it receives the normal hardware dog-feeding signal CPLD_WD_INH, it sends a high-level watchdog reset signal WD_RST to the CPLD chip.

[0024] In response to the low-pulse-width watchdog reset signal WD_RST, the CPLD chip outputs a low-pulse-width CPU reset signal PS_POR_B to the CPU chip and a low-pulse-width peripheral reset signal VIDEO_RST to the peripheral chip, and then changes to a high-level CPU reset signal PS_POR_B and a peripheral reset signal VIDEO_RST after a lag of 20us; after receiving the low-level software dog-disabling signal WD_EN, the CPLD chip generates a normal hardware dog-feeding signal CPLD_WD_INH through internal hardware logic and outputs it to the watchdog monitoring chip; after receiving the high-level software dog-disabling signal WD_EN, the CPLD chip generates a hardware dog-feeding signal CPLD_WD_INH according to the normal software dog-feeding signal WD_INH generated by the application software on the CPU and outputs it to the watchdog monitoring chip;

[0025] After the operating system is initialized, the CPU chip outputs a low-level software dog-disabling signal WD_EN to the CPLD chip when the BSP starts to initialize; after the BSP initialization is completed, the application software starts the dog feeding operation and generates a normal software dog feeding signal WD_INH, but the software dog-disabling signal WD_EN remains at a low level; after all tasks are initialized, the application software outputs a high-level software dog-disabling signal WD_EN to the CPLD chip, and the CPLD chip selects the software dog feeding signal WD_INH to generate the hardware dog feeding signal CPLD_WD_INH and outputs it to the watchdog monitoring chip.

[0026] The beneficial effects of the present invention are:

[0027] The electronic system initialization timing control unit proposed by the present invention can be applied to the initialization of all complex electronic systems, and provides a guarantee for the high-reliability operation of the CPU and peripherals in the electronic system.

[0028] The electronic system initialization timing control unit proposed by the present invention is simple to implement and can be realized by simply changing the CPLD logic and application software based on the traditional method without changing the hardware of the electronic system timing control unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a typical timing control unit of an electronic system.

[0030] Figure 2 This is a traditional power-on initialization timing control diagram for an electronic system.

[0031] Figure 3 This is the GM7150 power-on initialization flow chart.

[0032] Figure 4 This is the power-on initialization timing diagram of GM7150.

[0033] Figure 5 This is a timing control diagram for power-on initialization abnormality of a video processing system including GM7150.

[0034] Figure 6 A new power-on initialization timing control diagram for the electronic system. DETAILED DESCRIPTION

[0035] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0036] This embodiment takes a video processing system as an example for illustration, and Figure 1 The typical system timing control unit shown is consistent with the one shown in the figure. The electronic system high-reliability initialization timing control unit shown in this embodiment also includes a watchdog monitoring chip, a CPLD chip, a CPU chip and a peripheral chip. The peripheral chip receives the analog standard-definition video signal and digitizes it. The digital video signal is then sent to the CPU for video processing. The specific selection of each chip is as follows:

[0037] a) The watchdog monitoring chip is ADM706RARZ, which is a watchdog monitoring chip launched by ADI. During the system power-on process, when its VCC reaches 1V, the watchdog reset signal WD_RST remains at a low level. As VCC continues to rise, once VCC is greater than the reset threshold voltage of 2.63V, the internal counter counts for 200ms, and the watchdog reset signal WD_RST becomes high. When the hardware dog feeding signal CPLD_WD_INH it receives remains at a high or low level for more than the timeout period of 1.6s, the watchdog reset signal WD_RST will send a low pulse width signal with a cycle duration of 200ms;

[0038] b) CPLD uses SM2C256, which is a high-performance, low-power CPLD device launched by SMIC. It contains 16 functional modules interconnected by an interconnection matrix. The functional modules include 56 PLAs with 40 inputs and 16 macro units. It has a large number of programmable bit streams to realize combinational logic or sequential logic, and can be programmed online using the JTAG interface.

[0039] c) The CPU chip uses Zynq7000, which is the main processing chip launched by XILINX. It combines ARM processor and FPGA organically, and runs operating system, BSP and application software on it. It can be used as a hardware platform for complex electronic systems. FPGA provides flexible programming resources, which can realize dynamic demand switching and complex logic integration;

[0040] d) The peripheral chip uses GM7150, which is a PAL / NTSC / SECAM video decoder launched by Zhenxin Technology. It supports PAL (B / D / G / H / I / M / N / NC), NTSC (M / J / 4.43), SECAM composite video and Y / C video decoding, and can be dynamically configured through the I2C bus to meet the usage requirements of different scenarios.

[0041] CPLD is the core of the timing control unit of the video processing system. It contains 5 input signals including WD_EN, CPLD_WD_EN, CPLD_PSM_RST, WD_RST, and WD_INH, and 3 output signals including CPLD_WD_INH, VIDEO_RST, and PS_POR_B. The functions and logical relationships of CPLD are described as follows:

[0042] a) PS_POR_B=CPLD_PSM_RST&WD_RST, VIDEO_RST=CPLD_PSM_RST&WD_RST;

[0043] b) The CPU reset signal PS_POR_B and the peripheral reset signal VIDEO_RST can be set to a specific time period through logic, and only respond to the power-on reset signal CPLD_PSM_RST signal;

[0044] c) Software dog feeding signal WD_INH: The application software on Zynq7000 operates the corresponding register to make the corresponding GPIO pin output a signal of 0 and 1 conversion, forming a square wave signal with a pulse width of 200ms, and sends it to the CPLD through WD_INH;

[0045] d) Hardware dog feeding signal CPLD_WD_INH: The dog feeding signal required by ADM706RARZ can select the square wave signal with a pulse width of 200ms generated by the CPLD's own logic, or the square wave signal with a pulse width of 200ms generated by the software dog feeding signal WD_INH;

[0046] e) Hardware dog disable signal CPLD_WD_EN: 0, 1 level signal;

[0047] f) Software dog disable signal WD_EN: 0, 1 level signal;

[0048] g) Disable watchdog: PS_POR_B = (CPLD_WD_EN & WD_EN)? WD_RST: 1'b1, VIDEO_RST = (CPLD_WD_EN & WD_EN)? WD_RST: 1'b1;

[0049] h) The hardware dog-disable signal is valid (CPLD_WD_EN=0) or the software dog-disable bit is valid (WD_EN=0), and the hardware dog-feeding operation is entered;

[0050] i) The hardware dog-disable signal is invalid (CPLD_WD_EN=1) and the software dog-disable signal is invalid (WD_EN=1), and the software dog-feeding operation is entered.

[0051] Under the timing control process:

[0052] 1) After the system is powered on, the power board converts the 28VDC input power into the secondary power supplies of 1V, 1.8V, 1.5V, 3.3V, etc. required by the chips inside the system, and sends the power-on reset signal CPLD_PSM_RST to the CPLD chip. The low-level pulse width duration of the power-on reset signal CPLD_PSM_RST is ≥30ms; after the watchdog monitoring chip ADM706RARZ is powered on, it sends a 200ms low-level reset signal WD_RST to the CPLD chip.

[0053] 2) The CPLD chip outputs a low-pulse-width CPU reset signal PS_POR_B to the CPU chip and a low-pulse-width peripheral reset signal VIDEO_RST to the peripheral chip in response to the low-pulse-width watchdog reset signal WD_RST, and lags behind by 20us before changing to a high-level CPU reset signal PS_POR_B and a peripheral reset signal VIDEO_RST. The CPU reset signal PS_POR_B and the peripheral reset signal VIDEO_RST maintain the same rhythm, and within the next 20s, the CPU reset signal PS_POR_B and the peripheral reset signal VIDEO_RST only respond to the power reset signal power-on reset signal CPLD_PSM_RST but not to any other reset signals. The CPU reset signal PS_POR_B is the main reset signal of the CPU chip. Before all the power supplies of Zynq7000 reach the required voltage value and the main clock is correct, the CPU reset signal PS_POR_B needs to maintain a low level, and the duration of the low level needs to exceed 1us. The peripheral reset signal VIDEO_RST is the reset signal of GM7150, and its low level holding time needs to be at least "500ns+20ms", so the low level reset time of "200ms+20us" can ensure the normal power-on initialization of the CPU chip and peripheral chips.

[0054] 3) The vxWorks operating system runs on the CPU chip. The initialization time of the vxWorks operating system is about 12 seconds, which causes the watchdog monitoring chip to not receive the normal hardware dog feeding signal CPLD_WD_INH, causing the watchdog monitoring chip to send a low-pulse-width watchdog reset signal WD_RST with a cycle duration of 200ms to the CPLD chip.

[0055] 4) After the vxWorks operating system is initialized, the BSP starts to initialize. The software disable signal WD_EN output by the CPU chip is set to a low level by the BSP, and the low-level software disable signal WD_EN is given to the CPLD chip.

[0056] 5) After receiving the low-level software dog-disabling signal WD_EN, the CPLD chip generates a normal hardware dog-feeding signal CPLD_WD_INH through internal hardware logic and outputs it to the watchdog monitoring chip.

[0057] 6) After receiving the normal watchdog feeding signal CPLD_WD_INH, the watchdog monitoring chip sends a high-level watchdog reset signal WD_RST to the CPLD chip.

[0058] 7) After the BSP on the CPU chip is initialized, the ".out" driver software is loaded and the "main" main function is executed. After all tasks are initialized, the application software runs and starts the software dog feeding operation (Note: at this time, the hardware dog feeding signal CPLD_WD_INH still selects the dog feeding signal generated by the CPLD logic). At this point, the initialization of the CPU and peripherals is completed; after about 30s, the application software sets the software dog disabling signal WD_EN to a high level, and the application software starts to monitor all tasks running in the system.

[0059] 8) After receiving the high-level software dog-disabling signal WD_EN, the CPLD chip generates a normal hardware dog-feeding signal CPLD_WD_INH according to the software dog-feeding signal WD_INH and outputs it to the watchdog monitoring chip.

Claims

1. A high-reliability initialization timing control unit for an electronic system, comprising a watchdog monitoring chip, a CPLD chip, a CPU chip and a peripheral chip, characterized in that: After power-on, the timing control unit sends a low pulse width power-on reset signal CPLD_PSM_RST with a duration of ≥30ms to the CPLD chip; After power-on, the watchdog monitoring chip sends a low-pulse-width watchdog reset signal WD_RST with a duration of 200ms to the CPLD chip; if it does not receive the normal hardware dog feeding signal CPLD_WD_INH, it sends a low-pulse-width watchdog reset signal WD_RST with a cycle duration of 200ms to the CPLD chip; if it receives the normal hardware dog feeding signal CPLD_WD_INH, it sends a high-level watchdog reset signal WD_RST to the CPLD chip; In response to the low-pulse-width watchdog reset signal WD_RST, the CPLD chip outputs a low-pulse-width CPU reset signal PS_POR_B to the CPU chip and a low-pulse-width peripheral reset signal VIDEO_RST to the peripheral chip, and after a lag of 20us, it becomes a high-level CPU reset signal PS_POR_B and a peripheral reset signal VIDEO_RST; after receiving the low-level software dog-disabling signal WD_EN, the CPLD chip generates a normal hardware dog-feeding signal CPLD_WD_INH through internal hardware logic and outputs it to the watchdog monitoring chip; after receiving the high-level software dog-disabling signal WD_EN, the CPLD chip generates a hardware dog-feeding signal CPLD_WD_INH according to the normal software dog-feeding signal WD_INH generated by the application software on the CPU, and outputs it to the watchdog monitoring chip; After the operating system is initialized, the CPU chip outputs a low-level software dog-disabling signal WD_EN to the CPLD chip when the BSP starts to initialize; after the BSP initialization is completed, the application software starts the dog feeding operation and generates a normal software dog feeding signal WD_INH, but the software dog-disabling signal WD_EN remains at a low level; after all tasks are initialized, the application software outputs a high-level software dog-disabling signal WD_EN to the CPLD chip, and the CPLD chip selects the software dog feeding signal WD_INH to generate the hardware dog feeding signal CPLD_WD_INH and outputs it to the watchdog monitoring chip.