{"id":4948,"date":"2012-10-13T12:25:07","date_gmt":"2012-10-13T03:25:07","guid":{"rendered":"http:\/\/nanoappli.com\/blog\/?p=4948"},"modified":"2012-10-13T14:12:51","modified_gmt":"2012-10-13T05:12:51","slug":"picpic%e3%81%ae%e8%b3%87%e6%96%99%e3%81%ab%e3%81%82%e3%82%8br-m-w%e3%81%ae%e6%84%8f%e5%91%b3","status":"publish","type":"post","link":"http:\/\/nanoappli.com\/blog\/archives\/4948","title":{"rendered":"[PIC]PIC\u306e\u8cc7\u6599\u306b\u3042\u308b&#8221;R-M-W&#8221;\u306e\u610f\u5473"},"content":{"rendered":"<p>\nPIC\u306b\u3064\u3044\u3066\u66f8\u304b\u308c\u305f\u8cc7\u6599\u3084\u66f8\u7c4d\u3092\u898b\u308b\u3068\u3001\u51fa\u529b\u30d4\u30f3\u306e\u8aac\u660e\u3067&#8221;R-M-W&#8221;\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306eR-M-W\u306f\u3001Read,Modify,Write\u306e\u7565\u3067\u3059\u3002<br \/>\n<br \/>\nPIC\u3067\u306f\u51fa\u529b\u30d4\u30f3\u306e\u7279\u5b9a\u30d3\u30c3\u30c8\u306e\u307f(\u4f8b\u3048\u3070PortB\u306eRB0)\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u3067\u3082\u3001\u4e00\u65e6PortB\u306e\u5168\u30d3\u30c3\u30c8\u306b\u7d10\u4ed8\u304f\u30d4\u30f3\u306e\u96fb\u5727\u3092\u8aad\u307f\u53d6\u3063\u305f\u5f8c(Read)\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u6307\u5b9a\u3057\u305f\u5024\u306b\u66f8\u304d\u63db\u3048\u3089\u308c(Modify)\u3001PortB\u306e\u5168\u30d3\u30c3\u30c8\u3092\u51fa\u529b\u3059\u308b(Write)\u3068\u3044\u3046\u632f\u308b\u821e\u3044\u3092\u3057\u307e\u3059\u3002<br \/>\n<br \/>\n\u3053\u308c\u306f\u3001\u30a2\u30bb\u30f3\u30d6\u30e9\u3060\u3068BSET,BCLR\u306a\u3069\u306e\u7279\u5b9a\u30d3\u30c3\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u547d\u4ee4\u3067\u8d77\u304d\u307e\u3059\u3002<br \/>\n<br \/>\n<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30de\u306f\u3001\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u3060\u3051\u306e\u3064\u3082\u308a\u3067\u3082PIC\u306e\u56de\u8def\u4e0a\u3067\u306f\u4e00\u65e6\u73fe\u72b6\u306e\u5024\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u3001\u5916\u90e8\u56de\u8def\u3067\u51fa\u529b\u30d4\u30f3\u306e\u96fb\u5727\u304c\u5909\u308f\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u4e00\u5ea6\u30bb\u30c3\u30c8\u3057\u305f\u306f\u305a\u306e\u5024\u304c\u52dd\u624b\u306b\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u70ba\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n<br \/>\n<h2>R-M-W\u6a5f\u80fd\u306b\u4f34\u3046\u554f\u984c<\/h2>\n&#8220;\u5916\u90e8\u56de\u8def\u3067\u51fa\u529b\u30d4\u30f3\u306e\u96fb\u5727\u304c\u5909\u308f\u308b\u3088\u3046&#8221;\u306a\u56de\u8def\u3068\u3044\u3046\u306e\u306f\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u69d8\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\n<br \/>\n\u51fa\u529b\u30d4\u30f3\u306b\u30ce\u30a4\u30ba\u9664\u53bb\u7b49\u306e\u76ee\u7684\u3067\u30d0\u30a4\u30d1\u30b9\u30b3\u30f3\u30c7\u30f3\u30b5\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u3001PIC\u5074\u3067\u51fa\u529b\u3092Low->High\u306b\u5909\u66f4\u3057\u3066\u3082\u3001\u76f4\u3050\u306b\u96fb\u5727\u304c+5V\u306b\u306f\u3042\u304c\u3063\u3066\u304f\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u306b\u96fb\u8377\u304c\u84c4\u7a4d\u3055\u308c\u308b\u9593\u306e\u9045\u5ef6\u304c\u767a\u751f\u3059\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n<br \/>\nRB0\u306e\u51fa\u529b\u30d4\u30f3\u306b\u30d1\u30b9\u30b3\u30f3\u304c\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3060\u3068\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<pre lang=\"c\">\nPORTB |= 0x01;  \/\/ RB0\u3092High\u306b\u3059\u308b\u3000(RB0\u306b\u30d1\u30b9\u30b3\u30f3\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059)\nPORTB |= 0x02;  \/\/ \u305d\u306e\u5f8cRB1\u3092High\u306b\u3059\u308b\n<\/pre>\n2\u884c\u76ee\u306eRB1\u3092High\u306b\u3059\u308b\u969b\u306b\u3001R-M-W\u306e\u6a5f\u80fd\u3067RB0\u306e\u5024\u304c\u4e00\u65e6Read\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u969b\u3001\u30d1\u30b9\u30b3\u30f3\u306b\u3088\u308b\u4f5c\u7528\u3067RB0\u306e\u5024\u306f\u307e\u3060Low\u3060\u3063\u305f\u3089\u3001RB1\u3092Write\u3059\u308b\u6642\u306b\u610f\u56f3\u305b\u305aRB0\u304cLow(=0)\u306b\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n<br \/>\n<br \/>\n<h2>PIC18,PIC24\u30b7\u30ea\u30fc\u30ba\u4ee5\u964d\u3067\u306eR-M-W\u554f\u984c\u306e\u5bfe\u7b56<\/h2>\nPIC16\u30b7\u30ea\u30fc\u30ba\u3067\u306f\u3001\u30d4\u30f3\u306e\u66f8\u304d\u8fbc\u307f\u306bR-M-W\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u524d\u8ff0\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u304c\u3001\u5f8c\u7d99\u306ePIC18,PIC24\u30b7\u30ea\u30fc\u30ba\u3067\u306f\u3001\u5bfe\u7b56\u304c\u63a1\u3089\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n\u51fa\u529b\u30d4\u30f3\u306e\u76f4\u524d\u306b,\u30de\u30a4\u30b3\u30f3\u5185\u90e8\u3067&#8221;LATx: Data Latch register&#8221;\u3068\u3044\u3046\u3082\u306e\u304c\u52a0\u3048\u3089\u308c\u3001\u81ea\u5206\u304c\u76f4\u8fd1\u306b\u51fa\u529b\u3057\u305f\u5024\u304c\u30e9\u30c3\u30c1\u30e1\u30e2\u30ea\u306b\u8a18\u61b6\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001R-M-W\u304c\u884c\u308f\u308c\u3066\u3082\u3001Read\u3059\u308b\u30c7\u30fc\u30bf\u304c\u5b9f\u969b\u306e\u30d4\u30f3\u306e\u96fb\u5727\u3067\u306f\u306a\u304f\u8a18\u61b6\u3057\u305f\u30e9\u30c3\u30c1\u60c5\u5831\u306b\u306a\u308b\u306e\u3067\u3001\u610f\u56f3\u3057\u306a\u3044\u30c7\u30fc\u30bf\u306e\u5909\u5316\u3092\u9632\u3050\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PIC\u306b\u3064\u3044\u3066\u66f8\u304b\u308c\u305f\u8cc7\u6599\u3084\u66f8\u7c4d\u3092\u898b\u308b\u3068\u3001\u51fa\u529b\u30d4\u30f3\u306e\u8aac\u660e\u3067&#8221;R-M-W&#8221;\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306eR-M-W\u306f\u3001Read,Modify,Write\u306e\u7565\u3067\u3059\u3002 PIC\u3067\u306f\u51fa\u529b\u30d4\u30f3\u306e\u7279\u5b9a\u30d3\u30c3\u30c8\u306e\u307f(\u4f8b\u3048\u3070PortB\u306eRB0)\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u3067\u3082\u3001\u4e00\u65e6PortB\u306e\u5168\u30d3\u30c3\u30c8\u306b\u7d10\u4ed8\u304f\u30d4\u30f3\u306e\u96fb\u5727\u3092\u8aad\u307f\u53d6\u3063\u305f\u5f8c(Read)\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u6307\u5b9a\u3057\u305f\u5024\u306b\u66f8\u304d\u63db\u3048\u3089\u308c(Modify)\u3001PortB\u306e\u5168\u30d3\u30c3\u30c8\u3092\u51fa\u529b\u3059\u308b(Write)\u3068\u3044\u3046\u632f\u308b\u821e\u3044\u3092\u3057\u307e\u3059\u3002 \u3053\u308c\u306f\u3001\u30a2\u30bb\u30f3\u30d6\u30e9\u3060\u3068BSET,BCLR\u306a\u3069\u306e\u7279\u5b9a\u30d3\u30c3\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u547d\u4ee4\u3067\u8d77\u304d\u307e\u3059\u3002 \u30d7\u30ed\u30b0\u30e9\u30de\u306f\u3001\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u3060\u3051\u306e\u3064\u3082\u308a\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[105],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":4867,"url":"http:\/\/nanoappli.com\/blog\/archives\/4867","url_meta":{"origin":4948,"position":0},"title":"[PIC]16F88\u3067RB6,RB7\u304c\u5165\u51fa\u529b\u30d4\u30f3\u3068\u3057\u3066\u4f7f\u3048\u306a\u3044\u6642\u306b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u4e8b","date":"2012\u5e7410\u67087\u65e5","format":false,"excerpt":"PIC16F88\u7b49\u306e18\u30d4\u30f3\u306ePIC\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001RB6,RB7\u30d4\u30f3\u304c\u5165\u529b\u3068\u3057\u3066\u4f7f\u3048\u306a\u3044\u5834\u5408\u304c\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5993,"url":"http:\/\/nanoappli.com\/blog\/archives\/5993","url_meta":{"origin":4948,"position":1},"title":"PIC16F84A\u306e\u30d5\u30a1\u30a4\u30eb\u30ec\u30b8\u30b9\u30bf","date":"2012\u5e7412\u67082\u65e5","format":false,"excerpt":"PIC16F\u30b7\u30ea\u30fc\u30ba\u306e\u5165\u9580\u7528\u3068\u3057\u3066\u6709\u540d\u306a16F84A\u306b\u306f\u300183byte\u306e\u30d5\u30a1\u30a4\u30eb\u30ec\u30b8\u30b9\u30bf\u304c\u7528\u610f\u3055\u308c\u3066\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/12\/20121202_05.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5652,"url":"http:\/\/nanoappli.com\/blog\/archives\/5652","url_meta":{"origin":4948,"position":2},"title":"[PIC]\u5168\u30d4\u30f3\u6570\u5bfe\u5fdc\u306e\u30e9\u30a4\u30bf\u57fa\u677f\u3092\u88fd\u4f5c(PICkit3\u4f7f\u7528)","date":"2012\u5e7411\u670824\u65e5","format":false,"excerpt":"\u534a\u5e74\u307b\u3069\u524d\u3001PIC\u306e\u30e9\u30a4\u30bf\u3068\u3057\u3066PICkit3\u3092\u8cfc\u5165\u3057\u307e\u3057\u305f\u3002 \u3053\u308c\u307e\u3067\u66f8\u304d\u8fbc\u307f\u5074\u306e\u56de\u8def\u306f\u30d6\u30ec\u30c3\u30c9\u30dc\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/11\/20121124_11.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5363,"url":"http:\/\/nanoappli.com\/blog\/archives\/5363","url_meta":{"origin":4948,"position":3},"title":"PIC16F84A\u3067,HI-TECH C\u3092\u4f7f\u7528\u3057\u3066LCD\u51fa\u529b\u3092\u884c\u3046","date":"2012\u5e7411\u67083\u65e5","format":false,"excerpt":"PIC16\u30b7\u30ea\u30fc\u30ba\u306e\u5b9a\u756a\u3001PIC16F84A\u3092\u4f7f\u7528\u3057\u3066LCD\u3078\u306e\u51fa\u529b\u3092\u884c\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002 16F8\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/11\/20121103_03.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3326,"url":"http:\/\/nanoappli.com\/blog\/archives\/3326","url_meta":{"origin":4948,"position":4},"title":"[PIC]MPLAB\u3067\u30c7\u30d0\u30c3\u30b0\u6642\u306b,\u5165\u529b\u7528\u30dd\u30fc\u30c8\u306e\u5024\u3092\u64cd\u4f5c\u3059\u308b(Stimulus\u30a6\u30a3\u30f3\u30c9\u30a6)","date":"2012\u5e746\u670827\u65e5","format":false,"excerpt":"MPLAB\u3067\u306f\u5b9f\u969b\u306e\u30de\u30a4\u30b3\u30f3\u30c1\u30c3\u30d7\u3092\u7528\u610f\u3057\u306a\u304f\u3066\u3082\u3001IDE\u4e0a\u306b\u7528\u610f\u3055\u308c\u305f\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u30d7\u30ed\u30b0\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/06\/20120627_02-437x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3764,"url":"http:\/\/nanoappli.com\/blog\/archives\/3764","url_meta":{"origin":4948,"position":5},"title":"\u30bb\u30e9\u30ed\u30c3\u30af\u306e\u6ce2\u5f62\u3092\u30aa\u30b7\u30ed\u30b9\u30b3\u30fc\u30d7\u3067\u78ba\u8a8d\u3059\u308b","date":"2012\u5e747\u670828\u65e5","format":false,"excerpt":"\u30e0\u30e9\u30bf\u304b\u3089\u767a\u58f2\u3055\u308c\u3066\u3044\u308b\u30bb\u30e9\u30ed\u30c3\u30af\u306f\u3001\u4e3b\u306b\u5c0f\u898f\u6a21\u5411\u3051\u30de\u30a4\u30b3\u30f3\u3067\u30af\u30ed\u30c3\u30af\u751f\u6210\u7528\u306e\u5b89\u4fa1\u306a\u30d1\u30fc\u30c4\u3068\u3057\u3066\u4f7f\u7528\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/07\/20120727_10.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/4948"}],"collection":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/comments?post=4948"}],"version-history":[{"count":7,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/4948\/revisions"}],"predecessor-version":[{"id":5018,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/4948\/revisions\/5018"}],"wp:attachment":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/media?parent=4948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/categories?post=4948"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/tags?post=4948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}