In the electronic technology experimental teaching, the fundamental purpose and core content of teaching are to build circuit design concepts and improve circuit design capabilities. The design of digital clock circuits includes sequential logic circuits, combinational logic circuits, digital tube display circuits and pulse signal generation circuits. The content covers a wide range and is highly comprehensive. It is a typical case of autonomous experimental teaching of electronic technology. This paper uses quartz crystal oscillator circuits, counting circuits, dynamic scanning and decoding drive circuits, display circuits and clock correction circuits to realize the circuit.
1 System Design
The digital clock designed this time can realize the digital display of hours, minutes and seconds, with a cycle of 24 hours, a full scale of 23 hours, 59 minutes and 59 seconds, and has the function of time calibration. The circuit mainly adopts medium-scale CMOS integrated circuits, uses batteries as power supply, and displays the clock through common cathode LED digital tubes. The system consists of a second pulse generation module, a counter module, a decoding display circuit module, a dynamic scanning module, and a time calibration module. The second pulse generation module consists of a crystal oscillator circuit and two frequency divider circuits, and the dynamic scanning module consists of three parts: a dynamic scanning control signal generation circuit, a counter gating control circuit, and a digital tube gating control circuit. The system composition block diagram is shown in Figure 1.
1.1 second pulse generation circuit
The second pulse signal is generated by a quartz crystal oscillator. Since the output frequency of the crystal oscillator is relatively high, in order to obtain a 1 Hz second signal, the output signal of the oscillator needs to be divided. The usual frequency divider is implemented using a multi-level binary counter. The 32 768 Hz high-frequency square wave signal is divided 32 768 (215) times to obtain a 1 Hz square wave signal for the second counter to count. That is, the counter that realizes this frequency division function is equivalent to a 15-level binary counter.
This design uses CD4060 to form a 14-level 2-frequency division circuit.
Pin 9, 10 and 11 of CD4060 contain two NOT gate circuits. Pin 1 outputs 12-frequency division signal, pin 2 outputs 13-frequency division signal and pin 3 outputs 14-frequency division signal. The two NOT gates of CD4060 and the 32768Hz crystal oscillator form a 32768Hz oscillator, and then the CD4060 performs 214 division to obtain a 2Hz signal, and then the D flip-flop CD4013 performs a 2-division to obtain a 1Hz second pulse. The circuit diagram is shown in Figure 2.
1.2 Counter Design
The counter circuit is used to complete the counting of 60 seconds, 60 minutes and 24 hours, and the carry pulse of the second counter is used as the input pulse of the minute counter, and similarly, the carry pulse of the minute counter is used as the input pulse of the hour counter. The "second", "minute" and "hour" counter circuits are completed using the synchronous add counter CD4518.
(1) CD4518 Dual BCD Synchronous Adding Counter
CD4518 is a dual BCD decimal counter. It contains 2 independent counting units, 2 counting pulse input terminals, rising edge trigger terminal CP and falling edge trigger terminal EN. If CP is used to trigger, EN is connected to a high level and is a rising edge trigger; if EN is used to trigger, CP is connected to a low level and is a falling edge trigger; there are 4 output terminals QD~QA and a reset terminal.
The pin diagram of CD4511 is shown in Figure 3. Among them:
CP: Clock input terminal, rising edge triggered;
EN: Clock input terminal, falling edge triggered;
R: reset terminal, when high level, counter = 0;
QD~QA: count value decimal output terminal;
UDD: positive power input terminal (3~15 V);
USS: power reference ground.
(2) Design of “hour”, “minute” and “second” counters
The two decimal counters inside CD4518 are cascaded to form a 100-base counter, and then a 60-base counter is realized through the feedback method. The circuit is shown in Figure 4. In the figure, QD1, QC1, QB1, QA1 are the binary BCD codes of the second digit, and QD2, QC2, QB2, QA2 are the hexadecimal BCD codes of the second digit. When the digit is to display decimal 6, that is, 0110, QC2 and QB2 are both 1 at this time, and the output through CD4081 (42-input AND gate) is also high level, and low level at other times. This pulse signal is used to clear the tens counter, and this pulse signal is also the input signal of the pulse division.
The minute counter circuit is exactly the same as the second counter circuit, except that the pulse input is different, the second counter is 1 Hz, while the minute counter is 1 60 Hz.
The hour counter is a 24-bit counter. The design principle is the same as that of the minute and second counter. The difference is that the feedback reset state is different. When the tens digit (display 2) and the ones digit are 0100 (display 4), all counters are reset. Send QB2 and QC1 to the reset end of the two decimal counters through CD4081.
1.3 Digital display and dynamic scanning circuit
The digital display uses a common cathode LED digital tube. The decoding display drive circuit uses the BCD-7 segment latch decoder/driver CD4511. There are two driving modes for multi-digit display of digital tubes: one is static driving, which is a method of continuously applying driving voltage to each display to keep the display lit. Each display must be equipped with a set of counters, decoders and drive circuits. The principle of static driving is relatively simple and is suitable for occasions with a small number of digits. When the number of digits is large, the number of components used increases and the power consumption is also large. Another method is dynamic driving. The dynamic driving method uses a scanning method to let each digital tube display in turn in a certain order. Its advantages are: first, it can reduce power consumption, which is particularly important for battery-powered portable digital instruments; second, each display shares a decoder, which saves the number of decoders and reduces wiring; third, it can output multiple BCD codes and is easy to connect to a computer. As long as the scanning frequency is high enough, the flicker phenomenon cannot be observed due to the temporary effect of the human eye.
The overall characteristics of dynamic scanning are bit scanning and segment gating drive. This design adopts dynamic scanning mode, and the dynamic drive principle diagram of two-bit LED display is shown in Figure 5.
The pulse distributor CD4022 is used to generate dynamic scanning signals DS0~DS5. Only one of these six signals is high at the same time. DS0~DS5 is used to control the analog switch CD4066. When a scanning signal is high, the four analog switches controlled are turned on, so that the data of the corresponding counter is sent to the decoding drive circuit. At the same time, the scanning signal must select the corresponding digital tube to display the corresponding data. Since a common cathode digital tube is used, the scanning signal can select the corresponding digital tube through the Darlington transistor MC1413. When a scanning signal is high, it becomes low after being output by MC1413, and the corresponding digital tube is lit. The frequency of the input pulse CP of the pulse distributor CD4022 should be high enough. Here, 512 Hz is selected (provided by the 13th foot of 4060).
1.4 Timing Circuit
Time calibration is a basic function that a digital clock should have. When the digital clock is powered on or has calibration functions such as hours, minutes, and seconds, to make the circuit simple, only the minutes and hours are calibrated here. The calibration circuit requires that the normal counting of minutes and seconds should not be affected when calibrating the hours, and the normal counting of seconds and hours should not be affected when calibrating the minutes.
There are many calibration methods, the most commonly used one is the "fast time calibration method". The original circuit diagram of the time calibration circuit is shown in Figure 6.
2 Conclusion
The design of digital clock circuit involves many aspects of knowledge such as analog electronic technology and digital electronic technology. Including it in the independent experiment content overcomes the shortcomings of the previous practical teaching form of single and simple and boring content [8]. The design is required to be completed independently during the experiment. The digital clock circuit can be made by welding a universal board, or by drawing a PCB circuit diagram and using the thermal transfer method to make a homemade PCB circuit board to complete the production of the circuit.
Previous article:Design of automotive switch box based on CAN bus
Next article:Design and implementation of an electromagnetic compatibility semi-anechoic chamber
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【FAQ】TE Live: I will predict the future - the latest application of sensors in the Internet of Things
- An article to help you understand UWB
- LED dot matrix screen, I want to ask you guys, why I only light up one light, but the whole row is lit
- 【Beetle ESP32-C3】1. Unpacking materials and lighting (Arduino)
- Online BootLoader method, no need to use C2000hex to get flash program data
- How to avoid pitfalls in GPIO operations?
- Please advise on the position of the rectifier bridge and common-mode inductor in power supply design
- Chinese manual and examples of GD32VF103 of domestic RISC-V
- Implementation of full-duplex programmable UART based on finite state machine.pdf
- Programmers make their own epidemic simulation program: The spread of the epidemic is more terrible than you think