Saanlima Forums

Support for products from Saanlima Electronics
It is currently Sat Dec 16, 2017 3:44 am

All times are UTC - 8 hours [ DST ]

Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 01, 2013 8:10 am 

Joined: Thu Aug 29, 2013 5:48 pm
Posts: 225
A while ago there was interest in microblaze_mcs design so I decided to make a project to show what it can do,

The project has the following components:
* microblaze_mcs running at 120 MHz
* uart module for serial i/o
* spi module for sd-card file i/o
* wing module for digital i/o
* timer module for time keeping
* sound module for sigma-delta sound output

Software for the system is written using Arduino 1.5.2 with additions for generating microblaze code.
To demonstrate the system a wave file player capable of playing 16-bit 44.1 khz stereo wave files from the sd-card is included in the project.
For this app, the sound sample files in the wave folder needs to be copied to a sd-card for the pipistrello board to read.
The bit-files have the wave-file player app pre-loaded in BRAM.

The following file are available for download: (379 kB)
This is just the bit file and a few short sound examples to peak your curiosity. (79.5 MB)
This is the bit file with two full-length songs. This really shows how good the sound from the sigma-delta DAC can be. (324 MB)
This is the complete project including all source code, ISE project setup, Arduino_1.5.2 code base and waveplayer arduino sketch.

In other words, everything needed to recreated the bit file and the wave-file player app.

The process of generating the waveplayer bit file has 3 steps:
1) Build the hardware system in ISE
2) Copy the .bit file and the .bmm file from the ISE build to the Arduino system
3) Startup the Arduino IDE, open the waveplayer.ino sketch and compile/upload to Pipistrello

More detailed information:

First download and unzip the file somewhere on your computer.

Copy the files in <waveplayer>\wave folder to a uSD-card, insert the uSD-card in the Pipistrello sd-card socket, connect an audio cable to the board and finally connect the Pipistrello board to the PC.

Next step is to build the hardware system. Go to <waveplayer>\ise and double-click on mb_mcs.xise to launch ISE.
Double-click on "Generate Programming File" in the process window pane, this will rebuild the hardware system (it will take a few minutes).
The build will generate two output files - top.bit (the bit file without program) and ipcore_dir\microblaze_mcs_v1.3_bd.bmm (information about the BRAMs used for holding the program).
Those two files needs to be copied to the Arduino system at <waveplayer>\arduino-1.5.2-mcs\hardware\saanlima\microblaze_mcs\variants\pipistrello_LX45\bitstreams

Next step is to compile and upload the waveplayer code to Pipistrello using the arduino IDE. Go to <waveplayer>\arduino-1.5.2-mcs and double-click on arduino.exe to launch the arduino IDE.
Select "Pipistrello LX45 Microblaze_mcs" as the board in the Tools->Board pulldown menu
Open the waveplayer.ino sketch using the File->Open... pulldown menu
Click on the "Upload" button, this will compile the sketch and upload the bitfile (with the program added) to Pipistrello (make sure you have the board hooked-up to the PC).
Once the bit file is uploaded the sd-card will be scanned for wave files and any file that has a valid wave-file header will be played.

The program only accepts wave files that has this header:
(some wave file has additional information in the header, like song and artist name, which the current program wont accept)


PostPosted: Mon Dec 26, 2016 11:53 am 

Joined: Mon Dec 26, 2016 11:52 am
Posts: 1
Hi! Thanks for the project.

What should be the format of the SD-Card?

PostPosted: Mon Dec 26, 2016 12:07 pm 

Joined: Thu Aug 29, 2013 5:48 pm
Posts: 225
FAT32 is fine, i.e. you don't need to do any special formatting, just use the card as it was when you purchased it.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group