User manual

DE2 User Manual
57
Connect the audio output of the DVD player to the line-in port of the DE2 board and
connect a speaker to the line-out port. If the audio output jacks from the DVD player are of
RCA type, then an adaptor will be needed to convert to the mini-stereo plug supported on
the DE2 board; this is the same type of plug supported on most computers
Load the bit stream into FPGA. Press KEY0 on the DE2 board to reset the circuit
Figure 5.2 illustrates the setup for this demonstration.
Figure 5.2. The setup for the TV box demonstration.
5.3 USB Paintbrush
USB is a popular communication method used in many multimedia products. The DE2 board
provides a complete USB solution for both host and device applications. In this demonstration, we
implement a Paintbrush application by using a USB mouse as the input device.
This demonstration uses the device port of the Philips ISP1362 chip and the Nios II processor to
implement a USB mouse movement detector. We also implemented a video frame buffer with a
VGA controller to perform the real-time image storage and display. Figure 5.3 shows the block
diagram of the circuit, which allows the user to draw lines on the VGA display screen using the
USB mouse. The VGA Controller block is integrated into the Altera Avalon bus so that it can be
controlled by the Nios II processor.
Once the program running on the Nios II processor is started, it will detect the existence of the USB
mouse connected to DE2 board. Once the mouse is moved, the Nios II processor is able to keep
track of the movement and record it in a frame buffer memory. The VGA Controller will overlap the