{"id":8053,"date":"2022-07-05T13:50:39","date_gmt":"2022-07-05T04:50:39","guid":{"rendered":"https:\/\/mkusunoki.net\/?p=8053"},"modified":"2022-07-05T15:57:45","modified_gmt":"2022-07-05T06:57:45","slug":"mcs-52-basic-%e5%9f%ba%e6%9d%bf%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/mkusunoki.net\/?p=8053","title":{"rendered":"MCS-52 Basic \u57fa\u677f\u4f5c\u6210"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS.jpg\" alt=\"\" class=\"wp-image-8054\" srcset=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS.jpg 1280w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS-1024x768.jpg 1024w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS-320x240.jpg 320w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS-768x576.jpg 768w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040346082_iOS-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/figure>\n\n\n\n<p>\u30e4\u30d5\u30aa\u30af\u3092\u898b\u3066\u3044\u307e\u3057\u305f\u3089\u3001BASIC-52 \u306e\u57fa\u677f\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u8cfc\u5165\u3002\u57fa\u677f\u306b\u66f8\u304b\u308c\u305f\u30a2\u30c9\u30ec\u30b9\u304b\u3089 <a rel=\"noreferrer noopener\" href=\"https:\/\/www.billy.gr\/mcs-basic-52\/\" target=\"_blank\">https:\/\/www.billy.gr\/mcs-basic-52\/<\/a>  \u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30ac\u30fc\u30d0\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u3067\u3059\u3002\u4ee5\u524d\u4f5c\u6210\u3057\u305f BASIC-52 \u57fa\u677f\u306f EEPROM \u9818\u57df\u304c\u306a\u3044\u305f\u3081\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4fdd\u5b58\u304c\u51fa\u6765\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306e\u57fa\u677f\u306f EEPROM \u306e\u30bd\u30b1\u30c3\u30c8\u304c\u4ed8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u57fa\u677f\u3092\u4f5c\u6210\u3055\u308c\u305f\u65b9\u306f EEPROM \u306e\u4ee3\u308f\u308a\u306b DALLAS DS1230AB-70 \u3068\u3044\u3046 \u30d0\u30c3\u30c6\u30ea\u30fc\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u4ed8\u304d 32KB SRAM \uff08NVRAM) \u3092\u8f09\u305b\u3066\u304a\u3089\u308c\u307e\u3057\u305f\u3002\u4e0d\u63ee\u767a\u6027\u30e1\u30e2\u30ea\u306a\u306e\u3067\u6a5f\u80fd\u306f\u679c\u305f\u3057\u307e\u3059\u304c\u3001Mouser \u4fa1\u683c 4000\u5186\u7a0b\u5ea6\u3068\u304a\u9ad8\u3044\u72b6\u6cc1\u3002\u307e\u305f\u3001EEPROM \u306f HC138 \u306e\u30a2\u30c9\u30ec\u30b9\u30c7\u30b3\u30fc\u30c9\u3067 8KB \u30d0\u30a6\u30f3\u30c0\u30ea\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u30018KB \u5206\u3057\u304b\u3064\u304b\u3044\u307e\u305b\u3093\u3002NVRAM \u306f\u3082\u3063\u305f\u3044\u306a\u3044\u306e\u3067 AT28C64B \u306a\u30698KBx8bit \u306e\u6c4e\u7528EEPROM\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>WEB\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3068\u57fa\u677f\u306e\u30a8\u30e9\u30fc\u60c5\u5831\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS.jpg\" alt=\"\" class=\"wp-image-8055\" srcset=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS.jpg 1280w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS-1024x768.jpg 1024w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS-320x240.jpg 320w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS-768x576.jpg 768w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2022\/07\/20220705_040353581_iOS-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/figure>\n\n\n\n<p>DC \u30b8\u30e3\u30c3\u30af\u306e GND \u672a\u914d\u7dda\u306f\u3001DC\u30b8\u30e3\u30c3\u30af\u306e\u7aef\u5b50\u3092\u62b5\u6297\u306e\u5207\u308c\u7aef\u3067\u63a5\u7d9a\u3057\u3066\u3001\u96fb\u6e90\u304c\u5165\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30ea\u30bb\u30c3\u30c8\u56de\u8def\u304b\u3089\u306e\u4fe1\u53f7\u306f CPU \u306e\u30ea\u30bb\u30c3\u30c8\u7aef\u5b50\u307e\u3067\u6765\u3066\u3044\u307e\u3057\u305f\u304c\u300174HC32 \u306e\u30ea\u30bb\u30c3\u30c8\u4fe1\u53f7\u304c\u914d\u7dda\u3055\u308c\u308b\u3079\u304d\u7aef\u5b50\u306b\u306f\u6765\u3066\u3044\u306a\u304b\u3063\u305f\u305f\u3081\u30b8\u30e3\u30f3\u30d1\u30fc\u98db\u3070\u3057\u3066\u7d50\u7dda\u3002\u79c1\u306e\u6240\u3067\u306f\u3053\u306e2\u304b\u6240\u624b\u5f53\u3059\u308b\u3053\u3068\u3067\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>*MCS-BASIC-52 V1.31*\nREADY\n\n&gt;erase       \n\nREADY\n&gt;\n&gt;10     REM Basic ROM directory\n&gt;20    ADR=8010H : PN=1\n&gt;30     IF XBY(ADR)&lt;&gt;55H THEN  END\n&gt;40    ADR=ADR+1 : BA=ADR\n&gt;50     IF XBY(ADR)=1 THEN  GOTO 80\n&gt;60    ADR=ADR+XBY(ADR): GOTO 50\n&gt;80     GOSUB 100: PRINT : PN=PN+1 : ADR=ADR+1:   GOTO 30\n&gt;100    PRINT \"PRG\",PN,\"from \", :  PH1. BA, :  PRINT \" to \", :  PH1. ADR,\n&gt;110    PRINT \" (\",ADR-BA,\"bytes)\",\n&gt;120   NB=XBY(BA)-2: IF NB&lt;4 THEN RETURN\n&gt;130 IF XBY(BA+3)&lt;&gt;96H THEN  RETURN\n&gt;140    FOR XX=BA+4 TO BA+NB:PRINT CHR(XBY(XX)),: NEXT : RETURN\n&gt;prog\n 1\n\nREADY\n<\/code><\/pre>\n\n\n\n<p>erase \u547d\u4ee4\u3067 EEPROM \u9818\u57df\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u30023\u5206\u304f\u3089\u3044\u304b\u304b\u308b\u306e\u3067\u6c17\u9577\u306b\u5f85\u3061\u307e\u3059\u3002\u305d\u306e\u5f8c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5165\u308c\u3066\u3001prog \u547d\u4ee4\u3092\u5b9f\u884c\u3059\u308b\u3068 EEPROM \u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u2191\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001EEPEOM \u306b\u3069\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u304b\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3001<a rel=\"noreferrer noopener\" href=\"http:\/\/www.nomad.ee\/micros\/8052bas.shtml\" target=\"_blank\">http:\/\/www.nomad.ee\/micros\/8052bas.shtml<\/a> \u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;rrom\n\nPRG 1 from  8011H to  8134H ( 291 bytes) Basic ROM directory\n\nREADY\n&gt;<\/code><\/pre>\n\n\n\n<p>rrom \u547d\u4ee4\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001EEPROM \u306e1\u756a\u76ee\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u5148\u307b\u3069\u66f8\u304d\u8fbc\u3093\u3060 EEPROM \u306b\u4f55\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u3092\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;ram\n\nREADY\n&gt;new\n\n&gt;1 REM ASCII ART\n&gt;10 FOR Y=-12 TO 12\n&gt;20 FOR X=-39 TO 39\n&gt;30 CA=X*0.0458\n&gt;40 CB=Y*0.08333\n&gt;50 A=CA\n&gt;60 B=CB\n&gt;70 I=0\n&gt;80 T=A*A-B*B+CA\n&gt;90 B=2*A*B+CB\n&gt;100 A=T\n&gt;110 IF (A*A+B*B)&gt;4 THEN GOTO 150\n&gt;120 I=I+1:IF I&lt;=15 THEN GOTO 80\n&gt;130 PRINT \" \",\n&gt;140 GOTO 170\n&gt;150 IF I&gt;9 THEN I=I+7\n&gt;160 PRINT CHR(48+I),\n&gt;170 NEXT X\n&gt;180 PRINT\n&gt;190 NEXT Y\n&gt;\n&gt;prog\n 2\n\nREADY\n&gt;rrom\n\nPRG 1 from  8011H to  8134H ( 291 bytes) Basic ROM directory\nPRG 2 from  8136H to  8417H ( 232 bytes) ASCII ART\n\nREADY\n&gt;rrom2\n<\/code><\/pre>\n\n\n\n<p>\u65b0\u3057\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002prog \u3092\u5b9f\u884c\u3059\u308b\u3068 EEPROM \u306e2\u756a\u76ee\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002rrom2 \u3068\u5f15\u6570\uff12\u30672\u756a\u76ee\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u898b\u308b\u3068\u3001\u96fb\u6e90\u6295\u5165\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8a2d\u5b9a\u306a\u3069\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u307e\u305f GPIO \u30d4\u30f3\u3082CPU\u306b\u3064\u3044\u3066\u3044\u308b\u306e\u3067\u7c21\u5358\u306b\u4f7f\u3048\u307e\u3059\u3057\u3001\u3053\u306e\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306e\u53f3\u7aef\u306b\u306f\u30e1\u30e2\u30ea\u30de\u30c3\u30d7\u30c9I\/O\u306e\u7aef\u5b50\u3082\u51fa\u3066\u3044\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bb\u30fc\u30d6\u304c\u51fa\u6765\u308b\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306f\u5f53\u6642\u3068\u3057\u3066\u306f\u512a\u308c\u305f\u6a5f\u80fd\u3060\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u666e\u901a\u306fROM\u5dee\u3057\u66ff\u3048\u3067\u3059\u3057\u306d\u3002\u307e\u3041BASIC\u8a00\u8a9e\u306a\u306e\u3067\u5b9f\u884c\u901f\u5ea6\u306f\u304a\u5bdf\u3057\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e4\u30d5\u30aa\u30af\u3092\u898b\u3066\u3044\u307e\u3057\u305f\u3089\u3001BASIC-52 \u306e\u57fa\u677f\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u8cfc\u5165\u3002\u57fa\u677f\u306b\u66f8\u304b\u308c\u305f\u30a2\u30c9\u30ec\u30b9\u304b\u3089 https:\/\/www.billy.gr\/mcs-basic-52\/ \u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30ac\u30fc\u30d0\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u3067\u3059\u3002\u4ee5\u524d\u4f5c\u6210 &hellip; <a href=\"https:\/\/mkusunoki.net\/?p=8053\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;MCS-52 Basic \u57fa\u677f\u4f5c\u6210&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[468,473,466,469],"class_list":["post-8053","post","type-post","status-publish","format-standard","hentry","category-kousaku","tag-468","tag-at90s52","tag-basic-52","tag-469"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/8053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8053"}],"version-history":[{"count":3,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/8053\/revisions"}],"predecessor-version":[{"id":8058,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/8053\/revisions\/8058"}],"wp:attachment":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}