{"id":1078,"date":"2021-04-07T11:37:30","date_gmt":"2021-04-07T03:37:30","guid":{"rendered":"http:\/\/www.tinywsn.net\/wordpress\/?p=1078"},"modified":"2021-04-07T14:57:43","modified_gmt":"2021-04-07T06:57:43","slug":"1-wire","status":"publish","type":"post","link":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/2021\/04\/07\/1-wire\/","title":{"rendered":"\u4f20\u611f\u5668\u5e38\u89c1\u76841-wire\u603b\u7ebf"},"content":{"rendered":"\n<p>\u7f8e\u56fd\u7684\u8fbe\u62c9\u65af\u534a\u5bfc\u4f53\u516c\u53f8(DALLASSEMICONDUCTOR)\u63a8\u51fa\u7684\u5355\u603b\u7ebf(1-Wire Bus)\u6280\u672f\uff0c\u7531\u4e8e\u63a5\u53e3\u7b80\u5355\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u5728\u4f20\u611f\u5668\u63a5\u53e3\u4e2d\u3002\u4e0b\u56fe\u662f\u63a5\u53e3\u662fopen drain\uff0c\u9700\u8981\u5916\u63a5\u4e0a\u62c9\u7535\u963b\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"458\" height=\"306\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-intf.png\" alt=\"\" class=\"wp-image-1080\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-intf.png 458w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-intf-300x200.png 300w\" sizes=\"(max-width: 458px) 100vw, 458px\" \/><\/figure>\n\n\n\n<p>\u63a5\u53e3\u7684\u65f6\u5e8f\u8981\u6c42\u5982\u4e0b\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"582\" height=\"196\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-reset-timing.png\" alt=\"\" class=\"wp-image-1082\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-reset-timing.png 582w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-reset-timing-300x101.png 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"565\" height=\"233\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-write-timing.png\" alt=\"\" class=\"wp-image-1083\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-write-timing.png 565w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-write-timing-300x124.png 300w\" sizes=\"(max-width: 565px) 100vw, 565px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"559\" height=\"250\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-read-timing.png\" alt=\"\" class=\"wp-image-1081\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-read-timing.png 559w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-read-timing-300x134.png 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<p>\u63a5\u53e3\u603b\u7ebf\u63a7\u5236\u6743\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"544\" height=\"213\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-reset.jpg\" alt=\"\" class=\"wp-image-1092\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-reset.jpg 544w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-reset-300x117.jpg 300w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"544\" height=\"551\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-rw.jpg\" alt=\"\" class=\"wp-image-1091\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-rw.jpg 544w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-rw-296x300.jpg 296w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-rw-40x40.jpg 40w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/figure>\n\n\n\n<p>\u5728\u603b\u7ebf\u7684\u9a71\u52a8\u5b9e\u73b0\u4e0a\u901a\u5e38\u91c7\u7528\u5982\u4e0b\u51e0\u79cd<\/p>\n\n\n\n<ul><li>GPIO(\u67e5\u8be2\u6216\u4e2d\u65ad)+\u65f6\u949fcounter\u65b9\u6cd5<\/li><li>Timer\u7684\u8f93\u5165output compare+input capture<\/li><\/ul>\n\n\n\n<p>\u5728<strong>Maxim Integrated<\/strong>\u7f51\u7ad9\u4e0a\u4ecb\u7ecd\u4e86\u4e00\u79cd\u7528UART\u5b9e\u73b01-wire\u603b\u7ebf\u7684\u65b9\u6cd5\uff1a<a href=\"https:\/\/www.maximintegrated.com\/cn\/design\/technical-documents\/tutorials\/2\/214.html#:~:text=The%20UART%20produces%20the%201-Wire%20reset%20pulse%2C%20as,or%200%20bit%20read%20from%20a%201-Wire%20slave.\">Using a UART to Implement a 1-Wire Bus Master<\/a><br>\u7b80\u5355\u53ef\u4ee5\u76f4\u63a5\u7528\u4e0a\u62c9\u7535\u963b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"271\" height=\"137\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-intf1.jpg\" alt=\"\" class=\"wp-image-1090\"\/><\/figure>\n\n\n\n<p>\u6216\u4f7f\u7528\u5916\u7f6eopen drain\u7535\u8def<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"247\" height=\"186\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-intf2.jpg\" alt=\"\" class=\"wp-image-1089\"\/><\/figure>\n\n\n\n<p>\u901a\u8fc7\u8c03\u6574UART\u7684\u6ce2\u7279\u7387\u6765\u5b9e\u73b0\u603b\u7ebf\u65f6\u5e8f\u8981\u6c42<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"553\" height=\"346\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-reset.jpg\" alt=\"\" class=\"wp-image-1110\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-reset.jpg 553w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-reset-300x188.jpg 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"554\" height=\"400\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-read0.jpg\" alt=\"\" class=\"wp-image-1112\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-read0.jpg 554w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-read0-300x217.jpg 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"554\" height=\"403\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-read1.jpg\" alt=\"\" class=\"wp-image-1111\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-read1.jpg 554w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-read1-300x218.jpg 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"553\" height=\"359\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-write0.jpg\" alt=\"\" class=\"wp-image-1109\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-write0.jpg 553w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-write0-300x195.jpg 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"552\" height=\"383\" src=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-write1.jpg\" alt=\"\" class=\"wp-image-1108\" srcset=\"http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-write1.jpg 552w, http:\/\/www.tinywsn.net\/wordpress\/wp-content\/uploads\/2021\/04\/1wire-uart-write1-300x208.jpg 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p>\u603b\u4e4b\uff0c\u901a\u8fc7UART\u6765\u64cd\u4f5c1-wire\u603b\u7ebf\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316\u5bf9\u65f6\u5e8f\u7684\u63a7\u5236\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f8e\u56fd\u7684\u8fbe\u62c9\u65af\u534a\u5bfc\u4f53\u516c\u53f8(DALLASSEMICONDUCTOR)\u63a8\u51fa\u7684\u5355\u603b\u7ebf(1-Wire Bus)\u6280\u672f\uff0c\u7531\u4e8e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[6],"tags":[],"_links":{"self":[{"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1078"}],"collection":[{"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=1078"}],"version-history":[{"count":14,"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1078\/revisions"}],"predecessor-version":[{"id":1118,"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1078\/revisions\/1118"}],"wp:attachment":[{"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tinywsn.net\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}