User Tools

Site Tools


sid_library

This is an old revision of the document!


Table of Contents

This library allows the operation of the SIDaster Shield (V2.3+) by specifying setup / communication functions. See the comments inside the library file files for in depth description.

Installation

  • Go to your Arduino\Library subfolder.
  • delete any previous installation of the SID library by removing the SID folder
  • Extract files from the library archive to your Arduino\Library subfolder.

Usage

You shall first include the library inside its Arduino design by addin a call to the library:

#include « SID.h »

Then you need to create an instance of the SID type, and initilalise it:

  • Create a SID synth by declaring it : SID mysid;
  • In the Arduino setup() function, shall setup successively the clock and the SPI interface by calling in this order
    • mysid.clk_setup();
    • mysid.SPI_setup();
  • Send bytes to the SID by using sid.send(Address, Data);

Address is the SID address ranging 0-24 as mentionned in the SID datasheet, and the Data is the byte you want to write. See the mos6581 datasheet for more details on how to program the Chip.

Code example

here is an example of how to use the library:

sid_library.1317121199.txt.gz · Last modified: 2018/08/26 09:36 (external edit)