{"id":9751,"date":"2025-08-28T23:51:00","date_gmt":"2025-08-28T14:51:00","guid":{"rendered":"http:\/\/hdmr.org\/d\/?p=9751#"},"modified":"2025-08-29T07:51:45","modified_gmt":"2025-08-28T22:51:45","slug":"wp-9751","status":"publish","type":"post","link":"https:\/\/hdmr.org\/d\/wp-9751","title":{"rendered":"SET\u30ec\u30b8\u30b9\u30bf\u3068CLR\u30ec\u30b8\u30b9\u30bf"},"content":{"rendered":"<p>\u65b0\u88fd\u54c1\u306e\u30de\u30a4\u30b3\u30f3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u672c\u683c\u7684\u306b\u66f8\u304d\u59cb\u3081\u305f\u3002<\/p>\n<p>\u4eca\u307e\u3067\u30c6\u30b9\u30c8\u7528\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30e1\u30fc\u30ab\u30fc\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u4f5c\u3063\u3066\u3044\u305f\u304c\u3001<\/p>\n<p>\u3046\u307e\u304f\u8a2d\u5b9a\u3067\u304d\u3066\u306a\u3044\u90e8\u5206\u304c\u3042\u308b\u306e\u306f\u628a\u63e1\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u30ec\u30b8\u30b9\u30bf\u3092\u76f4\u63a5\u64cd\u4f5c\u3057\u3066\u3042\u308c\u3053\u308c\u3084\u3063\u3066\u3044\u305f\u3002<\/p>\n<hr>\n<p>\u3053\u306e\u30de\u30a4\u30b3\u30f3\u306e\u30ec\u30b8\u30b9\u30bf\u69cb\u6210\u306f\u9762\u767d\u3044\u3068\u3053\u308d\u304c\u3042\u308a\u3001<\/p>\n<p>\u5404\u7a2e\u306e\u30d5\u30e9\u30b0\u306b\u3064\u3044\u3066\u3001\u5024\u3092\u8aad\u307f\u66f8\u304d\u3067\u304d\u308b\u30ec\u30b8\u30b9\u30bf\u3068\u306f\u5225\u306b\u3001<\/p>\n<p>SET\u30ec\u30b8\u30b9\u30bf\u3068CLR\u30ec\u30b8\u30b9\u30bf\u3068\u3044\u3046\u306e\u304c\u5b58\u5728\u3059\u308b\u3002<\/p>\n<p>INTENSET = 0x100; \u3068\u3044\u3046\u306e\u306f INTEN |= 0x100; \u3068\u307b\u307c\u540c\u3058\u3067\u3001<\/p>\n<p>INTENCLR = 0x100; \u3068\u3044\u3046\u306e\u306f INTEN &amp;= ~0x100;\u3068\u307b\u307c\u540c\u3058\u3067\u3042\u308b\u3002<\/p>\n<p>\u5272\u308a\u8fbc\u307f\u6709\u52b9\u30d5\u30e9\u30b0\u307e\u3067\u3053\u3093\u306a\u65b9\u6cd5\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u306e\u306f\u73cd\u3057\u3044\u6c17\u304c\u3059\u308b\u3002<\/p>\n<hr>\n<p>\u3053\u306e\u65b9\u6cd5\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u5272\u308a\u8fbc\u307f\u306a\u3069\u3067\u51e6\u7406\u304c\u7af6\u5408\u3057\u3066\u3082\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n<p>INTEN |= 0x100; \u3068\u3044\u3046\u306e\u306f INTEN\u3092\u30ea\u30fc\u30c9\u3057\u3066\u30010x100\u3068\u306eOR\u3092\u3068\u3063\u3066\u3001\u30e9\u30a4\u30c8\u3059\u308b\u3068\u3044\u3046\u51e6\u7406\u3067\u3042\u308b\u3002<\/p>\n<p>\u3053\u306e\u30ea\u30fc\u30c9\u3068\u30e9\u30a4\u30c8\u306e\u9593\u306b\u5272\u308a\u8fbc\u307f\u304c\u5165\u308a INTEN &amp;= ~0x20; \u304c\u631f\u307e\u3063\u305f\u3068\u3059\u308b\u3002<\/p>\n<p>\u4eee\u306b\u6700\u521d\u306eINTEN\u304c 0x20 \u3060\u3063\u305f\u3068\u3059\u308b\u3002<\/p>\n<p>0x120\u3092\u66f8\u304d\u8fbc\u3080\u76f4\u524d\u3067\u3001\u5272\u308a\u8fbc\u307f\u3067INTEN\u304c0x20\u21920x00\u3068\u5909\u5316\u3059\u308b\u3082\u3001<\/p>\n<p>\u5272\u308a\u8fbc\u307f\u51e6\u7406\u304b\u3089\u623b\u308b\u3068 0x120\u3068\u306a\u308a \u5272\u308a\u8fbc\u307f\u51e6\u7406\u3067\u6d88\u3057\u305f\u30d5\u30e9\u30b0\u304c\u5fa9\u6d3b\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3053\u3046\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u5272\u308a\u8fbc\u307f\u7121\u52b9\u5316\u3057\u3066\u3001\u66f8\u63db\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3068\u3044\u3046\u8a71\u3067\u3042\u308b\u3002<\/p>\n<p>\u540c\u3058\u30d5\u30e9\u30b0\u3092\u3053\u3046\u3057\u3066\u7af6\u5408\u3057\u3066\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u306a\u3051\u308c\u3070\u554f\u984c\u306a\u3044\u306e\u3060\u304c\u3002<\/p>\n<hr>\n<p>\u3053\u3046\u3044\u3046\u3053\u3068\u304c\u6bd4\u8f03\u7684\u767a\u751f\u3057\u3084\u3059\u3044GPIO\u306f\u5bfe\u7b56\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p>1\u3064\u306fSET\u30ec\u30b8\u30b9\u30bf\u3068CLR\u30ec\u30b8\u30b9\u30bf\u3092\u7528\u610f\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3002<\/p>\n<p>\u3082\u30461\u3064\u306f\u30d3\u30c3\u30c8\u5358\u4f4d\u3067\u64cd\u4f5c\u51fa\u6765\u308b\u30ec\u30b8\u30b9\u30bf\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n<p>32bit\u3068\u304b\u4e00\u62ec\u3057\u3066\u64cd\u4f5c\u51fa\u6765\u308b\u30ec\u30b8\u30b9\u30bf\u3068\u306f\u5225\u306b\u30011\u30d3\u30c3\u30c8\u305a\u3064\u30ea\u30fc\u30c9\u30fb\u30e9\u30a4\u30c8\u3067\u304d\u308b\u30ec\u30b8\u30b9\u30bf\u3082\u3042\u308b\u3068\u3002<\/p>\n<p>PORT ^= 0x10; \u306e\u30ea\u30fc\u30c9\u30fb\u30e9\u30a4\u30c8\u306e\u9593\u306b PORT ^= 0x01; \u304c\u631f\u307e\u308b\u3068\u3001\u5f8c\u8005\u306e\u30d3\u30c3\u30c8\u53cd\u8ee2\u304c\u52b9\u304b\u306a\u304f\u306a\u308b\u304c\u3001<\/p>\n<p>PIN[4] ^= 1; \u3068 PIN[0] ^= 1; \u3068\u3044\u3046\u5f62\u3067\u3042\u308c\u3070\u30012\u3064\u306e\u66f8\u63db\u306f\u5e72\u6e09\u3057\u306a\u3044\u3002<\/p>\n<p>PIN[4]\u306e\u30ea\u30fc\u30c9\u30fb\u30e9\u30a4\u30c8\u306f\u305d\u306e1\u30d4\u30f3\u306b\u3057\u304b\u5f71\u97ff\u3057\u306a\u3044\u305f\u3081\u3067\u3042\u308b\u3002<\/p>\n<p>\u4e21\u65b9\u7528\u610f\u3057\u3066\u3044\u308b\u306e\u306f\u305d\u308c\u306f\u305d\u308c\u3067\u73cd\u3057\u3044\u6c17\u304c\u3059\u308b\u304c\u3001\u3053\u306e\u30de\u30a4\u30b3\u30f3\u306f\u4e21\u65b9\u3044\u3051\u308b\u307f\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n<hr>\n<p>\u72ec\u7279\u3067\u306f\u3042\u308b\u304c\u3001\u3088\u304f\u3067\u304d\u305f\u4ed5\u7d44\u307f\u3067\u306f\u3042\u308b\u306e\u304b\u306a\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u30e1\u30e2\u30ea\u3068\u306f\u3060\u3044\u3076\u9055\u3046\u306e\u3067\u6238\u60d1\u3044\u306f\u3042\u308a\u305d\u3046\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n<p>\u307e\u3041\u30de\u30a4\u30b3\u30f3\u3063\u3066\u305d\u3093\u306a\u3082\u3093\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u88fd\u54c1\u306e\u30de\u30a4\u30b3\u30f3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u672c\u683c\u7684\u306b\u66f8\u304d\u59cb\u3081\u305f\u3002 \u4eca\u307e\u3067\u30c6\u30b9\u30c8\u7528\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30e1\u30fc\u30ab\u30fc\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u4f5c\u3063\u3066\u3044\u305f\u304c\u3001 \u3046\u307e\u304f\u8a2d\u5b9a\u3067\u304d\u3066\u306a\u3044\u90e8\u5206\u304c\u3042\u308b\u306e\u306f\u628a\u63e1\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u30ec\u30b8\u30b9\u30bf\u3092\u76f4\u63a5\u64cd\u4f5c\u3057\u3066\u3042\u308c\u3053\u308c\u3084\u3063\u3066\u3044\u305f\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-9751","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/9751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9751"}],"version-history":[{"count":1,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/9751\/revisions"}],"predecessor-version":[{"id":9752,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/9751\/revisions\/9752"}],"wp:attachment":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}