{"id":277835,"date":"2016-04-07T12:55:01","date_gmt":"2016-04-07T08:55:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=277835"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=277835","title":{"rendered":"Arduino ZX Spectrum AY Player"},"content":{"rendered":"<p>       \u0410\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u0435\u043b\u043e\u0434\u0438\u0439 \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 ZX Spectrum \u043d\u0430 Arduino \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0435\u0442\u0430\u043b\u0435\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e25\/4eb\/7a4\/e254eb7a47a94a6380156bd48cb90759.jpg\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e <a href=\"http:\/\/bulba.untergrund.net\/music.htm\">\u0441\u043f\u0435\u043a\u0442\u0440\u0443\u043c\u043e\u0432\u0441\u043a\u0438\u0435 \u043c\u0435\u043b\u043e\u0434\u0438\u0438<\/a> \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0432 \u043c\u043e\u0451\u043c \u0441\u0435\u0440\u0434\u0446\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0441\u043b\u0443\u0448\u0430\u044e \u043b\u044e\u0431\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 <a href=\"http:\/\/bulba.untergrund.net\/emulator.htm\">\u0431\u0443\u043b\u044c\u0431\u043e\u0432\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1d5\/d7d\/7a7\/1d5d7d7a7c9048ed88d57975f37caf41.jpg\"\/><\/p>\n<p>  \u041d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443. \u042d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0440\u0435\u0448\u0430\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 EEE PC. \u041d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u041f\u043e\u0438\u0441\u043a\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u0440\u0430\u0441\u0430\u0432\u0446\u0435\u0432:<br \/>  <a href=\"http:\/\/www.irls.narod.ru\/sncl\/ay001.htm\">AY-player \u00abXZ-80\u00bb.<\/a><br \/>  <a href=\"http:\/\/www.diagram.com.ua\/list\/home\/home46.shtml\">\u041c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0432\u0435\u0440\u043d\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u043c \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0435 AY8910<\/a><\/p>\n<p>  \u041e\u043d\u0438 \u0432\u043e\u0441\u0445\u0438\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u044b \u0441\u0432\u043e\u0435\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043d\u043e\u0439 \u0431\u0430\u0437\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u043e\u0441\u0442\u0430\u043b\u044c\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f, \u043d\u043e \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043b, \u0447\u0442\u043e \u043c\u043e\u044f \u043b\u0435\u043d\u044c \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043c\u043d\u0435 \u0434\u043e\u0432\u0435\u0441\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e \u043a\u043e\u043d\u0446\u0430.<\/p>\n<p>  \u041c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0447\u0442\u043e-\u0442\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435. \u0418 \u0432\u043e\u0442 \u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442:<br \/>  <a href=\"http:\/\/zx-pk.ru\/showpost.php?p=568956&amp;postcount=75\">AVR AY-player<\/a><\/p>\n<p>  <iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/6Bj6zMlTw10?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  -\u0418\u0433\u0440\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b *.PSG<br \/>  -\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 FAT16 (FAT12 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \ud83d\ude42<br \/>  -\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0432 \u043a\u043e\u0440\u043d\u0435 \u0434\u0438\u0441\u043a\u0430 32<br \/>  -\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 42 (\u0438\u0442\u043e\u0433\u043e 32*42=1344 \u0444\u0430\u0439\u043b\u043e\u0432)<br \/>  -\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0445 \u043f\u043e \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0432\u0443\u043c \u0431\u0443\u043a\u0432\u0430\u043c \u0438\u043c\u0435\u043d\u0438<\/p>\n<p>  \u0421\u0445\u0435\u043c\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e\u0439 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bb5\/bf2\/f04\/bb5bf2f040304c99918d9d7aebe0e0b5.jpg\"\/><\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043d\u0430\u0448\u043b\u0451\u043b\u0441\u044f <i>\u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0440\u0442\u0438\u043b \u0438\u0434\u0434\u0438\u043b\u0438\u044e: \u043d\u0435\u0442 \u0440\u0435\u0436\u0438\u043c\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438. (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0442\u043e\u0438\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443?).<\/p>\n<p>  \u0414\u0436\u0432\u0430 \u0433\u043e\u0434\u0430 \u044f \u0438\u0441\u043a\u0430\u043b \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438 \u0432\u043e\u0442 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435 \u043c\u043e\u0451 \u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043c\u043e\u0435\u0439 \u0444\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043b\u0435\u043d\u0438, \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f: <br \/>  1. \u0411\u0435\u0440\u0451\u043c Arduino Mini Pro, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u043e\u0437\u0438\u0442\u0441\u044f \u0441 \u043e\u0431\u0432\u044f\u0437\u043a\u043e\u0439.<br \/>  2. \u041d\u0443\u0436\u043d\u0430 SD-\u043a\u0430\u0440\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0433\u0434\u0435-\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043c\u0443\u0437\u044b\u043a\u0443. \u0417\u043d\u0430\u0447\u0438\u0442 \u0431\u0435\u0440\u0451\u043c SD-shield.<br \/>  3. \u041d\u0443\u0436\u0435\u043d \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440. \u0421\u0430\u043c\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u2014 AY-3-8912.<\/p>\n<p>  \u0411\u044b\u043b \u0435\u0449\u0451 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u00ab\u0442\u0451\u043f\u043b\u043e\u0433\u043e \u043b\u0430\u043c\u043f\u043e\u0432\u043e\u0433\u043e \u0437\u0432\u0443\u043a\u0430\u00bb, \u0435\u0432\u043f\u043e\u0447\u044f.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c PSG-\u0444\u043e\u0440\u043c\u0430\u0442.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 PSG-\u0444\u043e\u0440\u043c\u0430\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">Offset Number of byte Description<br \/>  +0 3 Identifier &#8216;PSG&#8217;<br \/>  +3 1 Marker \u201cEnd of Text\u201d (1Ah)<br \/>  +4 1 Version number<br \/>  +5 1 Player frequency (for versions 10+)<br \/>  +6 10 Data<\/p>\n<p>  Data \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440 \u0431\u0430\u0439\u0442\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u0430\u0439\u0442 \u2014 \u043d\u043e\u043c\u0435\u0440 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 (\u043e\u0442 0 \u0434\u043e 0x0F), \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<br \/>  \u0412\u043c\u0435\u0441\u0442\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u044b: 0xFF, 0xFE \u0438\u043b\u0438 0xFD<br \/>  0xFD \u2014 \u043a\u043e\u043d\u0435\u0446 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438.<br \/>  0xFF \u2014 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 20 \u043c\u0441.<br \/>  0xFE \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u0430\u0439\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432\u044b\u0436\u0434\u0430\u0442\u044c \u043f\u043e 80 \u043c\u0441.<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0430\u043a \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 PSG<\/b><\/p>\n<div class=\"spoiler_text\">1. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <a href=\"http:\/\/bulba.untergrund.net\/emulator.htm\">\u0431\u0443\u043b\u044c\u0431\u043e\u0432\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c<\/a>.<br \/>  2. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 <b>[PL]<\/b>.<br \/>  3. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u043b\u043e\u0434\u0438\u0438 \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442.<br \/>  4. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043c\u0435\u043b\u043e\u0434\u0438\u044e \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u043d\u044e, \u0432 \u043d\u0451\u043c <b>Convert to PSG&#8230;<\/b><br \/>  5. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c \u043d\u0435 \u0434\u043b\u0438\u043d\u043d\u0435\u0435 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u0441\u0442\u044c\u044e.<\/div>\n<\/div>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f SD-\u043a\u0430\u0440\u0442\u044b. \u041b\u0435\u043d\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0430 \u0432\u0437\u044f\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 SD-shield \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/www.arduino.cc\/en\/Reference\/SD\">\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u0430\u0440\u0442\u043e\u0439<\/a>.<\/p>\n<p>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u2014 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b 10 \u0432\u044b\u0432\u043e\u0434 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u0430\u0440\u0442\u044b:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/869\/04d\/632\/86904d632edf47dfb98863d669529126.jpg\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0440\u0451\u043c <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/listfiles\">\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u043a\u0435\u0442\u0447<\/a>:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u043a\u0435\u0442\u0447 \u0441\u043f\u0438\u0441\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u043a\u0430\u0440\u0442\u0435<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;SPI.h&gt; #include &lt;SD.h&gt;  void setup() {   Serial.begin(9600);   Serial.print(&quot;Initializing SD card...&quot;);    if (!SD.begin(10)) {     Serial.println(&quot;initialization failed!&quot;);     return;   }   Serial.println(&quot;initialization done.&quot;);    File root = SD.open(&quot;\/&quot;);   printDirectory(root);    Serial.println(&quot;done!&quot;); }  void loop() { }  void printDirectory(File dir) {   while (true) {     File entry =  dir.openNextFile();     if (!entry)  break;     Serial.print(entry.name());     if (!entry.isDirectory()) {       Serial.print(&quot;\\t\\t&quot;);       Serial.println(entry.size(), DEC);     }     entry.close();   } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0424\u043e\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u0440\u0442\u0443, \u043f\u0438\u0448\u0435\u043c \u0442\u0443\u0434\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c\u2026 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<br \/>  \u0412\u043e\u0442 \u0443 \u043c\u0435\u043d\u044f \u0442\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u2014 \u043d\u0430\u0438\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0435\u0439\u0448\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043a\u043e\u0441\u044f\u043a\u0438.<\/p>\n<p>  \u0411\u0435\u0440\u0451\u043c \u0434\u0440\u0443\u0433\u0443\u044e \u0444\u043b\u0435\u0448\u043a\u0443 \u2014 (\u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u0430\u044f \u043d\u0430 32Mb, \u0431\u0435\u0440\u0451\u043c \u043d\u043e\u0432\u0435\u043d\u044c\u043a\u0443\u044e \u043d\u0430 2Gb) \u2014 \u0430\u0433\u0430, \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437. \u041f\u043e\u043b\u0447\u0430\u0441\u0430 \u0447\u0435\u0441\u0430\u043d\u0438\u044f \u043b\u0431\u0430, \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u043f\u043e\u0431\u043b\u0438\u0436\u0435 \u043a \u043a\u0430\u0440\u0442\u0435 (\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0438 \u0431\u044b\u043b\u0438 \u043a\u043e\u0440\u043e\u0447\u0435), \u0440\u0430\u0437\u0432\u044f\u0437\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e \u2014 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u043b\u043e \u0432 100% \u0441\u043b\u0443\u0447\u0430\u0435\u0432. \u041b\u0430\u0434\u043d\u043e, \u0435\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435\u2026<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u2014 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 1.75 \u041c\u0413\u0446. \u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043f\u0430\u044f\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0430 14 \u041c\u0413\u0446 \u043a\u0432\u0430\u0440\u0446\u0435 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u0442\u0440\u0430\u0442\u0438\u043c \u043f\u043e\u043b\u0434\u043d\u044f \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/SecretsOfArduinoPWM\">\u0434\u043e\u043a\u043e\u0432 \u043f\u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443<\/a> \u0438 \u0443\u0437\u043d\u0430\u0451\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0445\u0430\u0440\u0434\u043e\u0432\u044b\u0435 1.77(7) \u041c\u0433\u0446, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/SecretsOfArduinoPWM\">\u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0428\u0418\u041c<\/a>:<\/p>\n<pre><code class=\"cpp\">  pinMode(3, OUTPUT);   TCCR2A = 0x23;   TCCR2B = 0x09;   OCR2A = 8;   OCR2B = 3;  <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0437\u0430\u0432\u043e\u0434\u0438\u043c \u0441\u0431\u0440\u043e\u0441 \u043c\u0443\u0437\u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u043d\u0430 \u043f\u0438\u043d 2, \u043d\u0438\u0436\u043d\u0438\u0439 \u043d\u0438\u0431\u0431\u043b \u0448\u0438\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 A0-A3, \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u043d\u0430 4,5,6,7, BC1 \u043d\u0430 \u043f\u0438\u043d 8, BDIR \u043d\u0430 \u043f\u0438\u043d 9. \u0410\u0443\u0434\u0438\u043e \u0432\u044b\u0445\u043e\u0434\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0432 \u043c\u043e\u043d\u043e \u0440\u0435\u0436\u0438\u043c\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/89c\/d1f\/045\/89cd1f045d3e468b97fddf155db61673.jpg\"\/><\/p>\n<p>  \u041d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c9f\/c30\/758\/c9fc30758f5343e0bfd7cbae53fa5e74.jpg\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043d\u044b\u0439 \u0441\u043a\u0435\u0442\u0447 (\u043e\u0442\u043a\u0443\u0434\u0430 \u0443\u0442\u0430\u0449\u0438\u043b \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0435 \u043f\u043e\u043c\u043d\u044e)<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;SPI.h&gt; #include &lt;SD.h&gt;  void resetAY(){   pinMode(A0, OUTPUT); \/\/ D0   pinMode(A1, OUTPUT);   pinMode(A2, OUTPUT);   pinMode(A3, OUTPUT); \/\/ D3      pinMode(4, OUTPUT); \/\/ D4   pinMode(5, OUTPUT);   pinMode(6, OUTPUT);   pinMode(7, OUTPUT); \/\/ D7      pinMode(8, OUTPUT);  \/\/ BC1   pinMode(9, OUTPUT);  \/\/ BDIR      digitalWrite(8,LOW);   digitalWrite(9,LOW);      pinMode(2, OUTPUT);   digitalWrite(2, LOW);   delay(100);   digitalWrite(2, HIGH);   delay(100);      for (int i=0;i&lt;16;i++) ay_out(i,0); }   void setupAYclock(){   pinMode(3, OUTPUT);   TCCR2A = 0x23;   TCCR2B = 0x09;   OCR2A = 8;   OCR2B = 3;  }  void setup() {   Serial.begin(9600);   randomSeed(analogRead(4)+analogRead(5));    setupAYclock();   resetAY(); }  void ay_out(unsigned char port, unsigned char data){   PORTB = PORTB & B11111100;    PORTC = port & B00001111;   PORTD = PORTD & B00001111;    PORTB = PORTB | B00000011;   delayMicroseconds(1);   PORTB = PORTB & B11111100;    PORTC = data & B00001111;   PORTD = (PORTD & B00001111) | (data & B11110000);    PORTB = PORTB | B00000010;   delayMicroseconds(1);   PORTB = PORTB & B11111100; }  unsigned int cb = 0;  byte rawData[] = {     0xFF, 0x00, 0x8E, 0x02, 0x38, 0x03, 0x02, 0x04, 0x0E, 0x05, 0x02, 0x07,      0x1A, 0x08, 0x0F, 0x09, 0x10, 0x0A, 0x0E, 0x0B, 0x47, 0x0D, 0x0E, 0xFF,      0x00, 0x77, 0x04, 0x8E, 0x05, 0x03, 0x07, 0x3A, 0x08, 0x0E, 0x0A, 0x0D,      0xFF, 0x00, 0x5E, 0x04, 0x0E, 0x05, 0x05, 0x0A, 0x0C, 0xFF, 0x04, 0x8E,      0x05, 0x06, 0x07, 0x32, 0x08, 0x00, 0x0A, 0x0A, 0xFF, 0x05, 0x08, 0x0A,      0x07, 0xFF, 0x04, 0x0E, 0x05, 0x0A, 0x0A, 0x04, 0xFF, 0x00, 0x8E, 0x04,      0x8E, 0x05, 0x00, 0x07, 0x1E, 0x08, 0x0F, 0x0A, 0x0B, 0x0D, 0x0E, 0xFF,      0x00, 0x77, 0x08, 0x0E, 0x0A, 0x06, 0xFF, 0x00, 0x5E, 0x07, 0x3E, 0x0A,      0x00, 0xFF, 0x07, 0x36, 0x08, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x8E, 0x07,      0x33, 0x08, 0x0B, 0x0A, 0x0F, 0x0D, 0x0E, 0xFF, 0x04, 0x77, 0x08, 0x06,      0x0A, 0x0E, 0xFF, 0x04, 0x5E, 0x07, 0x3B, 0x08, 0x00, 0xFF, 0x07, 0x1B,      0x0A, 0x00, 0xFF, 0xFF, 0xFF, 0x02, 0x1C, 0x03, 0x01, 0x04, 0x8E, 0x07,      0x33, 0x08, 0x0B, 0x0A, 0x0B, 0x0B, 0x23, 0x0D, 0x0E, 0xFF, 0x04, 0x77,      0x08, 0x06, 0x0A, 0x0A, 0xFF, 0x04, 0x5E, 0x07, 0x3B, 0x08, 0x00, 0x0A,      0x09, 0xFF, 0x07, 0x1B, 0x0A, 0x00, 0xFF, 0xFF, 0xFF, 0x02, 0x8E, 0x03,      0x00, 0x04, 0x0E, 0x05, 0x01, 0x07, 0x18, 0x08, 0x0F, 0x09, 0x0B, 0x0A,      0x0E, 0xFF, 0x00, 0x77, 0x02, 0x77, 0x04, 0x8E, 0x06, 0x01, 0x08, 0x0E,      0x09, 0x0A, 0x0A, 0x0D, 0xFF, 0x00, 0x5E, 0x02, 0x5E, 0x04, 0x0E, 0x05,      0x02, 0x06, 0x02, 0x09, 0x09, 0x0A, 0x0C, 0xFF, 0x02, 0x8E, 0x04, 0x8E,      0x07, 0x30, 0x08, 0x00, 0x09, 0x08, 0x0A, 0x0A, 0xFF, 0x02, 0x77, 0xFF,     0xFF }  void pseudoInterrupt(){   while(rawData[cb]&lt;0xFF){    Serial.print(&quot;AY[&quot;);    Serial.print(rawData[cb],DEC);    Serial.print(&quot;] = &quot;);    Serial.print(rawData[cb+1],HEX);    Serial.println();    ay_out(rawData[cb],rawData[cb+1]);    cb++;    cb++;  }  if(rawData[cb]==0xff)cb++;    if (cb&gt;20*12) {    Serial.println(&quot;==================================================== ZERO ==================================================&quot;);    cb=0;  } }  void loop() {   delay(20);   pseudoInterrupt(); } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0418 \u0441\u043b\u044b\u0448\u0438\u043c \u043f\u043e\u043b-\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u043c\u0435\u043b\u043e\u0434\u0438\u0438! (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044f \u0442\u0443\u0442 \u0435\u0449\u0451 \u0434\u0432\u0430 \u0447\u0430\u0441\u0430 \u0438\u0449\u0443 \u043a\u0430\u043a \u044f \u0437\u0430\u0431\u044b\u043b \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u0441\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438).<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u0430 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f 50 \u0413\u0446, \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;SPI.h&gt; #include &lt;SD.h&gt;  void resetAY(){   pinMode(A0, OUTPUT); \/\/ D0   pinMode(A1, OUTPUT);   pinMode(A2, OUTPUT);   pinMode(A3, OUTPUT); \/\/ D3      pinMode(4, OUTPUT); \/\/ D4   pinMode(5, OUTPUT);   pinMode(6, OUTPUT);   pinMode(7, OUTPUT); \/\/ D7      pinMode(8, OUTPUT);  \/\/ BC1   pinMode(9, OUTPUT);  \/\/ BDIR      digitalWrite(8,LOW);   digitalWrite(9,LOW);      pinMode(2, OUTPUT);   digitalWrite(2, LOW);   delay(100);   digitalWrite(2, HIGH);   delay(100);      for (int i=0;i&lt;16;i++) ay_out(i,0); }   void setupAYclock(){   pinMode(3, OUTPUT);   TCCR2A = 0x23;   TCCR2B = 0x09;   OCR2A = 8;   OCR2B = 3;  }  void setup() {   Serial.begin(9600);   randomSeed(analogRead(4)+analogRead(5));    initFile();    setupAYclock();   resetAY();   setupTimer(); }  void setupTimer(){   cli();      TCCR1A = 0;\/\/ set entire TCCR1A register to 0   TCCR1B = 0;\/\/ same for TCCR1B   TCNT1  = 0;\/\/initialize counter value to 0   OCR1A = 1250;    TCCR1B |= (1 &lt;&lt; WGM12);   TCCR1B |= (1 &lt;&lt; CS12);  \/\/ Set CS12 bit for 256 prescaler   TIMSK1 |= (1 &lt;&lt; OCIE1A); \/\/ enable timer compare interrupt    sei(); }  void ay_out(unsigned char port, unsigned char data){   PORTB = PORTB & B11111100;    PORTC = port & B00001111;   PORTD = PORTD & B00001111;    PORTB = PORTB | B00000011;   delayMicroseconds(1);   PORTB = PORTB & B11111100;    PORTC = data & B00001111;   PORTD = (PORTD & B00001111) | (data & B11110000);    PORTB = PORTB | B00000010;   delayMicroseconds(1);   PORTB = PORTB & B11111100; }  unsigned int playPos = 0; unsigned int fillPos = 0; const int bufSize = 200; byte playBuf[bufSize]; \/\/ 31 bytes per frame max, 50*31 = 1550 per sec, 155 per 0.1 sec  File fp; boolean playFinished = false;  void loop() {   fillBuffer();   if (playFinished){     fp.close();     openRandomFile();     playFinished = false;   } }  void fillBuffer(){   int fillSz = 0;   int freeSz = bufSize;   if (fillPos&gt;playPos) {     fillSz = fillPos-playPos;     freeSz = bufSize - fillSz;   }   if (playPos&gt;fillPos) {     freeSz = playPos - fillPos;     fillSz = bufSize - freeSz;   }      freeSz--; \/\/ do not reach playPos   while (freeSz&gt;0){     byte b = 0xFD;     if (fp.available()){       b = fp.read();     }     playBuf[fillPos] = b;     fillPos++;     if (fillPos==bufSize) fillPos=0;     freeSz--;   } }  void prepareFile(char *fname){   Serial.print(&quot;prepare [&quot;);   Serial.print(fname);   Serial.println(&quot;]...&quot;);      fp = SD.open(fname);      if (!fp){     Serial.println(&quot;error opening music file&quot;);     return;   }          while (fp.available()) {     byte b = fp.read();     if (b==0xFF) break;   }     fillPos = 0;   playPos = 0;   cli();     fillBuffer();   resetAY();   sei(); }  File root; int fileCnt = 0;  void openRandomFile(){   int sel = random(0,fileCnt-1);    Serial.print(&quot;File selection = &quot;);   Serial.print(sel, DEC);   Serial.println();      root.rewindDirectory();      int i = 0;   while (true) {     File entry =  root.openNextFile();     if (!entry)  break;      Serial.print(entry.name());     if (!entry.isDirectory()) {       Serial.print(&quot;\\t\\t&quot;);       Serial.println(entry.size(), DEC);              if (i==sel) prepareFile(entry.name());       i++;     }     entry.close();   } }  void initFile(){   Serial.print(&quot;Initializing SD card...&quot;);   pinMode(10, OUTPUT);   digitalWrite(10, HIGH);    if (!SD.begin(10)) {     Serial.println(&quot;initialization failed!&quot;);     return;   }   Serial.println(&quot;initialization done.&quot;);    root = SD.open(&quot;\/&quot;);    \/\/ reset AY    fileCnt = countDirectory(root);   Serial.print(&quot;Files cnt = &quot;);   Serial.print(fileCnt, DEC);   Serial.println();   openRandomFile();    Serial.print(&quot;Buffer size = &quot;);   Serial.print(bufSize, DEC);   Serial.println();      Serial.print(&quot;fillPos = &quot;);   Serial.print(fillPos, DEC);   Serial.println();    Serial.print(&quot;playPos = &quot;);   Serial.print(playPos, DEC);   Serial.println();    for (int i=0; i&lt;bufSize;i++){     Serial.print(playBuf[i],HEX);     Serial.print(&quot;-&quot;);     if (i%16==15) Serial.println();   }    Serial.println(&quot;done!&quot;); }  int countDirectory(File dir) {   int res = 0;   root.rewindDirectory();   while (true) {      File entry =  dir.openNextFile();     if (!entry)  break;      Serial.print(entry.name());     if (!entry.isDirectory()) {       Serial.print(&quot;\\t\\t&quot;);       Serial.println(entry.size(), DEC);       res++;     }     entry.close();   }      return res; }  int skipCnt = 0;  ISR(TIMER1_COMPA_vect){   if (skipCnt&gt;0){     skipCnt--;   } else {     int fillSz = 0;     int freeSz = bufSize;     if (fillPos&gt;playPos) {       fillSz = fillPos-playPos;       freeSz = bufSize - fillSz;     }     if (playPos&gt;fillPos) {       freeSz = playPos - fillPos;       fillSz = bufSize - freeSz;     }      boolean ok = false;     int p = playPos;     while (fillSz&gt;0){       byte b = playBuf[p];       p++; if (p==bufSize) p=0;       fillSz--;              if (b==0xFF){ ok = true; break; }       if (b==0xFD){          ok = true;          playFinished = true;         for (int i=0;i&lt;16;i++) ay_out(i,0);         break;        }       if (b==0xFE){          if (fillSz&gt;0){           skipCnt = playBuf[p];           p++; if (p==bufSize) p=0;           fillSz--;                      skipCnt = 4*skipCnt;           ok = true;            break;          }        }       if (b&lt;=252){         if (fillSz&gt;0){           byte v = playBuf[p];           p++; if (p==bufSize) p=0;           fillSz--;                      if (b&lt;16) ay_out(b,v);         }        }     } \/\/ while (fillSz&gt;0)        if (ok){       playPos = p;     }   } \/\/ else skipCnt  } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0441\u0442\u0438 \u044f \u0435\u0449\u0451 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430 TDA2822M, \u0432\u0441\u0451 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 200 \u043c\u0410, \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043e \u043f\u0438\u0442\u0430\u0442\u044c \u043e\u0442 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c52\/21f\/2e1\/c5221f2e12294767af40d5c5aaee0176.jpg\"\/><\/p>\n<p>  \u041e\u0431\u0435 \u043c\u0430\u043a\u0435\u0442\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u0435:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4a9\/028\/62b\/4a902862b97844d3967655e2bbd1be7f.jpg\"\/><\/p>\n<p>  \u0412\u043e\u0442 \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043f\u043e\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f, \u043c\u0443\u0437\u044b\u043a\u0443 \u0441\u043b\u0443\u0448\u0430\u044e \u0441 \u043c\u0430\u043a\u0435\u0442\u043a\u0438, \u0440\u0430\u0437\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u0432 \u043a\u0430\u043a\u043e\u043c \u043a\u043e\u0440\u043f\u0443\u0441\u0435 \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u044d\u0442\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c. \u0414\u0443\u043c\u0430\u043b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440, \u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e.<\/p>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u0441\u044b\u0440\u043e\u0432\u0430\u0442\u0430, \u0442.\u043a. \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u043e \u0442.\u043a. \u044f \u043c\u043e\u0433\u0443 \u0435\u0433\u043e \u0437\u0430\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u043f\u0430\u0440\u0443 \u043b\u0435\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u0433\u043e\u0440\u044f\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0430\u043c. \u0412\u043e\u043f\u0440\u043e\u0441\u044b, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u2014 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430:  <\/p>\n<ul>\n<li><a href=\"https:\/\/www.reddit.com\/r\/arduino\/comments\/3898g6\/generating_14_mhz_clock_on_arduino\/\">Generating 1-4 MHz clock on Arduino<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/geektimes.ru\/post\/273968\/\"> https:\/\/geektimes.ru\/post\/273968\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0410\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u0435\u043b\u043e\u0434\u0438\u0439 \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 ZX Spectrum \u043d\u0430 Arduino \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0435\u0442\u0430\u043b\u0435\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e25\/4eb\/7a4\/e254eb7a47a94a6380156bd48cb90759.jpg\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-277835","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/277835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277835"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/277835\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}