{"id":20522860,"url":"https://github.com/anachrocomputer/playymztune","last_synced_at":"2026-04-20T01:31:47.821Z","repository":{"id":228046630,"uuid":"772783066","full_name":"anachrocomputer/playYMZtune","owner":"anachrocomputer","description":"Arduino sketch to play a tune on the YMZ284 Programmable Sound Generator","archived":false,"fork":false,"pushed_at":"2024-03-16T14:20:16.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T00:44:37.487Z","etag":null,"topics":["arduino","arduino-sketch","psg","ymz284"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anachrocomputer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-15T22:23:36.000Z","updated_at":"2024-03-15T22:28:15.000Z","dependencies_parsed_at":"2024-03-16T17:34:00.847Z","dependency_job_id":"099c9b52-c8da-4e25-9061-468a1ee5d8df","html_url":"https://github.com/anachrocomputer/playYMZtune","commit_stats":null,"previous_names":["anachrocomputer/playymztune"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anachrocomputer/playYMZtune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anachrocomputer%2FplayYMZtune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anachrocomputer%2FplayYMZtune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anachrocomputer%2FplayYMZtune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anachrocomputer%2FplayYMZtune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anachrocomputer","download_url":"https://codeload.github.com/anachrocomputer/playYMZtune/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anachrocomputer%2FplayYMZtune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32029556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"ssl_error","status_checked_at":"2026-04-20T00:17:31.068Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","arduino-sketch","psg","ymz284"],"created_at":"2024-11-15T22:37:08.441Z","updated_at":"2026-04-20T01:31:47.803Z","avatar_url":"https://github.com/anachrocomputer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# playYMZtune #\n\nThe Yamaha YMZ284 is a 16-pin chip which has the same function and register-level interface as the General Instruments\n[AY-3-8910](https://en.wikipedia.org/wiki/General_Instrument_AY-3-8910 \"Wikipedia: General Instrument AY-3-8910\").\nThe YMZ284, though, is smaller and has a simpler bus interface.\nUnlike the AY-3-8910, it is write-only; register contents may not be read back.\n\nThis Arduino sketch uses a YMZ284 chip to play a short tune.\n\nThe ATmega328 on the Arduino is set up to generate a 2MHz clock on Arduino Pin 3\n(ATmega328 Pin 5).\nThis is the 16MHz Arduino clock frequency divided by 8.\n\n## Connections ##\n\n| Signal | Arduino Pin | ATmega328 Pin | YMZ284 Pin | Notes                        |\n|:-------|:------------|:--------------|:-----------|:-----------------------------|\n| RxD    | 0           | PORTD0 pin 2  |            | Unused                       |\n| TxD    | 1           | PORTD1 pin 3  |            | Unused                       |\n| CS     | 2           | PORTD2 pin 4  | /CS pin 2  | Chip Select, active LOW      |\n| CLK    | 3           | PORTD3 pin 5  | ΦM pin 7   | Main clock, 2MHz             |\n| WR     | 4           | PORTD4 pin 6  | /WR pin 1  | Write Enable, active LOW     |\n| A0     | 5           | PORTD5 pin 11 | A0 pin 3   | Address/Data Select          |\n| D0     | 6           | PORTD6 pin 12 | D0 pin 16  | CPU interface data bus (LSB) |\n| D1     | 7           | PORTD7 pin 13 | D1 pin 15  | CPU interface data bus       |\n| D2     | 8           | PORTB0 pin 14 | D2 pin 14  | CPU interface data bus       |\n| D3     | 9           | PORTB1 pin 15 | D3 pin 13  | CPU interface data bus       |\n| D4     | 10          | PORTB2 pin 16 | D4 pin 12  | CPU interface data bus       |\n| D5     | 11          | PORTB3 pin 17 | D5 pin 11  | CPU interface data bus       |\n| D6     | 12          | PORTB4 pin 18 | D6 pin 10  | CPU interface data bus       |\n| D7     | 13          | PORTB5 pin 19 | D7 pin 9   | CPU interface data bus (MSB) |\n|        |             |               | /IC pin 8  | Initial Clear, active LOW    |\n|        |             |               | SO pin 5   | D/A Converter Output (sound) |\n| Vdd    | 5V          | VCC pin 7/21  | VDD pin 4  | +5V Power Supply             |\n| Gnd    | Gnd         | GND pin 8/22  | GND pin 6  | Ground                       |\n\n## YMZ284 Chip ##\n![YMZ284 chip](YMZ284.jpg \"YMZ284 chip\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanachrocomputer%2Fplayymztune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanachrocomputer%2Fplayymztune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanachrocomputer%2Fplayymztune/lists"}