Pages: [1]   Go Down
Author Topic: AY-3-8910 Chiptune Project Breakdown  (Read 288 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I made this video to post here so I could get help with my project because it wasn't working, but after I made the video, I realized I had just put the pins in in reverse order. So I reversed them and got it going!

...but since I had already made this video, I figured it might help others trying to figure out what the code does.

http://youtu.be/TqLebNMPF9I

The original code is from this tutorial on the Arduino site.... http://playground.arduino.cc/Main/AY38910#.UwkfjvldWSo

To troubleshoot, I routed the signals that were originally going to the AY's pins to led's. Then, I put delays after each time the signals to the pins changed so I could see what register the code was writing to and what was being put there.

!!Keep in mind the data register led's on the lower right are backwards because I am dumb!!

The first part of the video was to show I had the speaker hooked up correctly, so don't pay any attention to that part. The sound isn't coming from the AY (although it sounds quite similar.)

The next section shows the sequence of mode switching the the AY uses to link a memory address to the data you want to input.

Then, it shows the mode switching on the left and the address and write data on the right.

I also overlaid relevant sections of the manual on top of the video as reference for what the binary data means.

The video is short, but if you're trying to do something similar and want to know more, just let me know on G+ or in the comments.
« Last Edit: February 22, 2014, 06:19:19 pm by MoZI » Logged

Pages: [1]   Go Up
Jump to: