The tasks of Experiment 6 are:
1. Configure a ROM with a width of 8 bits and store the sine wave data of 256 addresses in the ROM
2. Use PLL to generate 100M clock as counter counting pulse, and use counter output as address to read ROM content
3. Convert the sine wave signal into an analog signal through the DA module (AD9708) and display the waveform through an oscilloscope
Additional question: Use the control switch to control the waveform switching. For example, when the toggle switch is set to 0, a sine wave is output, and when the toggle switch is set to 1, a triangle wave is input. Hint: You can use VHDL language to write a data selector
The task of Experiment 6 is based on Experiment 5, so continue to use the project files of Experiment 5. For details, please refer to Digital Electronics Experiment (V) - ROM Design
Open the project file, and you can see the following figure:
What Experiment 6 did was to make some modifications based on this.
First, Task 1 has been configured in Experiment 5, so FINISHED
Task 2 is to make a frequency multiplier to increase the system clock frequency from 50MHz to 100MHz.
We don't need the divider anymore, so delete the divider from the bdf file
General steps to create a frequency multiplier:
1.
Click next to proceed to the next step
Configure as shown in the figure. Similarly, name the output file and just append it at the end.
Click next
Configure as shown
Next all the way, all default parameters
Go here, click next
Configuration required
Use clk c0 and output 100MHz, which is twice as much. Because clk c1, clk c2, clk c3, clk c4 are not used, so keep going to next until the final Finish.
Click Yes; the configuration of the frequency multiplier is completed.
As shown
The description is complete. Enter beipin.v to create components.
Then place the components into the bdf file
Connect the wires as shown in the figure. After successful compilation, lock the pins, compile again, and then burn it to the development board.
Notice:
1. If you encounter pin lock and do not see the required pin, compile. If it still does not appear after compiling, the top-level file is set incorrectly. Set bdf as the top-level file and compile again.
2. Pin T16 is connected to the clock pin of the corresponding AD module
About Connection
Just input the 7 values output by your output pin into the GPIO pin.
For example, the blogger chose 8 pins from GPIO1_D0 to GPIO1_D7, and then connected the DA module with Dupont wire. Note that it is DA that needs to be connected, not AD. D1 is connected to D1, D2 is connected to D2, and so on.
Then connect the oscilloscope to display the waveform. I won’t go into details about the usage of the oscilloscope. Those who know the auto button will understand.
Finally, the expansion task~
Seeing this, why don’t you click three times in one click? ?
Directly put the source code and schematic connection diagram of the data selector
Create a VHDL empty file, write a program, and then generate components
Place it in the bdf file and connect it according to the schematic diagram
As shown in the figure, you also need to configure a triangle wave ROM. The method is in Digital Electronics Experiment (V) - ROM Design. Connect like this, and then randomly select a pin of the DIP switch to lock it.
For example, select J6
Done, all that's left is wiring.
Previous article:Learning the basics of signal generator
Next article:Capturing exceptions_Three methods to teach you how to quickly capture exceptions with an oscilloscope
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- 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
- Open-source language Toit claims to be 30 times faster than MicroPython on ESP32
- 【GD32L233C-START Review】4. Signal
- I would like to ask you how to choose an optocoupler
- TI 74HC4052 4-channel analog switch (voltage support 2~6V), 1 of the 8 chips is not working properly, is there a solution?
- FPGA Tutorial from National Taiwan University.rar
- The waveform of the PSIM simulation circuit is inconsistent with the data
- Today at 14:00, live broadcast with prizes: NXP's facial recognition technology solution based on i.MX RT106F
- LSM9DS1 9-axis iNEMO Inertial Module
- Recruiting RTOS software engineers, if interested, please contact 13510557015
- Question about a buzzer drive circuit