1
1
CONTENTS
Chapter 1 DE2-115 Package ............................................................................... 4
1.1 Package Contents........................................................................................................................................ 4
1.2 The DE2-115 Board Assembly ................................................................................................................... 5
1.3 Getting Help ............................................................................................................................................... 6
Chapter 2 Introduction of the Altera DE2-115 Board ........................................ 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
Chapter 3 DE2-115 Control Panel ..................................................................... 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 Programmer ............................................................... 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
Chapter 4 Using the DE2-115 Board ................................................................. 29
4.1 Configuring the Cyclone IV E FPGA ....................................................................................................... 29
2
4.2 Using Push-buttons and Switches ............................................................................................................ 32
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 .................................................................................................................... 46
4.9 Using 14-pin General Purpose I/O Connector .......................................................................................... 50
4.10 Using VGA ............................................................................................................................................. 51
4.11 Using the 24-bit Audio CODEC ............................................................................................................. 54
4.12 RS-232 Serial Port .................................................................................................................................. 55
4.13 PS/2 Serial Port....................................................................................................................................... 56
4.14 Gigabit Ethernet Transceiver .................................................................................................................. 57
4.15 TV Decoder ............................................................................................................................................ 60
4.16 Implementing a TV Encoder .................................................................................................................. 62
4.17 Using the USB Interface ......................................................................................................................... 62
4.18 Using IR ................................................................................................................................................. 63
4.19 Using SRAM/SDRAM/FLASH/EEPROM/SD Card ............................................................................. 64
Chapter 5 DE2-115 System Builder ................................................................... 72
5.1 Introduction .............................................................................................................................................. 72
5.2 General Design Flow ................................................................................................................................ 72
5.3 Using DE2-115 System Builder ............................................................................................................... 73
Chapter 6 Examples of Advanced Demonstrations ......................................... 80
6.1 DE2-115 Factory Configuration ............................................................................................................... 80
6.2 TV Box Demonstration ............................................................................................................................ 81
6.3 USB Paintbrush ........................................................................................................................................ 83
6.4 USB Device .............................................................................................................................................. 85
6.5 A Karaoke Machine .................................................................................................................................. 87
6.6 SD Card Demonstration ........................................................................................................................... 89
3
6.7 SD Card Music Player .............................................................................................................................. 92
6.8 PS/2 Mouse Demonstration ...................................................................................................................... 96
6.9 IR Receiver Demonstration ...................................................................................................................... 99
6.10 Music Synthesizer Demonstration ........................................................................................................ 103
6.11 Audio Recording and Playing ............................................................................................................... 106
6.12 Web Server Demonstration ................................................................................................................... 109
Chapter 7 Appendix ....................................................................................... 120
7.1 EPCS Programming via nios-2-flash-programmer ................................................................................. 120
7.2 Revision History ..................................................................................................................................... 120
7.3 Copyright Statement ............................................................................................................................... 121
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.