Main.YM2149Flash History

Hide minor edits - Show changes to output

April 17, 2012, at 04:07 PM by Jack Gassett -
Changed lines 44-46 from:
* Set the Board Type to either ZPUino on Papilio One 500 or 250 depending on which board you have.
to:
* Set the Board Type to the correct board according to what you have.
** For Papilio One 250K select: "ZPUino on Papilio One (250) board"
** For Papilio One 500K select: "ZPUino on Papilio One (500) board"
April 17, 2012, at 12:56 PM by Jack Gassett -
Changed lines 46-57 from:
* Modify the #define section to uncomment out what type of hardware you are using.
to:
* In the code of the sketch you need to define what kind of hardware you are using. There are pre-defined sections for the supported hardware, you will need to check and see that the section that defines your hardware us uncommented.
** For MIDI-Audio Wing make sure this section is uncommented:(:source lang=c :)
#define AUDIOPIN WING_C_8 //For Audio-MIDI Wing connected to CH
#define AUDIOPINEXTRA WING_C_9
(:sourcend:)
** For Arcade MegaWing make sure this section is uncommented:(:source lang=c :)
#define AUDIOPIN WING_A_15 //For Arcade MegaWing
#define AUDIOPINEXTRA WING_A_13
(:sourcend:)
** For Audio Wing make sure this section is uncommented:(:source lang=c :)
#define AUDIOPIN WING_A_7 //For Audio Wing connected to AL
(:sourcend:)
April 16, 2012, at 07:20 AM by dhia khaladi -
Changed line 12 from:
(:youtube sbCybapnKTw width=560 height=349:)
to:
%center%(:youtube sbCybapnKTw width=560 height=349:)
April 12, 2012, at 11:13 AM by Jack Gassett -
Changed line 21 from:
* Papilio One 500 with:
to:
* [[http://www.gadgetfactory.net/papilio/|Papilio One 500K]] or [[http://www.gadgetfactory.net/papilio/|Papilio One 250K]] with:
Changed lines 31-32 from:
* [[https://github.com/alvieboy/ZPUino-HDL/raw/master/zpu/hdl/zpuino/boards/papilio_one/s3e500/variants/apollo/releases/latest/bitfiles/zpuino-1.0-papilioone-500-apollo.bit|ZPUino "Apollo" variant bit file.]]
to:
* [[https://github.com/alvieboy/ZPUino-HDL/raw/master/zpu/hdl/zpuino/boards/papilio_one/s3e500/variants/apollo/releases/latest/bitfiles/zpuino-1.0-papilioone-500-apollo.bit|ZPUino "Apollo" variant bit file for Papilio One 500K.]]
* [[https://github.com/alvieboy/ZPUino-HDL/raw/master/zpu/hdl/zpuino/boards/papilio_one/s3e250/variants/apollo/releases/latest/bitfiles/zpuino-1.0-papilioone-250-apollo.bit|ZPUino "Apollo" variant bit file for Papilio One 250K
.]]
Changed line 41 from:
* Ensure that you have the [[https://github.com/alvieboy/ZPUino-HDL/raw/master/zpu/hdl/zpuino/boards/papilio_one/s3e500/variants/apollo/releases/latest/bitfiles/zpuino-1.0-papilioone-500-apollo.bit|ZPUino "Apollo" variant]] that includes the YM2149 audio chip loaded to the SPI Flash of your Papilio.
to:
* Ensure that you have the ZPUino "Apollo" variant bit file (see download section) that includes the YM2149 audio chip loaded to your Papilio. (We recommend loading it to SPI Flash.)
April 12, 2012, at 10:49 AM by Jack Gassett -
Added lines 31-32:
* [[https://github.com/alvieboy/ZPUino-HDL/raw/master/zpu/hdl/zpuino/boards/papilio_one/s3e500/variants/apollo/releases/latest/bitfiles/zpuino-1.0-papilioone-500-apollo.bit|ZPUino "Apollo" variant bit file.]]
* [[https://github.com/GadgetFactory/Sketches/zipball/Papilio_Sketches_latest|Papilio Sketch download]]
Changed lines 37-41 from:
* Download the latest version of the ZPUino IDE.
*
Download the latest version of the Papilio Sketches and extract them to your ZPUino IDE folder.
* Open the ZPUino IDE and then select the sketch from File/Examples/Audio/YM2149_SPI_Flash.
* Ensure that you have the ZPUino variant that includes the YM2149 audio chip loaded to the SPI Flash of your Papilio.
* Ensure your audio Wing or MegaWing is connected to the Papilio.
to:
* Download the latest version of the [[http://www.alvie.com/zpuino/download.html|ZPUino IDE]].
*
Download the latest version of the [[https://github.com/GadgetFactory/Sketches/zipball/Papilio_Sketches_latest|Papilio Sketches]] and extract them to a folder of your choice.
* Open the ZPUino IDE and then select the sketch from the sketch directory Audio/YM2149_SPI_Flash.
* Ensure that you have the [[https://github.com/alvieboy/ZPUino-HDL/raw/master/zpu/hdl/zpuino/boards/papilio_one/s3e500/variants/apollo/releases/latest/bitfiles/zpuino-1.0-papilioone-500-apollo.bit|ZPUino "Apollo" variant]] that includes the YM2149 audio chip loaded to the SPI Flash of your Papilio.
* Ensure your MIDI Audio Wing or MegaWing is connected to the Papilio.
April 12, 2012, at 10:46 AM by Jack Gassett -
Added lines 11-12:

(:youtube sbCybapnKTw width=560 height=349:)
April 12, 2012, at 10:45 AM by Jack Gassett -
Changed lines 20-22 from:
** Arcade MegaWing
** MIDI-Audio Wing
** Audio Wing
to:
** [[http://papilio.gadgetfactory.net/index.php?n=Papilio.MIDIAudioWing|MIDI-Audio Wing]]
** [[http://papilio.gadgetfactory.net/index.php?n=Papilio.AudioWing|Arcade MegaWing]]
** [[http://papilio.gadgetfactory.net/index.php?n=Papilio.AudioWing|Audio Wing]]
April 11, 2012, at 05:16 PM by Dhia Khaladi -
Deleted line 77:
April 11, 2012, at 05:12 PM by Jack Gassett -
Changed line 77 from:
%center%Attach:Main.YM2149Flash/CC.png|licence
to:
%center%http://i.creativecommons.org/l/by/3.0/88x31.png
April 11, 2012, at 04:26 PM by Jack Gassett -
Added lines 9-10:

This example sketch shows how to convert a YM file into a data file that can be loaded to the Papilio's SPI Flash file using the smallfs file system. The converted file then becomes available to be played in an endless loop without any dependency on a computer.
Deleted lines 14-17:
>><<

>>lrindent round frame bgcolor=#f7f7f7 border='1px solid #429ae0'<<
This example sketch shows how to convert a YM file into a data file that can be loaded to the Papilio's SPI Flash file using the smallfs file system. The converted file then becomes available to be played in an endless loop without any dependency on a computer.
April 11, 2012, at 04:24 PM by Dhia Khaladi -
Changed line 34 from:
>>lrindent round frame<<
to:
>>lrindent round frame bgcolor=#f7f7f7 border='1px solid #429ae0'<<
Changed line 63 from:
(:div style='text-align:justify; background:#f7f7f7; border:1px solid #429ae0; width:100%; padding:5px;':)
to:
>>lrindent round frame bgcolor=#f7f7f7 border='1px solid #429ae0'<<
Changed line 65 from:
(:divend:)
to:
>><<
April 11, 2012, at 04:21 PM by Dhia Khaladi -
Changed line 2 from:
(:div style='text-align:justify; background:#f7f7f7; border:1px solid #429ae0; width:100%; padding:5px;':)
to:
>>lrindent round frame bgcolor=#f7f7f7 border='1px solid #429ae0'<<
Deleted lines 8-11:
(:divend:)

>>tip<<
There are vast repositories of ym files that provide 8-bit audio goodness to be found with a little googling.
Changed lines 11-15 from:
(:div style='text-align:justify; background:#f7f7f7; border:1px solid #429ae0; width:100%; padding:5px;':)
to:
>>tip<<
There are vast repositories of ym files that provide 8-bit audio goodness to be found with a little googling.
>><<

>>lrindent round frame bgcolor=#f7f7f7 border=
'1px solid #429ae0'<<
Changed line 17 from:
(:divend:)
to:
>><<
April 11, 2012, at 04:07 PM by Dhia Khaladi -
Added line 80:
April 11, 2012, at 03:55 PM by Dhia Khaladi -
Added line 79:
%center%Attach:Main.YM2149Flash/CC.png|licence
April 11, 2012, at 03:51 PM by Dhia Khaladi -
Added line 2:
(:div style='text-align:justify; background:#f7f7f7; border:1px solid #429ae0; width:100%; padding:5px;':)
Changed lines 9-11 from:
to:
(:divend:)

>>tip<<
Changed lines 13-15 from:
to:
>><<

(:div style='text-align:justify; background:#f7f7f7; border:1px solid #429ae0; width:100%; padding:5px;':)
Changed lines 17-18 from:
to:
(:divend:)
Added line 20:
>>lrindent round<<
Changed lines 25-26 from:
to:
>><<
Added line 28:
>>lrindent round<<
Changed lines 31-32 from:
to:
>><<
Added line 34:
>>lrindent round frame<<
Changed lines 52-53 from:
to:
>><<
Added line 55:
>>lrindent round<<
Changed lines 60-61 from:
to:
>><<
Added line 63:
(:div style='text-align:justify; background:#f7f7f7; border:1px solid #429ae0; width:100%; padding:5px;':)
Changed lines 65-66 from:
to:
(:divend:)
Added line 78:
(:div style='text-align:justify; background:#dddddd; border:1px solid #000000; width:100%; padding:5px;':)
Changed line 85 from:
Please drop us a line if we are missing any attribution or have any licenses wrong.
to:
Please drop us a line if we are missing any attribution or have any licenses wrong.
April 10, 2012, at 11:20 PM by Jack Gassett -
Changed line 59 from:
* [[http://forums.parallax.com/archive/index.php/t-122454.html|Delphi source for YMDump tool]].
to:
* Sergey Bulba for Delphi source for YMDump tool.
April 10, 2012, at 11:18 PM by Jack Gassett -
Deleted lines 0-5:
!!!Supported Hardware
* Papilio One 500 with:
** Arcade MegaWing
** MIDI-Audio Wing
** Audio Wing
Added lines 12-21:

!!!Supported Hardware
* Papilio One 500 with:
** Arcade MegaWing
** MIDI-Audio Wing
** Audio Wing

!!!Downloads
* [[https://github.com/GadgetFactory/Sketches/tree/master/Audio/YM2149_SPI_Flash|Source code]]
* [[http://www.alvie.com/zpuino/download.html|ZPUino IDE and bit files.]]
April 10, 2012, at 11:16 PM by Jack Gassett -
Added lines 54-55:
* [[http://leonard.oxg.free.fr|Leonard for the ymtool application used to convert ym files.]]
* [[http://forums.parallax.com/archive/index.php/t-122454.html|Delphi source for YMDump tool]].
April 10, 2012, at 11:13 PM by Jack Gassett -
Changed lines 39-40 from:
!!! Tools
to:
* [[http://en.wikipedia.org/wiki/YM2149|YM2149 Wikipedia Page]]
* [[http://kalshagar.wikispaces.com/file/view/ym2149.pdf|YM2149 Datasheet]]
* [[http://kalshagar.wikispaces.com/Arduino+and+a+YMZ294|Arduino and YMZ249 (a variant)]]
* [[http://kalshagar.wikispaces.com/MIDI%2C+CSharp+and+Yamaha+chips|Transform MIDI files to sketches.]]
April 10, 2012, at 11:07 PM by Jack Gassett -
Changed lines 28-36 from:
*
to:
* Modify the #define section to uncomment out what type of hardware you are using.
* Press the Upload Icon (this will load an already converted ym file).
(Optional)
If you want to convert and load your own ym files:
* Navigate to the examples/ZPUino/Audio/YM2149_SPI_Flash folder.
* Use the ym files from the ym_files folder or your own ym files.
* Drag and drop a ym file onto the convert_ym.bat file. (Sorry Linux users, no script file yet.)
* This will convert the ym file into an audio.dat file in the smallfs directory. Depending on how big your SPI Flash chip is you may need to edit this the audio.dat file to be less then 128KB. If the file is too big you will see an error in the ZPUino IDE when you try to load the sketch.
* Press upload in the ZPUino IDE to load the new ym file to flash and start playing it.
April 10, 2012, at 10:59 PM by Jack Gassett -
Changed lines 20-29 from:
to:
* Download the latest version of the ZPUino IDE.
* Download the latest version of the Papilio Sketches and extract them to your ZPUino IDE folder.
* Open the ZPUino IDE and then select the sketch from File/Examples/Audio/YM2149_SPI_Flash.
* Ensure that you have the ZPUino variant that includes the YM2149 audio chip loaded to the SPI Flash of your Papilio.
* Ensure your audio Wing or MegaWing is connected to the Papilio.
* Plug your Papilio into a USB port.
* Set the Board Type to either ZPUino on Papilio One 500 or 250 depending on which board you have.
* Select the Serial Port in the ZPUino IDE.
*
Changed lines 35-36 from:
The YM2149 vhdl file is an open source recreation of the original YM2149 that was created by the good people at FPGAArcade.com by studying the datasheets and characteristics of actual hardware. Originally used for the VHDL recreations of games like Frogger. Inspired by [[http://kalshagar.wikispaces.com/Arduino+and+a+YMZ294|projects like this one]] where people physically connected YM2149 chips to the Arduino we decided to make a ZPUino solution. Shaz and Alvie ported the chip to a wishbone compatible core that can plug into the ZPUino architecture, providing direct register access without using any of the ZPUino GPIO pins. The power of the ZPUino and the large code base of the Arduino allowed cool applications like this player, a streamer, and a MIDI controlled YM2149 synth to be easily and quickly realized!
to:
The YM2149 vhdl file is an open source recreation of the original YM2149 that was created by the good people at FPGAArcade.com by studying the datasheets and characteristics of actual hardware. Originally used for the VHDL recreations of games like Frogger. Inspired by [[http://kalshagar.wikispaces.com/Arduino+and+a+YMZ294|projects like this one]] where people physically connected YM2149 chips to the Arduino we decided to make a streamlined ZPUino solution that does not require soldering or use up GPIO pins. Shaz and Alvie ported the chip to a wishbone compatible core that can plug into the ZPUino architecture, providing direct register access without using any of the ZPUino GPIO pins. The power of the ZPUino and the large code base of the Arduino allowed cool applications like this player, a streamer, and a MIDI controlled YM2149 synth to be easily and quickly realized!
Changed lines 38-39 from:
* ZPU team
* Alvaro Lopes for his amazing work with the ZPUino
to:
* ZPU team for Soft Processor that is the base for the ZPUino.
* Arduino team for the IDE and Open Source example to learn from.
* Alvaro Lopes for his amazing work with the ZPUino.
April 10, 2012, at 10:49 PM by Jack Gassett -
Changed lines 26-27 from:
The YM2149 vhdl file is an open source recreation of the original YM2149 that was created by the good people at FPGAArcade.com by studying the datasheets and characteristics of actual hardware. Originally used for the VHDL recreations of games like Frogger. Inspired by [[http://kalshagar.wikispaces.com/Arduino+and+a+YMZ294|projects like this one]] where people physically connected YM2149 chips to the Arduino we decided to make a ZPUino solution. Shaz and Alvie ported the chip to a wishbone compatible core that can plug into the ZPUino architecture, providing direct register access without using any of the ZPUino GPIO pins.
to:
The YM2149 vhdl file is an open source recreation of the original YM2149 that was created by the good people at FPGAArcade.com by studying the datasheets and characteristics of actual hardware. Originally used for the VHDL recreations of games like Frogger. Inspired by [[http://kalshagar.wikispaces.com/Arduino+and+a+YMZ294|projects like this one]] where people physically connected YM2149 chips to the Arduino we decided to make a ZPUino solution. Shaz and Alvie ported the chip to a wishbone compatible core that can plug into the ZPUino architecture, providing direct register access without using any of the ZPUino GPIO pins. The power of the ZPUino and the large code base of the Arduino allowed cool applications like this player, a streamer, and a MIDI controlled YM2149 synth to be easily and quickly realized!
Changed lines 29-42 from:
to:
* ZPU team
* Alvaro Lopes for his amazing work with the ZPUino
* MikeJ at FPGAArcade.com for making the YM2149 VHDL files Open Source.
* Shaz for providing the momentum to port the YM2149 to a wishbone core.
* Jack Gassett and the Papilio team for the Open Source FPGA hardware and examples.

!!! License
The example code and documentation is released under a Creative Commons Attribution license. Please use the code any way you want but do the right thing and mention the ZPUino, Papilio, and FPGAArcade if you are porting this project to other hardware. (Yes, we are looking at you Cyber Cortex.)

The source code for the ZPUino is released as BSD style license.

The source code for the YM2149 core is released as GPL.

Please drop us a line if we are missing any attribution or have any licenses wrong.
April 10, 2012, at 10:39 PM by Jack Gassett -
Changed lines 15-16 from:
There are vast repositories of ym files that provide 8-bit audio goodness that can be found with a little googling.
to:
There are vast repositories of ym files that provide 8-bit audio goodness to be found with a little googling.
Added lines 24-28:

!!! Technical Details
The YM2149 vhdl file is an open source recreation of the original YM2149 that was created by the good people at FPGAArcade.com by studying the datasheets and characteristics of actual hardware. Originally used for the VHDL recreations of games like Frogger. Inspired by [[http://kalshagar.wikispaces.com/Arduino+and+a+YMZ294|projects like this one]] where people physically connected YM2149 chips to the Arduino we decided to make a ZPUino solution. Shaz and Alvie ported the chip to a wishbone compatible core that can plug into the ZPUino architecture, providing direct register access without using any of the ZPUino GPIO pins.

!!! Attribution
April 10, 2012, at 10:32 PM by Jack Gassett -
Added lines 20-23:

!!! Reference

!!! Tools
April 10, 2012, at 10:31 PM by Jack Gassett -
Changed lines 2-3 from:
!!!
to:
* Papilio One 500 with:
** Arcade MegaWing
** MIDI-Audio Wing
** Audio Wing

!!! Description
The YM2149 SPI Flash example shows how to use the YM2149 audio chip that is connected to the ZPUino Soft Processor on the Papilio FPGA hardware.

The [[http://en.wikipedia.org/wiki/YM2149|YM2149 chip]] is a popular chiptune device that was used in several classic computing/gaming systems. Some of the better known systems include:
* Atari ST
* ZX Spectrum 128
* Intellivision

There are vast repositories of ym files that provide 8-bit audio goodness that can be found with a little googling.

This example sketch shows how to convert a YM file into a data file that can be loaded to the Papilio's SPI Flash file using the smallfs file system. The converted file then becomes available to be played in an endless loop without any dependency on a computer.

!!! Usage
April 10, 2012, at 07:09 PM by Jack Gassett -
Added lines 1-4:
!!!Supported Hardware

!!!
  

Share |