Stellaris Mod Player

I while ago I bought a couple of Stellaris® LM4F120 launch pad evaluation kits. I really wanted to play around with the ARM processors and the Stellaris offers and extremely low cost introduction. This board features a  LM4F120H5QR ARM® Cortex™-M4F processor with 256KB of flash memory, 32KB of RAM, 2KB of EEPROM, two 12-bit analog to digital converters, a USB 2.0 device port, a hibernation module, other serial connectivity and flexible GPIO. The board comes with on-board emulation, which means you can program and debug your projects without the need for additional tools. All this for around £10.

Support for these boards on-line is huge both from Texas Instruments and from other people who have been using them in their own personal projects.

My boards have been sitting in my drawer for months I had used them initially but only running the test code under debug and familiarising my self with the tool set and the StellarisWare library (an extensive suite of software designed to simplify and speed development of stellaris-based microcontroller applications).

One project that did catch my eye was a MOD player a guy named Ronen K had implemented on his Stellaris Launchpad. The player had been ported from another project based on a Microchip PIC32 by Serveur perso.

You can see Ronens work on his blog here and here.

What really impressed me is the audio is generated from driving the GPIO pin with a PWM signal. According to his blog Ronen spent a fair amount of time redoing the PWM/timer code to get it to work on the Stellaris and the timing is fairly crtical. But wow it sounds awesome. A small LC filter (10 Khz cutoff) was added to help improve the audio.

For those who don’t know the MOD file format is a file format used to represent music. The format was very popular on the Commodore Amiga. Having had an Amiga as a teen I really wanted to relive some of those old memories.

Once I had Ronens code up and running playing files from the SD card I decided to add a 1.8″ TFT display module I had lying around. This allowed my to have a menu showing all of the mod files found on the SD card. The user could then choose which file to play. The display also shows some basic information such as the mods title, number of patterns etc all extracted from the mod file being played.

Check out the video to see it in action. Gives you a warm feeling hearing some of those old demo tunes again. The Amiga really was an awesome bit of kit.

7 thoughts on “Stellaris Mod Player

  1. Ronen K

    Hey, Great job man!
    I’ve also released a S3M player. also on my blog maybe you can use that as well, we would also love to see the sources.

    I also had a SID player working … but never published it…

    Reply
    1. mikesmodz Post author

      Thanks man and thanks for providing the source. When I get chance I might add the S3M support. Just really wanted to hear some of those classic Amiga demo tunes again.

      A SID player sounds fun.

      Reply
  2. peter

    hi, i am sorry for disturbing, but can you please share binaries for your mod player version with auto next file play? I have not ide for stellaris.Thanks very much.

    Reply

Leave a reply to mikesmodz Cancel reply