{"id":256558,"date":"2022-02-07T16:45:50","date_gmt":"2022-02-07T07:45:50","guid":{"rendered":"https:\/\/hldc.co.jp\/support\/?post_type=qna&#038;p=256558"},"modified":"2022-08-15T05:00:30","modified_gmt":"2022-08-14T20:00:30","slug":"qna-256558","status":"publish","type":"qna","link":"https:\/\/hldc.co.jp\/support\/qna\/qna-256558\/","title":{"rendered":"[\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd]\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u65b9"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.16&#8243; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd\u3067\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u8aac\u660e\u3059\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u6a5f\u80fd\u6982\u8981<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u65b9\u6cd5<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u7a2e\u985e\u3092\u8a18\u8ff0\u3059\u308b<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">2.2<\/span> \u30b3\u30de\u30f3\u30c9\u5b9a\u7fa9\u306e\u5bfe\u8c61\u3068\u3059\u308b\u30c7\u30fc\u30bf\u30d1\u30bf\u30fc\u30f3\u3092\u8a18\u8ff0\u3059\u308b<\/a><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_2\">2.3<\/span> \u5b9a\u7fa9\u3057\u305f\u3044\u5185\u5bb9\u3092\u8a18\u8ff0\u3059\u308b<\/a><\/li><\/ul><\/li><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u9069\u7528\u4f8b<\/a><ul><li><a href=\"#i-7\"><span class=\"toc_number toc_depth_2\">3.1<\/span> \u30b5\u30f3\u30d7\u30eb\u74b0\u5883<\/a><\/li><li><a href=\"#_DataCommandInfo\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u5fdc\u7528\u7de8 \uff5eData\u306e\u5024\u3092Command\uff0fInfo\u306b\u5f15\u7528\u3057\u305f\u3044\u5834\u5408\uff5e<\/a><\/li><\/ul><\/li><li><a href=\"#i-8\"><span class=\"toc_number toc_depth_1\">4<\/span> \u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30f3\u30d7\u30eb<\/a><\/li><li><a href=\"#Q038A\"><span class=\"toc_number toc_depth_1\">5<\/span> Q&#038;A<\/a><\/li><\/ul><\/div>\n<h2><span id=\"i\">\u6a5f\u80fd\u6982\u8981<\/span><\/h2>\n<p>\u30b3\u30de\u30f3\u30c9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u3001\u53d6\u5f97\u3057\u305f\u901a\u4fe1\u30c7\u30fc\u30bf\u304c\u610f\u5473\u3059\u308b\u5185\u5bb9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u30ec\u30dd\u30fc\u30c8\u306b\u901a\u4fe1\u30b3\u30de\u30f3\u30c9\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3067\u3001\u901a\u4fe1\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u78ba\u8a8d\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002\u5f93\u6765\u306e\u30aa\u30b7\u30ed\u30b9\u30b3\u30fc\u30d7\u3067\u901a\u4fe1\u6ce2\u5f62\u3092\u53d6\u5f97\u3068\u901a\u4fe1\u4ed5\u69d8\u66f8\u3068\u7167\u3089\u3057\u5408\u308f\u305b\u308b\u3053\u3068\u3092\u7e70\u308a\u8fd4\u3059\u78ba\u8a8d\u4f5c\u696d\u306f\u3001\u4e0d\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_01.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1000px; --smush-placeholder-aspect-ratio: 1000\/529;\" \/><\/p>\n<h2><span id=\"i-2\">\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u65b9\u6cd5<\/span><\/h2>\n<p>\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb(\u62e1\u5f35\u5b50.txt)\u306b\u8a18\u8ff0\u3059\u308b\u5185\u5bb9\u3068\u3001\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u30ec\u30dd\u30fc\u30c8\u4e0a\u306e\u3069\u306e\u90e8\u5206\u306b\u5909\u5316\u304c\u3042\u308b\u304b\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h6>\u30d9\u30fc\u30b9\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/h6>\n<pre><code>\/\/ \u5b9a\u7fa9\u30e9\u30a4\u30f3\u540d\n[I2C]\n\/\/ $(\u5b9a\u7fa9\u30c7\u30fc\u30bf\u6307\u5b9a)=(Command\u306b\u8868\u793a\u3059\u308b\u5185\u5bb9),,(Info\u306b\u8868\u793a\u3059\u308b\u5185\u5bb9)\n$80hxxh=Master,,ReadDistReg\n<\/code><\/pre>\n<h3><span id=\"i-3\">\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u7a2e\u985e\u3092\u8a18\u8ff0\u3059\u308b<\/span><\/h3>\n<p>DT+Trace\u306e\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd\u3067\u30ad\u30e3\u30d7\u30c1\u30e3\u3067\u304d\u308b\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u306f\u3001<strong>SPI\uff0fI2C\uff0fUART<\/strong>\u3067\u3059\u3002\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u540d\u3092<strong>[ ]<\/strong>\u3067\u62ec\u308a\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_02.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/178;\" \/><\/p>\n<h3><span id=\"i-4\">\u30b3\u30de\u30f3\u30c9\u5b9a\u7fa9\u306e\u5bfe\u8c61\u3068\u3059\u308b\u30c7\u30fc\u30bf\u30d1\u30bf\u30fc\u30f3\u3092\u8a18\u8ff0\u3059\u308b<\/span><\/h3>\n<p>\u30b3\u30de\u30f3\u30c9\u5b9a\u7fa9\u306e\u5bfe\u8c61\u3068\u3059\u308b\u30c7\u30fc\u30bf\u30d1\u30bf\u30fc\u30f3\u3092 <strong>$ \u304b\u3089 =<\/strong> \u306e\u9593\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u4e0a\u3067\u5b9a\u7fa9\u3057\u305f\u5024\u3068\u3001\u30e2\u30cb\u30bf\u3057\u305f\u5024\u304c\u5408\u81f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<strong>80h<\/strong> \u307e\u305f\u306f <strong>81H<\/strong> \u306e\u3088\u3046\u306b\u3001<strong>2\u6841\u306e16\u9032\u6587\u5b57<\/strong>\u3092\u8a18\u8ff0\u3057\u3001 <strong>h<\/strong> or <strong>H<\/strong> \u3067\u533a\u5207\u308b\u3053\u3068\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u5024\u3092\u8a18\u8ff0\u3059\u3079\u304d\u7b87\u6240\u306b\u3001<strong>x<\/strong> \u3084 <strong>X<\/strong> \u3067\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u5024\u304c\u4f55\u3067\u3082\u826f\u3044\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002(\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9)<br \/>\n\u203b2\u9032\u6570\u3067\u6307\u5b9a\u3082\u53ef\u80fd\u3067\u3059\u3002\u8a73\u7d30\u306fDT+Trace\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d8\u30eb\u30d7 [\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u306e\u30b3\u30de\u30f3\u30c9\u30d5\u30a9\u30fc\u30de\u30c3\u30c8]\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u30c7\u30fc\u30bf\u9577\u304a\u3088\u3073\u30c7\u30fc\u30bf\u306e\u5024\u306f\u3001\u5b8c\u5168\u4e00\u81f4\u3067\u53cd\u6620\u3055\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u30015byte\u30671\u30d1\u30b1\u30c3\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u30013byte\u30671\u30d1\u30b1\u30c3\u30c8\u306e\u5024\u3092\u5b9a\u7fa9\u3057\u3066\u4eee\u306b3byte\u5206\u304c\u4e00\u81f4\u3057\u3044\u3066\u3082\u3001\u30c7\u30fc\u30bf\u9577\u304c\u4e00\u81f4\u3057\u306a\u3044\u305f\u3081\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305f\u3001\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd\u3067\u306f\u30011\u30d1\u30b1\u30c3\u30c81~256byte\u306e\u30c7\u30fc\u30bf\u9577\u307e\u3067\u89e3\u91c8\u3067\u304d\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_03.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/304;\" \/><\/p>\n<h3><span id=\"i-5\">\u5b9a\u7fa9\u3057\u305f\u3044\u5185\u5bb9\u3092\u8a18\u8ff0\u3059\u308b<\/span><\/h3>\n<p>\u5b9a\u7fa9\u3057\u305f\u30c7\u30fc\u30bf\u3068\u30e2\u30cb\u30bf\u3057\u305f\u30c7\u30fc\u30bf\u304c\u5408\u81f4\u3057\u305f\u5834\u5408\u306b\u3001Command\u5217\u3084Info\u5217\u306b\u8868\u793a\u3055\u305b\u308b\u6587\u5b57\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u65e5\u672c\u8a9e\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002\u6c7a\u3081\u3089\u308c\u305f\u66f8\u5f0f\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30e2\u30cb\u30bf\u3057\u305f\u30c7\u30fc\u30bf\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u203b\u5fdc\u7528\u7de8\u306b\u3066\u8a73\u7d30\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\nCommand\u5217\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u5185\u5bb9\u306f\u3001<strong>=<\/strong> \u3068 <strong>,,<\/strong> \u306e\u9593\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_04.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/310;\" \/><br \/>\nInfo\u5217\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u5185\u5bb9\u306f\u3001<strong>,,<\/strong> \u4ee5\u964d\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_05.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/308;\" \/><\/p>\n<h2><span id=\"i-6\">\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u9069\u7528\u4f8b<\/span><\/h2>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u969b\u306e\u74b0\u5883\u306b\u9069\u5fdc\u3059\u308b\u4f8b\u3092\u7528\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3><span id=\"i-7\">\u30b5\u30f3\u30d7\u30eb\u74b0\u5883<\/span><\/h3>\n<ul>\n<li>\u30de\u30a4\u30b3\u30f3\u3068\u8ddd\u96e2\u30bb\u30f3\u30b5\u30e2\u30b8\u30e5\u30fc\u30eb\u304cI2C\u3067\u901a\u4fe1\u3092\u3057\u3066\u3044\u308b<\/li>\n<li>Master\uff1a\u30de\u30a4\u30b3\u30f3\u3000Slave\uff1a\u8ddd\u96e2\u30bb\u30f3\u30b5\u30e2\u30b8\u30e5\u30fc\u30eb<\/li>\n<\/ul>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_06.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1000px; --smush-placeholder-aspect-ratio: 1000\/405;\" \/><\/p>\n<h5>Master \u21d2 Slave \u306f1\u30d1\u30b1\u30c3\u30c82byte<\/h5>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_07.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/270;\" \/><\/p>\n<pre><code>\/\/ \u5b9a\u7fa9\u30e9\u30a4\u30f3\u540d\n[I2C]\n\/\/ 2byte\u306e\u901a\u4fe1\n\/\/ 1byte\u76ee\u304c80\u56fa\u5b9a\n\/\/ 2byte\u76ee\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\n\/\/ \u21d2 \u300cMaster\u300d\u3092Command\u5217\u306b\u8868\u793a\n$80hxxh=Master,,\n----------\n[I2C]\n\/\/ 2byte\u76ee\u306e\u5024\u306b\u5fdc\u3058\u3066\u3001\u300cReadDistReg\u300d\u304b\u300cRESET\u300d\u3092Info\u5217\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u5fc5\u8981\u5206\u5b9a\u7fa9\n$80h5Eh=Master,,ReadDistReg\n$80hFFh=Master,,RESET\n<\/code><\/pre>\n<h5>Slave \u21d2 Master \u306f1\u30d1\u30b1\u30c3\u30c83byte<\/h5>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_08.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/415;\" \/><\/p>\n<pre><code>\/\/ \u5b9a\u7fa9\u30e9\u30a4\u30f3\u540d\n[I2C]\n\/\/ 3byte\u306e\u901a\u4fe1 \n\/\/ 1byte\u76ee\u304c81\u56fa\u5b9a\n\/\/ 2byte\u76ee\u304c68~6B\u306e\u4e0d\u5b9a\n\/\/ 3byte\u76ee\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\n$81h68hxxh=Slave,,Dist\u225226.00 cm\n$81h69hxxh=Slave,,Dist\u225226.25 cm\n$81h6Ahxxh=Slave,,Dist\u225226.50 cm\n$81h6Bhxxh=Slave,,Dist\u225226.75 cm\n<\/code><\/pre>\n<h3><span id=\"_DataCommandInfo\">\u5fdc\u7528\u7de8 \uff5eData\u306e\u5024\u3092Command\uff0fInfo\u306b\u5f15\u7528\u3057\u305f\u3044\u5834\u5408\uff5e<\/span><\/h3>\n<p>\u30b5\u30f3\u30d7\u30eb\u306e\u74b0\u5883\u3067\u3001Slave \u21d2 Master \u306e\u30c7\u30fc\u30bf\u306f1\u30d1\u30b1\u30c3\u30c83byte\u3067\u3057\u305f\u3002\u305d\u306e\u3046\u30483byte\u76ee\u306e\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3067\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u3053\u3053\u304b\u3089\u306f\u3001Data\u5217\u306e\u60c5\u5831\u3092\u5f15\u6570\u3068\u3057\u3066\u3001Command\uff0fInfo\u306b\u8868\u793a\u3055\u305b\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_09.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/422;\" \/><\/p>\n<h5>\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u4e0a\u3067\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u66f8\u304d\u65b9<\/h5>\n<p>\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u300c<strong>%(\u66f8\u5f0f,\u5f15\u6570)<\/strong>\u300d \u306e\u5f62\u5f0f\u3067\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u30e2\u30cb\u30bf\u3057\u305f\u751f\u306e\u5024\u300c<strong>\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u30ec\u30dd\u30fc\u30c8\u4e0a\u306eData\u5217\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5185\u5bb9<\/strong>\u300d\u3092\u5f15\u6570\u3068\u3057\u3066\u3001Command\u3084Info\u306e\u60c5\u5831\u3068\u3057\u3066\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u300c<strong>2byte\u76ee\u30683byte\u76ee\u306e\u5024\u30922\u6841\u306e16\u9032\u6570\u3067\u8868\u793a<\/strong>\u300d\u3057\u3066\u307f\u307e\u3059\u3002\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u66f8\u5f0f\u90e8\u5206\u306b\u8a18\u8ff0\u3059\u308b\u9805\u76ee\n<ul>\n<li>\u6700\u5c0f\u8868\u793a\u6587\u5b57\u6570\uff1a02\u3000(\u5c11\u306a\u304f\u3068\u30822\u6587\u5b57\u5206\u8868\u793a\u3057\u3001\u4e0d\u8db3\u5206\u306f0\u3067\u57cb\u307e\u308b\u610f)<\/li>\n<li>\u8868\u793a\u5f62\u5f0f\uff1ax\u3000(\u5c0f\u6587\u5b5716\u9032\u6570\u3067\u8868\u793a\u3059\u308b\u610f)<\/li>\n<\/ul>\n<\/li>\n<li>\u5f15\u6570\u90e8\u5206\u306b\u8a18\u8ff0\u3059\u308b\u9805\u76ee\n<ul>\n<li>2byte\u76ee\u304c\u5f15\u6570\uff1ad2\u3000(d \u306e\u6b21\u306e\u6570\u5b57byte\u76ee\u3092\u8868\u793a\u3059\u308b\u610f)<\/li>\n<li>3byte\u76ee\u304c\u5f15\u6570\uff1ad3\u3000(d \u306e\u6b21\u306e\u6570\u5b57byte\u76ee\u3092\u8868\u793a\u3059\u308b\u610f)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u3001Info\u5217\u306b\u306e\u307f\u9069\u5fdc\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u540c\u3058\u8a18\u8ff0\u3092\u3057\u3066\u3042\u3052\u308c\u3070\u3001Command\u5217\u306b\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>\/\/ \u5b9a\u7fa9\u30e9\u30a4\u30f3\u540d\n[I2C]\n\/\/ 3byte\u306e\u901a\u4fe1 \n\/\/ 1byte\u76ee\u304c81\u56fa\u5b9a\n\/\/ 2byte\u76ee\u304c68~6B\u306e\u4e0d\u5b9a\n\/\/ 3byte\u76ee\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\n\/\/ Info\u306b\u306f2byte\u76ee\u304a\u3088\u30733byte\u76ee\u306e\u5024\u3092\u300cDistReg = 0x(2byte\u76ee) , 0x(3byte\u76ee)\u300d\u306e\u5f62\u5f0f\u3067\u8868\u793a\n$81h68hxxh=Slave,,DistReg=0x%(02x, d2), 0x%(02x, d3), Dist\u225226.00 cm\n$81h69hxxh=Slave,,DistReg=0x%(02x, d2), 0x%(02x, d3), Dist\u225226.25 cm\n$81h6Ahxxh=Slave,,DistReg=0x%(02x, d2), 0x%(02x, d3), Dist\u225226.50 cm\n$81h6Bhxxh=Slave,,DistReg=0x%(02x, d2), 0x%(02x, d3), Dist\u225226.75 cm\n<\/code><\/pre>\n<h6>\u9069\u5fdc\u5f8c\u306e\u8868\u793a<\/h6>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/256558_10.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 638px; --smush-placeholder-aspect-ratio: 638\/77;\" \/><\/p>\n<p>\u203b\u6700\u5c0f\u8868\u793a\u6587\u5b57\u6570\u3084\u8868\u793a\u5f62\u5f0f\u3001\u5f15\u6570\u306e\u8a18\u53f7\u306b\u3064\u3044\u3066\u306f\u3001\u66f8\u304d\u305f\u3044\u66f8\u304d\u65b9\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002\u8a73\u7d30\u306fDT+Trace\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d8\u30eb\u30d7 [\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u306e\u30b3\u30de\u30f3\u30c9\u30d5\u30a9\u30fc\u30de\u30c3\u30c8]\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3054\u4e0d\u660e\u306a\u70b9\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u3001\u5f0a\u793e\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u307e\u3067\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr \/>\n<h2><span id=\"i-8\">\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30f3\u30d7\u30eb<\/span><\/h2>\n<pre><code>\/\/ \u5b9a\u7fa9\u30e9\u30a4\u30f3\u540d\n[I2C]\n\n\/\/ 2byte\u306e\u901a\u4fe1\n\/\/ 1byte\u76ee\u304c80\u6307\u5b9a\n\/\/ 2byte\u76ee\u304c5E\u6307\u5b9a\n\/\/ \u21d2 \u300cMaster\u300d\u3092Command\u5217\u306b\u8868\u793a \uff0f \u300cReadDistReg\u300d\u3092Info\u5217\u306b\u8868\u793a\n\n$80h5Eh=Master,,ReadDistReg\n\n\/\/ 3byte\u306e\u901a\u4fe1 \n\/\/ 1byte\u76ee\u304c81\u6307\u5b9a\n\/\/ 2byte\u76ee\u304c65\u6307\u5b9a \n\/\/ 3byte\u76ee\u306f\u6307\u5b9a\u306a\u3057(x\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9)\n\/\/ \u21d2\u300cSlave\u300d\u3092Command\u5217\u306b\u8868\u793a\n\/\/ \u21d22byte\u76ee\u53ca\u30733byte\u76ee\u3092\u5f15\u6570\u3068\u3057\u3066\u300cDistReg=0x(2byte\u76ee16\u9032\u6587\u5b57),0x(3byte\u76ee16\u9032\u6587\u5b57),Dist\u225225.25 cm\u300d\u3092Info\u5217\u306b\u8868\u793a\n\n$81h65hxxh=Slave,,DistReg=0x%(02x, d2), 0x%(02x, d3), Dist\u225225.25 cm\n\n\/\/ 3byte\u306e\u901a\u4fe1 \n\/\/ 1byte\u76ee\u304c81\u6307\u5b9a\n\/\/ 2byte\u76ee\u304c6B\u6307\u5b9a \n\/\/ 3byte\u76ee\u306f\u6307\u5b9a\u306a\u3057(x\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9)\n\/\/ \u21d2\u300cSlave\u300d\u3092Command\u5217\u306b\u8868\u793a\n\/\/ \u21d22byte\u76ee\u53ca\u30733byte\u76ee\u3092\u5f15\u6570\u3068\u3057\u3066\u300cDistReg=0x(2byte\u76ee16\u9032\u6587\u5b57),0x(3byte\u76ee16\u9032\u6587\u5b57),Dist\u225226.75 cm\u300d\u3092Info\u5217\u306b\u8868\u793a\n\n$81h6Bhxxh=Slave,,DistReg=0x%(02x, d2), 0x%(02x, d3), Dist\u225226.75 cm\n<\/code><\/pre>\n<h2><span id=\"Q038A\">Q&#038;A<\/span><\/h2>\n<h6>\u8a18\u8ff0\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3069\u3046\u306a\u308b\uff1f<\/h6>\n<p>\u21d2\u5148(\u4e0a)\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h6>Xbyte\u76ee\u306e\u5024\u306b\u3088\u3063\u3066\u3001\u30d1\u30b1\u30c3\u30c8\u6570\u304c\u53ef\u5909\u9577\u306a\u3093\u3060\u3051\u3069\u3001\u5b8c\u5168\u4e00\u81f4\u3067\u306a\u3044\u3068\u3060\u3081\uff1f<\/h6>\n<p>\u21d2\u30d0\u30a4\u30c8\u6570\u53ca\u3073\u8a18\u8ff0\u5185\u5bb9\u306e\u5b8c\u5168\u4e00\u81f4\u3067\u8868\u793a\u53ef\u80fd\u3067\u3059\u3002(\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u306f\u4f7f\u7528\u53ef\u80fd)<\/p>\n<h6>I2C\u306e(N)\u3084\u3001UART\u306e(P)\uff0f(F)\u3063\u3066\u4f55\u8005\uff1f<\/h6>\n<p>\u21d2I2C\u306e(N)\u306f\u3001NACK\u3002ACK(1)\u304c\u3042\u308b\u3079\u304d\u4f4d\u7f6e\u306bACK\u78ba\u8a8d\u3067\u304d\u306a\u3044\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\nUART\u306e(P)\u306f\u3001\u30d1\u30ea\u30c6\u30a3\u30a8\u30e9\u30fc\u3002\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30d1\u30ea\u30c6\u30a3\u30d3\u30c3\u30c8\u3068\u8a08\u6e2c\u3055\u308c\u305f\u30d1\u30ea\u30c6\u30a3\u30d3\u30c3\u30c8\u306b\u5dee\u304c\u3042\u308b\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\nUART\u306e(F)\u306f\u3001\u30d5\u30ec\u30fc\u30df\u30f3\u30b0\u30a8\u30e9\u30fc\u3002\u30b9\u30c8\u30c3\u30d7\u30d3\u30c3\u30c8\u306e\u3042\u308b\u3079\u304d\u4f4d\u7f6e\u306b\u30b9\u30c8\u30c3\u30d7\u30d3\u30c3\u30c8\u304c\u78ba\u8a8d\u3067\u304d\u306a\u3044(0)\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h6>UART\u901a\u4fe1\u3067\u30d1\u30ea\u30c6\u30a3\u30a8\u30e9\u30fc\u3084\u30d5\u30ec\u30fc\u30df\u30f3\u30b0\u30a8\u30e9\u30fc\u306f\u306a\u3044\u306f\u305a\u306a\u3093\u3060\u3051\u3069\u30fb\u30fb\u30fb<\/h6>\n<p>\u21d2\u51e6\u7406\u4e0a\u3067\u6307\u5b9a\u3057\u3066\u3044\u308bBPS\u3068\u3001\u5b9f\u6e2cBPS\u306b\u5dee\u5206\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u8a2d\u8a08\u4e0a\u306eBPS \u00b1 100BPS\u7a0b\u5ea6\u3092\u6307\u5b9a\u3057\u3066\u518d\u89e3\u6790\u3092\u304b\u3051\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u6539\u5584\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u203b\u53d6\u3063\u305f\u6ce2\u5f62\u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u306b\u5fdc\u3058\u3066\u89e3\u6790\u3092\u304b\u3051\u308b\u306e\u3067\u3001\u6ce2\u5f62\u3092\u518d\u53d6\u5f97\u3057\u306a\u304f\u3066\u3082BPS\u306a\u3069\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u518d\u89e3\u6790\u3059\u308b\u3053\u3068\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h6>\u5404\u901a\u4fe1\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u53ef\u80fd\u306a\u30b9\u30da\u30c3\u30af\u306f\uff1f<\/h6>\n<p>\u21d2\u5404\u901a\u4fe1\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<figure>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center;\">\u901a\u4fe1<\/th>\n<th>\u30b9\u30da\u30c3\u30af<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center;\">SPI<\/td>\n<td>\u6700\u5927\u30af\u30ed\u30c3\u30af\u30b9\u30d4\u30fc\u30c8\uff1a10MHz<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">I2C<\/td>\n<td>\u6700\u5927\u30af\u30ed\u30c3\u30af\u30b9\u30d4\u30fc\u30c9\uff1a5MHz<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">UART<\/td>\n<td>\u30dc\u30fc\u30ec\u30fc\u30c8\uff1a110~921600BPS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u203b\u6ce2\u5f62\u54c1\u8cea\u306b\u3088\u3063\u3066\u306f\u4fe1\u53f7\u691c\u51fa\u7528\u3057\u304d\u3044\u5024\u306e\u8abf\u6574\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd\u4f7f\u7528\u6642\u306f\u30a8\u30c3\u30b8\u30c8\u30ea\u30ac\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h6 id=\"\u30ed\u30b8\u30c3\u30afch\u3068\u5404\u901a\u4fe1\u306ech\u6307\u5b9a\u306f\">\u30ed\u30b8\u30c3\u30afCH\u3068\u5404\u901a\u4fe1\u306eCH\u6307\u5b9a\u306f\uff1f<\/h6>\n<figure>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center;\">DBOX+Trace Logic Board CH<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center;\">1<\/td>\n<td>SPI\u901a\u4fe1\u306eCLK\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">2<\/td>\n<td>SPI\u901a\u4fe1\u306eCS\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">3<\/td>\n<td>SPI\u901a\u4fe1\u306eMISO\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">4<\/td>\n<td>SPI\u901a\u4fe1\u306eMOSI\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">5<\/td>\n<td>I2C\u901a\u4fe1\u306eSCL\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">6<\/td>\n<td>I2C\u901a\u4fe1\u306eSDA\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">7<\/td>\n<td>UART\u901a\u4fe1\u306eTXD\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">8<\/td>\n<td>UART\u901a\u4fe1\u306eRXD\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;\u95a2\u9023\u8a18\u4e8b&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h6 style=\"margin: 0 0 1em;\">\u95a2\u9023\u8a18\u4e8b<\/h6>\n<p>&#8211; <a href=\"https:\/\/hldc.co.jp\/support\/qna\/qna-256604\/\">\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd\u306e\u4f7f\u3044\u65b9<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e9\u30a4\u30f3\u30e2\u30cb\u30bf\u6a5f\u80fd\u3067\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u8aac\u660e\u3059\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3059\u3002 \u6a5f\u80fd\u6982\u8981 \u30b3\u30de\u30f3\u30c9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u3001\u53d6\u5f97\u3057\u305f\u901a\u4fe1\u30c7\u30fc\u30bf\u304c\u610f\u5473\u3059\u308b\u5185\u5bb9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e9\u30a4\u30f3\u30e2\u30cb&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"qna_category":[33],"qna_tag":[46],"class_list":["post-256558","qna","type-qna","status-publish","hentry","qna_category-how-to","qna_tag-46"],"acf":[],"_links":{"self":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna\/256558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna"}],"about":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/types\/qna"}],"author":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/comments?post=256558"}],"version-history":[{"count":32,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna\/256558\/revisions"}],"predecessor-version":[{"id":258792,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna\/256558\/revisions\/258792"}],"wp:attachment":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/media?parent=256558"}],"wp:term":[{"taxonomy":"qna_category","embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna_category?post=256558"},{"taxonomy":"qna_tag","embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna_tag?post=256558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}