1
1
CONTENTS
Chapter1
DE2‐115Package ............................................................................... 4
1.1 Package Contents .......................................................................................................................................4
1.2 The DE2-115 Board Assembly...................................................................................................................5
1.3 Getting Help ...............................................................................................................................................6
Chapter2 IntroductionoftheAlteraDE2‐115Board .......................................... 7
2.1 Layout and Components.............................................................................................................................7
2.2 Block Diagram of the DE2-115 Board.......................................................................................................9
2.3 Power-up the DE2-115 Board ..................................................................................................................12
Chapter3 DE2‐115ControlPanel ..................................................................... 14
3.1 Control Panel Setup..................................................................................................................................14
3.2 Controlling the LEDs, 7-segment Displays and LCD Display..............................................................16
3.3 Switches and Push-buttons.......................................................................................................................18
3.4 SDRAM/SRAM/EEPROM/Flash Controller and Program-mer..............................................................19
3.5 USB Monitoring.......................................................................................................................................21
3.6 PS/2 Device..............................................................................................................................................22
3.7 SD Card....................................................................................................................................................23
3.8 RS-232 Communication...........................................................................................................................23
3.9 VGA .........................................................................................................................................................24
3.10 HSMC.....................................................................................................................................................25
3.11 IR Receiver.............................................................................................................................................26
3.12 Overall Structure of the DE2-115 Control Panel....................................................................................27
Chapter4 UsingtheDE2‐115Board ................................................................. 29
4.1 Configuring the Cyclone IV E FPGA.......................................................................................................29
4.2 Using Push-buttons and Switches ............................................................................................................32
2
4.3 Using LEDs..............................................................................................................................................34
4.4 Using the 7-segment Displays..................................................................................................................36
4.5 Clock Circuitry.........................................................................................................................................38
4.6 Using the LCD Module ............................................................................................................................39
4.7 High Speed Mezzanine Card....................................................................................................................40
4.8 Using the Expansion Header ....................................................................................................................45
4.9 Using 14-pin General Purpose I/O Connector..........................................................................................50
4.10 Using VGA.............................................................................................................................................51
4.11 Using the 24-bit Audio CODEC.............................................................................................................53
4.12 RS-232 Serial Port..................................................................................................................................54
4.13 PS/2 Serial Port ......................................................................................................................................55
4.14 Gigabit Ethernet Transceiver..................................................................................................................56
4.15 TV Decoder ............................................................................................................................................59
4.16 Implementing a TV Encoder ..................................................................................................................60
4.17 Using the USB Interface.........................................................................................................................61
4.18 Using IR .................................................................................................................................................62
4.19 Using SRAM/SDRAM/FLASH/EEPROM/SD Card.............................................................................63
Chapter5 DE2‐115SystemBuilder................................................................... 70
5.1 Introduction ..............................................................................................................................................70
5.2 General Design Flow................................................................................................................................70
5.3 Using DE2-115 System Builder ...............................................................................................................71
Chapter6 ExamplesofAdvancedDemonstrations ........................................... 77
6.1 DE2-115 Factory Configuration...............................................................................................................77
6.2 TV Box Demonstration ............................................................................................................................78
6.3 USB Paintbrush........................................................................................................................................80
6.4 USB Device..............................................................................................................................................82
6.5 A Karaoke Machine..................................................................................................................................84
6.6 SD Card Demonstration ...........................................................................................................................86
6.7 SD Card Music Player..............................................................................................................................89
6.8 PS/2 Mouse Demonstration......................................................................................................................93
3
6.9 IR Receiver Demonstration......................................................................................................................96
6.10 Music Synthesizer Demonstration........................................................................................................100
6.11 Audio Recording and Playing...............................................................................................................103
6.12 Web Server Demonstration...................................................................................................................106
Chapter7 Appendix ....................................................................................... 115
7.1 Revision History.....................................................................................................................................115
7.2 Copyright Statement...............................................................................................................................115
4
Chapter 1
DE2-115 Package
The DE2-115 package contains all components needed to use the DE2-115 board in conjunction
with a computer that runs the Microsoft Windows OS.
1
1
.
.
1
1
P
P
a
a
c
c
k
k
a
a
g
g
e
e
C
C
o
o
n
n
t
t
e
e
n
n
t
t
s
s
Figure 1-1 shows a photograph of the DE2-115 package.
Figure 1-1 The DE2-115 package contents
The DE2-115 package includes:
• The DE2-115 board.
• USB Cable for FPGA programming and control.
• DE2-115 System CD containing the DE2-115 documentation and supporting materials,
including the User Manual, the Control Panel, System Builder and Altera Monitor Program
utility, reference designs and demonstrations, device datasheets, tutorials, and a set of laboratory
exercises.
• CD-ROMs containing Altera’s Quartus® II Web Edition and the Nios® II Embedded Design
Suit Evaluation Edition software.