14
ML40x Getting Started Tutorial
UG083 (v5.0) June 30, 2006
ML40x Demonstrations in System ACE CF
R
Virtex-4 Slide Show
Location
System ACE configuration address 1.
From the Bootloader menu, select option
1
to start the Virtex-4 Slide Show demonstration.
Description
This demonstration displays a sequence of picture files stored on the CF card accompanied
by audio playback of a music file stored on the CF card. Pressing the East/West
(GPIO_SW_E/GPIO_SW_W) buttons on the board manually switches to the
previous/next slide. The North/South (GPIO_SW_N/GPIO_SW_S) buttons on the board
change the volume. The center button toggles between pausing and continuing the slide
show.
Note:
This demonstration requires a VGA monitor connected to the VGA port and a headphone or
external speaker connected to the audio jacks.
In this program, the processor reads the CF file system through the System ACE MPU port
and loads the audio/video data into DDR SDRAM. The processor then controls the flow of
data to the VGA controller and audio controller connected to the internal CoreConnect
bus.
How to Change or Customize the Slide Show
Setup
To change the side show, follow these instructions:
1.
Place the picture files in the root directory.
2.
Name the picture files
image<
XX
>.bmp
where <
XX
> is a numerical sequence starting
from 01 and counting up.
The program reads the picture files through the System ACE MPU interface starting
from
image01.bmp
then counts upward. A maximum of 16 images can be read. The
BMP files must be sized as 640x480 pixels with 24-bit color.
3.
Give the sound file the name
sound.wav
and encode it as a 44.1 KHz, 16-bit stereo
wave file (CD format). The sound file cannot be greater than 32 MB in size.
Note:
When adding additional images or larger sound files, it might be necessary to use a higher
capacity System ACE CF card than the one shipped with the ML40
x
board.
Try to add your own slides and music. For example, in Microsoft PowerPoint, you can
export a presentation to HTML for a 640x480 screen. You can then convert the JPG or GIF
slides to BMP format using Microsoft Photo Editor that is installed on many PCs. Rename
the BMP files to
image<
XX
>.bmp
and copy to the System ACE CF card. Now you can run
your own customized slide show. For audio, try to extract a song from a CD into a WAV
file. Copy the WAV file into the System ACE CF card and name it
sound.wav
.