Current location - Music Encyclopedia - NetEase Cloud Music - EDA course design: Lantern Controller
EDA course design: Lantern Controller

For previous designs, the graphics did not come out when pasted. Please refer to it and remember to give points

1. Design purpose

1. Learn EDA development software and How to use MAX+plus Ⅱ, familiar with the use of programmable logic devices, and understand the lantern control system through production.

2. Further master the knowledge learned in the digital circuit course.

3. Understand the general ideas of digital circuit design and further solve and analyze problems.

4. Cultivate your own programming and cautious learning attitude

2. Design the topic content and requirements

(1) Topic content:

Use EDA technology to design a lantern controller so that the lantern (LED tube) can continuously emit more than three different flower patterns (self-made);

As the lantern display pattern changes , making different sounds.

It is required to use a 7-segment digital tube to display the currently displayed pattern. For example, the first pattern displays A1, the second pattern displays b2, and the third pattern displays C3

(2 ) Main tasks: Complete the design of the hardware and software of the system, and use the experimental box to create a physical demonstration. After debugging, it can be put into practical use (the instructor will provide the necessary devices for production), and finally submit a course on the course design itself. Design report.

3. Overall scheme design and selection

1 Overall scheme design

Scheme 1: The circuit is divided into three parts: lantern pattern module, sound module, clock module. Use the clock to control the sound and pattern, and use the same variables and signals overall. The main block diagram is as follows;

Figure 3-1-1 Flow chart of option one

Option two: circuit Divided into five modules: frequency divider module, hexadecimal counter, 4-digit counter, 4-to-1 selector, and lantern controller. Among them, the lantern controller is used to output different patterns. The output of the lantern controller is controlled by a hexadecimal counter. The output of the speaker is controlled by different frequencies, so an integrated frequency divider is used. In order to divide the input frequency into several different frequencies, the selective output of different frequencies is controlled by a 4-select one selector. The overall block diagram is as follows:

Figure 3 - Flowchart of 1-2 Plan 2

2. Choice of Plans

Plan 1 is to integrate together, the principle The idea is simple and uses fewer types of components. However, the same variables and signals must be used during programming, which will bring great difficulties to programming. In addition, there are many connections in the intermediate units, which are not easy to check. There are many gate circuits used, and the circuits The anti-interference ability will be reduced.

Option 2 separates the lantern pattern control and sound control. Each unit circuit only implements one function. The circuit design is modular and the workload is separated during programming. It is easier to check when errors occur and connect them. Fewer wires and easy to assemble and debug.

Combining the advantages and disadvantages of the two options, I chose option 2 which is easier to program, assemble and debug.

IV. Design of module circuit

1. Frequency divider module

The design requires that different lights should be accompanied by different music when displayed, so the design Crossovers are used to control different music outputs with different frequencies.

Module description:

Rst: input signal reset signal is used to reset the output of the frequency divider so that the output is "0" and there is no music output.

Clk: Input signal The function of the module is to divide the input frequency signal.

Clk_4, clk8, clk_12, clk_16: The output signal is the frequency division of the input signal clk by the frequency division module, which are 1/4 frequency division output, 1/8 frequency division output, and 1/12 division respectively. Frequency output, 1/16 frequency division output. Different frequencies produce different sounds. As shown in the figure

Figure 4-1 Frequency divider circuit diagram

2. Hexadecimal counter

The hexadecimal module is used to control the lantern output module, that is Determine the different outputs of the lantern controller.

Rst: Input signal reset signal is used to reset the hexadecimal system so that the output is "00000", that is, the colored lights do not light up.

Clk1: Input signal is used to provide the operating frequency to the module.

Count_out[3..0]: The output signal is the output of the hexadecimal counter. This output signal is used as the input signal of the lantern.

As shown in Figure 4-2

Figure 4-2 Hexadecimal counter circuit diagram

3. Quaternary counter module

4 The hexadecimal counter is used as the input of the selector to control the selector to select different frequencies as the output to control the speaker operation.

Clk2: Input signal to provide operating frequency for the counter.

Rst: Input signal reset signal makes the output of the counter "00".

As shown in Figure 4-3

Figure 4-3 4-digit counter circuit diagram

4. 4-to-1 selector module

Rst: The input signal reset signal causes the output of the selector to be "0".

In1, in2, in3, in4: The input signal is connected to the output of the frequency divider.

Inp[1..0]: The input signal is connected to the output of the quaternary counter to control the selector to select different inputs to select different outputs.

Output2: The output signal is directly connected to the speaker, that is, different frequencies are output to control the speaker to play sound

As shown in Figure 4-4

Figure 4-4 4 Select 1 selector circuit diagram

5. Colored light control module

Colored light control adopts mode 6 for display.

Figure 4-5-1 Mode 6 structure diagram

The lantern control module is used to directly control the output of the lanterns so that the lanterns can show different patterns.

Rst: input signal makes the output of the lantern control module "00000000", that is, the lantern has no output.

Input[4..0]: Input signal. Different inputs make the lantern control module have different outputs, that is, the lanterns display different patterns.

Output3[7..0]: The output signal is directly connected to the digital tube to control the digital tube.