2 Working principle
CPLD is the abbreviation of English Complex Programmable LogICDevice. The Chinese name is complex programmable logic device . Because of its high efficiency, small internal delay and predictable delay, it is widely used in counters, logic circuits, control circuits and The implementation of functions such as complex state machines, and the core of the watchdog circuit is a counting timing circuit. Therefore, the function of the watchdog circuit can be well realized by using the characteristics of the CPLD. The block diagram of the watchdog circuit is shown in Figure 1. It can be divided into three parts: frequency dividing circuit, counting timing circuit and reset circuit. Its working mode is to input a 32768Hz square wave clock into the frequency dividing circuit, and the divided square wave is input into the counting timing circuit. Counting, at the same time compared with the set counting time constant, when the CPU does not clear the CS terminal state by changing the state of the CS terminal within the specified time, once the count value is consistent with the preset value, the counting timing The circuit will generate a high level to the reset circuit, which will generate a reset signal to the REST terminal of the CPU. For example, for the MCS51 family of microcontrollers, a high level greater than 10ms will be generated to ensure a reliable reset of the CPU. Complex programmable logic device
3 circuit design
At present, XILINX's programmable devices are widely used in various products due to their good design platform, secure encryption methods, and complete product lines. Below, take the X95 series CPLD in its product line as an example to introduce the design of the watchdog circuit.
Watchdog circuit design
3.1 Frequency dividing circuit This circuit is completed by the U1 COUNT5 macro unit in Figure 1. The purpose of this macro unit is to pass a 32768kHz rectangular pulse through a 5-bit binary counter and divide it by 32 levels to get a 1024Hz. The square wave, that is, the square wave with a period of about 1ms, its simulation waveform is shown in Figure 2.
Watchdog circuit design
Among them, CLKIN is a 32762Hz square wave signal, CLR is the frequency divider clearing end, and TIMECLK is the output of the 32 frequency divider. As can be seen from the figure, when CLR is low, the divider operates, and when CLR is high, the divider is cleared.
3.2 counting timing circuit
This circuit is the core circuit of the watchdog. Its function is implemented by the U5 COMP macrocell in Figure 1. The macrocell consists of an 8-bit binary counter, an 8-bit register, and an 8-bit comparator. The initial value of the 8-bit register is 0FFH, which can also be set by the 8-bit data port of the AD BUS and the WR DOG chip select port. When the 1024Hz square wave enters the 8-bit counter for counting, the comparator will also compare the counter's count value with the register. Once the two are equal, the comparator will generate a REST high level, prohibiting the counting pulse input and simultaneously opening the reset circuit. Counter. The simulation waveform is shown in Figure 3.
Counting timing circuit
Where RESTCLKIN is the 1024 Hz reference clock input. The CLR is the 8-bit counter clearing terminal. WR is the chip select latch of the 8-bit register (rising edge latch). DATA7 is an 8-bit data bus for presetting 8-bit registers. REST is the reset output and provides a high level to ensure a system reset.
3.3 reset delay circuit
The function of this circuit is completed by the U3 DELAY12MS macro unit. The purpose is to keep the REST signal stable at a high level of 10ms or more after the REST signal is generated to ensure a reliable reset of the system and generate a high after the delay. The level clears all macrocell counters. The simulation waveform is shown in Figure 4.
Among them, CLKIN is a 1024 Hz reference clock pulse, and is allowed to input the U3_DELAY12MS macrocell when the U5_COMP macrocell REST output is high. When the counter counts as 12, the U3_DELAY12MS macrocell CLRALL generates a high level, which is latched into the D-type register by a 32768Hz pulse. The output of the D-type register will clear all counters and compare the U5_COMP macrocells. The output of the device is "0", thus ending the reset.
4 Conclusion
At present, I have adopted this design in the designed products. It has been proved that integrating the watchdog circuit through the CPLD device can effectively ensure the normal operation of the system and reduce the separate placement of the watchdog device. Design risk and additional costs.
Circular Connectors
Circular connectors, also called [circular interconnects," are cylindrical, multi-pin electrical connectors. These devices contain contacts that transmit both data and power. Cannon (now ITT Tech Solutions) introduced circular connectors in the 1930s for applications in military aircraft manufacturing. Today, you can find these connectors in medical devices and other environments where reliability is essential.
Circular Connectors is designed with a circular interface and housing to quickly and easily connect and disconnect signal, power, and optical circuits. Circular connectors are often preferred in military, aerospace, and industrial applications: these can be connected and disconnected without the use of coupling tools such as torque wrenches. Antenk`s circular connectors offer rugged solutions that have been engineered for reliable performance in a wide variety of harsh environment applications.
I/O connectors provide secure electrical contact and smooth, safe disconnect. They are used across a range of industries for communications devices, business equipment and computers. Top considerations when purchasing I/O connectors include pinout, gender, voltage rating, contact plating, and termination style.
Types of Circular Connectors
Circular connectors typically feature a plastic or metal shell surrounding the contacts, which are embedded in insulating material to maintain their alignment. These terminals usually pair with a cable, and this construction makes them especially resistant to environmental interference and accidental decoupling.
Circular I/O Connectors Types
Audio Connector
BNC/TNC Connector
DC POWER Connector
Mini din connector
DIN Connector
M5/M8/M12/M16/M23 PP9 Connector
SMA/SMB/FME Connector
RCA Connector
MCX MMCX Connector
Power Connector,Circular I Connectors,Circular O Connectors,Circular Power Connector,SMA/SMB/FME Connector,RCA Connector,MCX MMCX Connector,and we are specialize in Circular O Connectors,Circular Power Connector
ShenZhen Antenk Electronics Co,Ltd , https://www.antenksocket.com