User manual

DE2 User Manual
19
3.6 TOOLS – Multi-Port SRAM/SDRAM/Flash Controller
The TOOLS page of the Control Panel GUI allows selection of the User Ports. We will illustrate a
typical process by implementing a Flash Music Player. The music data is loaded into the Flash
memory. User Port 1 in the Flash Controller is used to send the music data to the Audio DAC
Controller and hence to the audio output jack.
You can implement this application as follows:
1. Erase the Flash memory (as explained in Section 3.4). Then, write a music file into the
Flash memory. You can use the file music.wav in the directory DE2_demonstrations\music
on the DE2 System CD-ROM.
2. In the DE2 Control Panel, select the TOOLS tab to reach the window in Figure 3.8.
Figure 3.8. TOOLS window of the DE2 Control Panel.
3. Select the Asynchronous 1 port for the Flash Multiplexer and then click on the Configure
button to activate the port. You need to click the Configure button to enable the connection
from the Flash Memory to the Asynchronous Port 1 of the Flash Controller (indicated in
Figure 3.7).
4. Set toggle switches SW1 and SW0 to OFF (DOWN position) and ON (UP position),
respectively.
5. Plug your headset or a speaker into the audio output jack and you should hear the music
played from the Audio DAC circuit.
6. Note that the Asynchronous Port 1 is connected to the Audio DAC part, as shown in Figure
3.7. Once you selected Asynchronous Port 1 and clicked the Configure button, the Audio
DAC Controller will communicate with the Flash memory directly. In our example, the