A photograph of the DE board is shown in Figure Figure It depicts the layout of the board and indicates the location of the connectors and key components.
Page 9 Figure The DE board bottom view The DE board has many features that allow users to implement a wide range of designed circuits, from simple circuits to various multimedia projects.
The host computer communicates with the board through a USB connection. The facility can be used to verify the functionality of components on the board or be used as a debug tool while developing RTL code.
Page 18 Figure From the window, directly use the left-right arrows to control the 7-SEG patterns on the DE board which are updated immediately.
Figure Controlling 7-SEG display Figure Controlling the LCD display The ability to set arbitrary values into simple display devices is not needed in typical design activities. Contents of the location can be read by pressing the Read button. The movement of the mouse and the status of the three buttons will be shown in the graphical and text interface. Page Vga Receive terminal window to verify its operation. Follow the steps below to generate the VGA pattern function Before running the HSMC loopback verification test, follow the instruction noted under the Loopback Installation section and click on Verify.
Please note to turn off the DE board before the HSMC loopback adapter is installed to prevent any damage to the board. Figure depicts the IR receiver window when the IR tab is pressed. When the scan code is received, the information will be displayed on the IR Receiver window represented in hexadecimal. The software part is implemented in C code; Page 29 Figure The block diagram of the DE control panel The procedure for downloading a circuit from a host computer to the DE board is described in the tutorial Quartus II Introduction.
Using this connection, the board will be identified by the host computer as an Altera USB Blaster device. Altera De2 User Manual. Reply to author. Report message as abuse. Figure Setup for the USB device demonstration 6. The sample rate and gain of the CODEC are set in this manner, and the data input from the line-in port is then mixed with the microphone-in port and the result is sent to the line-out port.
For this demonstration the sample rate is set to 48kHz. In this demonstration we will show how to browse files stored in the root directory of an SD Card and how to read the file contents of a specific file. Long file name is supported in this demonstration. Figure shows the hardware system block diagram of this demonstration.
The system requires a 50MHz clock provided by the board. The software is stored in the on-chip memory. Long filename is supported. Furthermore, users can open a specified file and read the contents of the file. The main block implements main control of this demonstration.
When the program is executed, it detects whether an SD Card is inserted. If so, it searches all files in the root directory of the FAT file system and displays their names in the nios2-terminal. The program will display SD Card information, as shown in Figure Such players may also include high-quality DAC devices so that good audio quality can be produced. The DE board provides the hardware and software needed for SD Card access and professional audio performance so that it is possible to design advanced multimedia products using the DE board.
The system requires a 50 MHz clock provided from the board. This audio controller needs an input clock of In this design, the clock is provided by the PLL block. The I2C protocol is implemented by software. Figure Block diagram of the SD music player demonstration Figure shows the software stack of this demonstration. In this block, only read function is implemented. The I2C block implements I2C protocol for configuring audio chip. The SEG7 block implements displaying function to display elapsed playing time.
The IR block acts as a control interface of the music player system. The main program uses I2C protocol to configure the audio chip working in master mode; the audio output interface working in I2S bits per channel and with sampling rate according to the wave file contents. The top and bottom row of the LCD module will display the file name of the music that is played on the DE board and the value of music volume, respectively.
The 7-segment displays will show the elapsed time of the playing music file. The LED will indicate the audio signal strength. The provided wave files must have a sample rate of either 96K, 48K, The detailed information about each function of remote controller is shown in Table If the capacity of your SD Memory Card is more than or equal 8GB, please make sure it has the performance more than or equal to Class 4 3. You can treat it as a how-to basis and develop your own controller that could accomplish more sophisticated instructions, like setting the sampling rate or resolution, which need to transfer two data bytes.
The frame data is cut into three similar slices, each of them containing a start bit always zero and eight data bits with LSB first , one parity check bit odd check , and one stop bit always one. This could easily be implemented using a shift register of 33 bits, but be cautious with the clock domain crossing problem. After that, it pulls low the data line then release the clock line, and this is called the request state. The rising edge on the clock line formed by the release action can also be used to indicate the sample time point as for a 'start bit.
The device will detect this succession and generates a clock sequence in less than 10ms time. The transmit data consists of 12bits, one start bit as explained before , eight data bits, one parity check bit odd check , one stop bit always one , and one acknowledge bit always zero.
After sending out the parity check bit, the controller should release the data line, and the device will detect any state change on the data line in the next clock cycle. Figure shows the waveform while communication happening on two lines. Table gives the detailed information. Users only need to point the remote controller to the IR receiver on DE board and press the key.
After the signal being decoded and processed through FPGA, the related information will be displayed on the 7-segment displays in hexadecimal format, which contains Custom Code, Key Code and Inversed Key Code.
The Custom Code and Key Code are used to identify a remote controller and key on the remote controller, respectively.
Next we will introduce how this information being decoded and then displayed in this demo. When a key on the remote controller is pressed, the remote controller will emit a standard frame, shown in Figure The beginning of the frame is the lead code represents the start bit, and then is the key-related information, and the last 1 bit end code represents the end of the frame.
First, the IR receiver demodulates the signal inputs to Code Detector block. Figure shows the state shift diagram of State Machine block. Note that the input clock should be 50MHz. The VGA connected to the DE board is used to show which key is pressed during the playing of the music. Figure shows the block diagram of the design of the Music Synthesizer. To repeat the demo sound, users can press KEY1.
Figure shows the man-machine interface of this demonstration. Two push-buttons and six slide switches are used for users to configure this audio system: SW0 is used to specify recording source to be Line-in or MIC-In.
The LED is used to indicate the audio signal strength. Table and Table summarize the usage of Slide switches for configuring the audio recorder and player. There are hardware and software parts in the block diagram. The hardware part includes all the other blocks. It is designed to send audio data to the audio chip or receive audio data from the audio chip. The audio chip is programmed through I2C protocol which is implemented in C code. The graphical interface is used to issue commands to the control circuit.
It handles all requests and performs data transfers between the computer and the DE2 board. The DE2 Control Panel concept. Choosing the LED tab leads to the window in Figure 3. Controlling LEDs. Choosing the 7-SEG tab leads to the window shown in Figure 3. From the window, directly use the left-right arrows to control the 7-SEG patterns on the DE2 board which are updated immediately. Controlling 7-SEG display. Choosing the LCD tab leads to the window in Figure3. However, it gives the user a simple mechanism for verifying that these devices are functioning correctly in case a malfunction is suspected.
Thus, it can be used for troubleshooting purposes. The function is designed to monitor the status of slide switches and push-buttons in real time and show the status in a graphical user interface. It can be used to verify the functionality of the slide switches and push-buttons. Monitoring switches and buttons.
The ability to check the status of push-button and slide switch is not needed in typical design activities. However, it provides users a simple mechanism for verifying if the buttons and switches are functioning correctly. A bit word can be written into the SDRAM by entering the address of the desired location, specifying the data to be written, and pressing the Write button. Contents of the location can be read by pressing the Read button. Specify the starting address in the Address box.
Specify the number of bytes to be written in the Length box. If the entire file is to be loaded, then a checkmark may be placed in the File Length box instead of giving the number of bytes. To initiate the writing process, click on the Write a File to Memory button 4. When the Control Panel responds with the standard Windows dialog box asking for the source file, specify the desired file in the usual manner.
The Control Panel also supports loading files with a. Files with a. These values will be loaded consecutively into the memory. Specify the number of bytes to be copied into the file in the Length box. Press Load Memory Content to a File button 4. When the Control Panel responds with the standard Windows dialog box asking for the destination file, specify the desired file in the usual manner Users can use the similar way to access the Flash.
Please note that users need to erase the Flash before writing data to it. The movement of the mouse and the status of the three buttons will be shown in the graphical and text interface.
Press Stop to terminate the monitoring process. This function can be used to verify the functionality of the SD Card Interface. Follow the steps below to exercise the SD Card: 1.
Choosing the SD Card tab leads to the window in Figure 3. The setup is established by connecting a RS 9-pin male to female cable from the PC to the RS port where the Control Panel communicates to the terminal emulator software on the PC, or vice versa.
Alternatively, a RS loopback cable can also be used if you do not wish to use the PC to verify the test. The Receive terminal window on the Control Panel monitors the serial communication status.
Follow the steps below to initiate the RS communication: 1. Choosing the RS tab leads to the window in Figure 3. To begin the communication, enter specific letters followed by clicking Send. During the communication process, observe the status of the Receive terminal window to verify its operation.
RS Serial Communication. Follow the steps below to generate the VGA pattern function: 1. Choosing the VGA tab leads to the window in Figure 3. Click the drop down menu shown in Figure 3. Controlling VGA display.
To run the Control Panel, users should make the configuration according to Section 3. The block diagram of the DE2 control panel. The user is encouraged to read the tutorial first, and to treat the information below as a short reference. Both types of programming methods are described below. The FPGA will retain this configuration as long as power is applied to the board; the configuration is lost when the power is turned off. It provides non-volatile storage of the bit stream, so that the information is retained even when the power supply to the DE2 board is turned off.
Using this connection, the board will be identified by the host computer as an Altera USB Blaster device. The process for installing on the host computer the necessary software device driver that communicates with the USB Blaster is described in the tutorial Getting Started with Altera's DE2 Board. The JTAG configuration scheme.
0コメント