{"id":5728,"date":"2024-11-22T11:12:27","date_gmt":"2024-11-22T07:12:27","guid":{"rendered":"https:\/\/gameforstreet.ru\/?p=5728"},"modified":"2024-11-22T11:12:27","modified_gmt":"2024-11-22T07:12:27","slug":"migaem-svetodiodami-na-pic16f877a","status":"publish","type":"post","link":"https:\/\/xn--c1aaoofgb.xn--p1acf\/?p=5728","title":{"rendered":"\u041c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430\u043c\u0438 \u043d\u0430 pic16f877a"},"content":{"rendered":"<p><a href=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/programmator877-2.png\"><img loading=\"lazy\" src=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/programmator877-2.png\" alt=\"\" width=\"771\" height=\"351\" class=\"alignnone size-full wp-image-5699\" \/><\/a><\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043c\u0438\u0433\u0430\u0442\u044c 4-\u043c\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430\u043c\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0430\u0445 RC0, RC1, RC2, RC3 (15,16,17,18 \u043d\u043e\u0436\u043a\u0430 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435)(movlw b&#8217;00001111&#8242;) \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b PIC16F877A.<!--more--><\/p>\n<p><a href=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/888.jpg\"><img loading=\"lazy\" src=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/888.jpg\" alt=\"\" width=\"655\" height=\"800\" class=\"alignnone size-full wp-image-5738\" \/><\/a><\/p>\n<p>\u0421\u043a\u0430\u0447\u0430\u0442\u044c HEX \u0438 ASM \u0444\u0430\u0439\u043b\u044b \u043c\u0438\u0433\u0430\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430\u043c\u0438 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 PIC16F877A \u043c\u043e\u0436\u043d\u043e &#8211; \u0437\u0434\u0435\u0441\u044c:<br \/>\n\n<!-- Yandex.RTB R-A-350370-3 -->\n<div id=\"yandex_rtb_R-A-350370-3\"><\/div>\n<script type=\"text\/javascript\">\n    (function(w, d, n, s, t) {\n        w[n] = w[n] || [];\n        w[n].push(function() {\n            Ya.Context.AdvManager.render({\n                blockId: \"R-A-350370-3\",\n                renderTo: \"yandex_rtb_R-A-350370-3\",\n                async: true\n            });\n        });\n        t = d.getElementsByTagName(\"script\")[0];\n        s = d.createElement(\"script\");\n        s.type = \"text\/javascript\";\n        s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n        s.async = true;\n        t.parentNode.insertBefore(s, t);\n    })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script><br \/>\n<a href=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/mig16f877a.zip\" rel=\"noopener noreferrer\" target=\"_blank\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c HEX \u0438 ASM \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 zip.<\/a><br \/>\n<a href=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/mig16f877a.tar.gz\" rel=\"noopener noreferrer\" target=\"_blank\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c HEX \u0438 ASM \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 tar.gz.<\/a><\/p>\n<p>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nINCLUDE &lt;P16F877A.INC&gt;\n    ERRORLEVEL -302\n\n\n__CONFIG  _HS_OSC &amp; _WDT_OFF &amp; _PWRTE_OFF &amp; _CP_OFF &amp; _BODEN_ON &amp; _LVP_OFF &amp; _CPD_OFF \n\nReg_1 EQU 22\nReg_2 EQU 23\nReg_3 EQU 24\n\n org 0\n\nStart\n BCF   STATUS,RP0  ; select bank 0\n CLRF  PORTA       ; porta=0\n movlw b'11111111'\n movwf CMCON \n BSF   STATUS,RP0  ; select bank 1\n movlw b'00001000'\n movwf TRISA\n CLRF  TRISC       ; make PORTC pins all output\n BCF   STATUS,RP0  ; select bank 0\n movlw b'00000000'\n movwf  PORTC       ; set portc pins equal to 0\n\nloop\n movlw b'00001111'\n movwf PORTC\n call Pause\nmovlw b'00000000'\n movwf PORTC\ncall Pause\n goto loop\n\nPause\n       movlw       0x173\n       movwf       Reg_1\n       movlw       0x19\n       movwf       Reg_2\n       movlw       0x6\n       movwf       Reg_3\nwr          \n       decfsz      Reg_1, 1\n       goto        wr\n       decfsz      Reg_2, 1\n       goto        wr\n       decfsz      Reg_3, 1\n       goto        wr\n       nop\nreturn\n\n end\n\n<\/pre>\n<p>\u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f:<\/p>\n<p>\u0420\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b &#8211; 2 \u0448\u0442 \u043f\u043e 12 \u043a\u041e\u043c.<br \/>\n\u041a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u044b \u043a\u0440\u0435\u043c\u043d\u0435\u0432\u044b\u0435 \u043f\u043e 40\u043f\u0424.<br \/>\n\u0420\u0435\u0437\u043e\u043d\u0430\u0442\u043e\u0440 \u043d\u0430 4-6 \u041c\u0413\u0446.<br \/>\n4 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430.<br \/>\n\u041f\u0438\u0442\u0430\u043d\u0438\u0435 \u043d\u0430 5 \u0412 \u043c\u043e\u0436\u043d\u043e \u0441 USB \u043a\u043e\u043c\u043f\u0430.<\/p>\n<p><a href=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/888.jpg\"><img loading=\"lazy\" src=\"https:\/\/gameforstreet.ru\/wp-content\/uploads\/2024\/11\/888.jpg\" alt=\"\" width=\"655\" height=\"800\" class=\"alignnone size-full wp-image-5738\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043c\u0438\u0433\u0430\u0442\u044c 4-\u043c\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430\u043c\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0430\u0445 RC0, RC1, RC2, RC3 (15,16,17,18 \u043d\u043e\u0436\u043a\u0430 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435)(movlw b&#8217;00001111&#8242;) \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b PIC16F877A.<\/p>\n","protected":false},"author":2,"featured_media":5735,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=\/wp\/v2\/posts\/5728"}],"collection":[{"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5728"}],"version-history":[{"count":0,"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=\/wp\/v2\/posts\/5728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=\/wp\/v2\/media\/5735"}],"wp:attachment":[{"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xn--c1aaoofgb.xn--p1acf\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}