{"id":2608,"date":"2019-06-10T02:17:50","date_gmt":"2019-06-10T02:17:50","guid":{"rendered":""},"modified":"2019-06-10T10:18:14","modified_gmt":"2019-06-10T02:18:14","slug":"%e5%9f%ba%e4%ba%8ei2c%e6%80%bb%e7%ba%bf%e7%9a%84%e5%a4%9a%e6%9c%ba%e9%80%9a%e4%bf%a1%e8%b0%83%e5%ba%a6%e6%8c%87%e6%8c%a5%e7%b3%bb%e7%bb%9f%e8%ae%be%e8%ae%a1%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2608","title":{"rendered":"\u57fa\u4e8eI2C\u603b\u7ebf\u7684\u591a\u673a\u901a\u4fe1\u8c03\u5ea6\u6307\u6325\u7cfb\u7edf\u8bbe\u8ba1\u65b9\u6848"},"content":{"rendered":"
\n\t\u672c\u6587\u4ecb\u7ecd\u4e86I2C<\/u>\u603b\u7ebf\u7684\u7ed3\u6784\u3001\u5de5\u4f5c\u539f\u7406\u3001\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u8ba8\u8bba\u4e86\u57fa\u4e8eI2C\u603b\u7ebf\u7684\u591a\u673a\u901a\u4fe1\u8f6f\u786c\u4ef6\u8bbe\u8ba1\uff0c\u5b9e\u73b0\u4e86\u7a0b\u63a7\u4ea4\u6362\u591a\u673a\u901a\u4fe1\u8c03\u5ea6\u6307\u6325\u7cfb\u7edf\u3002I2C(Inte<\/u>r Integrated Circuit)\u603b\u7ebf\u662fPhilips\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u79cd\u53cc\u5411\u4e24\u7ebf\u4e3b\u673a\u603b\u7ebf\uff0c\u5b83\u80fd\u65b9\u4fbf\u5730\u5b9e\u73b0\u82af\u7247\u95f4\u7684\u6570\u636e\u4f20\u8f93\u4e0e\u63a7\u5236\u3002\u901a\u8fc7\u4e24\u7ebf\u7f13\u51b2\u63a5\u53e3\u548c\u5185\u90e8\u63a7\u5236\u4e0e\u72b6\u6001\u5bc4\u5b58\u5668<\/u>\uff0c\u53ef\u65b9\u4fbf\u5730\u5b8c\u6210\u591a\u673a\u95f4\u7684\u975e\u4e3b\u4ece\u901a\u4fe1\u6216\u4e3b\u4ece\u901a\u4fe1\u3002\u57fa\u4e8eI2C\u603b\u7ebf\u7684\u591a\u673a\u901a\u4fe1\u7535\u8def<\/u>\u7ed3\u6784\u7b80\u5355\u3001\u7a0b\u5e8f\u7f16\u5199\u65b9\u4fbf\uff0c\u6613\u4e8e\u5b9e\u73b0\u7cfb\u7edf\u8f6f\u786c\u4ef6\u7684\u6a21\u5757\u5316\u548c\u6807\u51c6\u5316\u3002<\/p>\n
\n\t\u672c\u8c03\u5ea6\u6307\u6325\u7cfb\u7edf\u7531\u4e3b\u673a\u548c\u8c03\u5ea6\u64cd\u4f5c\u53f0\u4e24\u90e8\u5206\u7ec4\u6210\uff0c\u5de5\u4f5c\u539f\u7406\u5982\u56fe1\u6240\u793a\uff0c\u4e24\u8005\u95f4\u901a\u8fc7RS<\/u>422\u603b\u7ebf\u5b9e\u73b0\u8f83\u957f\u8ddd\u79bb\u7684\u6570\u636e\u4f20\u9001\u3002\u4e3b\u673a\u548c\u64cd\u884c\u53f0\u5185\u90e8\u5747\u91c7\u7528\u5206\u6563\u591a\u5904\u7406\u5668\u63a7\u5236\uff0c\u5904\u7406\u5668\u95f4\u91c7\u7528I2C\u603b\u7ebf\u8fdb\u884c\u6570\u636e\u901a\u4fe1<\/u>\u3002<\/p>\n \n\t<\/p>\n \n\t\u56fe1<\/p>\n \n\t\u4e3b\u673a\u5185\u90e8\u91c7\u7528\u5206\u6563\u63a7\u5236\u65b9\u5f0f\uff0c\u6574\u4e2a\u4ea4\u6362\u7cfb\u7edf\u88ab\u5206\u5272\u6210\u591a\u4e2a\u7528\u6237\u5b50\u7cfb\u7edf\u53ca1\u4e2a\u901a\u4fe1\u5b50\u7cfb\u7edf\uff0c\u6bcf\u4e2a\u5b50\u7cfb\u7edf\u7531\u4e00\u4e2aCPU<\/u>\u5904\u7406\u5355\u5143\u8d1f\u8d23128\u4e2a\u7528\u6237\u7684\u547c\u53eb\u63a7\u5236\u548c\u7ba1\u7406\uff0c\u591a\u4e2a\u5b50\u7cfb\u7edf\u4e4b\u95f4\u901a\u4fe1I2C\u7ec4\u6210\u4e00\u4e2a\u65e0\u4e3b\u901a\u4fe1\u603b\u7ebf\u8fdb\u884c\u4fe1\u606f\u4ea4\u4e92(\u5982\u547c\u53eb\u5904\u7406\u4fe1\u606f\u3001\u7ef4\u62a4\u4fe1\u606f\u7b49)\uff0c\u6784\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u4ea4\u6362\u7cfb\u7edf\u3002 \u8c03\u5ea6\u64cd\u4f5c\u53f0\u7531\u64cd\u4f5c\u53f0\u63a7\u5236CPU\u3001\u663e\u793a\u5c4f\u53ca\u591a\u4e2a\u7528\u6237\u952e\u677f\u6784\u6210\uff0c\u652f\u6301128\uff5e1024\u4e2a\u64cd\u4f5c\u6309\u952e\u548c256\uff5e2048\u4e2aLED\u6307\u793a\u706f\uff0c\u6bcf\u4e2a\u64cd\u4f5c\u6309\u952e\u53ef\u7f29\u4f4d\u4e00\u7ec4\u7535\u8bdd\u53f7\u7801\u5bf9\u5e94\u4e3b\u673a\u5185\u7684\u4e00\u4e2a\u7535\u8bdd\u7528\u6237\uff0c\u53cc\u706f\u7ec4\u5408\u6307\u793a\u8be5\u7535\u8bdd\u7528\u6237\u72b6\u6001\uff0c\u5e76\u652f\u6301LCD\u4e2d\u6587\u663e\u793a\u3002\u64cd\u4f5c\u53f0\u5185\u90e8\u4e3b\u63a7CPU\u4e0e\u7528\u6237\u952e\u677f\u63a7\u5236CPU\u4e4b\u95f4\u901a\u8fc7I2CU\u53eb\u7ebf\u7ec4\u6210\u4e3b\u4ece\u901a\u4fe1\u603b\u7ebf\u8fdb\u884c\u4fe1\u606f\u4ea4\u4e92(\u6309\u952e\u4fe1\u606f\u3001LED\u663e\u793a\u4fe1\u606f)\u3002<\/p>\n \n\t1.2\u4e3b\u673aI2C\u603b\u7ebf\u6784\u6210<\/p>\n \n\t\u5b50\u7cfb\u7edf\u7684CPU\u5904\u7406\u5355\u5143\u7531Philips-80C652\u5355\u7247\u673a<\/u>\u914d\u5408\u5916\u56f4\u7535\u8def(\u5982EPROM<\/u>\u3001RAM<\/u>\u3001EEPROM\u3001\u8bd1\u7801\u548cI\/O\u9a71\u52a8\u7b49)\u6784\u6210\uff0c80C652\u5177\u6709\u4e00\u4e2a\u652f\u6301\u53cc\u5411\u6570\u636e\u4f20\u9001\u7684I2C\u603b\u7ebf\u4e32\u884c\u63a5\u53e3\uff0cI2C\u603b\u7ebf\u903b\u8f91\u6839\u636e\u8def\u5f84\u81ea\u52a8\u5730\u8fdb\u884c\u6570\u636e\u4f20\u9001\u3002CPU\u5bf9I2CU\u603b\u7ebf\u7684\u8bbf\u95ee\u901a\u8fc7\u4ee5\u4e0b\u56db\u4e2a\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668\u5b8c\u6210\uff1a S1CON(D8H) SIO1\u63a7\u5236\u5bc4\u5b58\u5668 S1STA(D9H) SIO1\u72b6\u6001\u5bc4\u5b58\u5668 S1DAT(DAH) SIS1\u6570\u636e\u5bc4\u5b58\u5668 S1ADR(DBH) SIO1\u4ece\u5730\u5740\u5bc4\u5b58\u5668 SIO1\u903b\u8f91\u901a\u8fc7P1.6\/SCL\u548cP1.7\/SDA\u4e24\u4e2a\u5f15\u811a\u8fde\u63a5\u5230\u5916\u90e8I2C\u603b\u7ebf\uff0c\u53ef\u5de5\u4f5c\u4e8e\u4ee5\u4e0b\u56db\u79cd\u6a21\u5f0f\uff1a\u4e3b\u53d1\u9001\u6a21\u5f0f\u3001\u4e3b\u63a5\u6536\u6a21\u5f0f\u3001\u4ece\u63a5\u6536\u6a21\u5f0f\u3001\u4ece\u53d1\u9001\u6a21\u5f0f\u3002\u5404\u5b50\u7cfb\u7edf\u95f4\u7684I2C\u63a5\u53e3\u590d\u63a5\u5373\u6784\u6210\u4e86\u4e3b\u673aI2C\u901a\u4fe1\u603b\u7ebf\uff0c\u901a\u7968\u7528\u65e0\u4e3b\u901a\u4fe1\u65b9\u5f0f\uff0c\u6bcf\u4e2aCPU\u65e2\u53ef\u4ee5\u54cd\u5e94\u901a\u7528\u5730\u5740\u7684\u5e7f\u64ad\u547c\u53eb\uff0c\u4e5f\u53ef\u4ee5\u8fdb\u884c\u70b9\u5bf9\u70b9\u7684\u901a\u4fe1\uff0c\u5b8c\u5168\u6ee1\u8db3\u7a0b\u63a7\u4ea4\u6362\u7684\u4fe1\u606f\u4f20\u9001\u8981\u6c42\u4e14\u7ed3\u6784\u7b80\u5355\u3002\u8fde\u63a5\u793a\u610f\u56fe\u5982\u56fe2\u6240\u793a\u3002<\/p>\n \n\t<\/p>\n \n\t\u56fe2<\/p>\n \n\t1.3 \u8c03\u5ea6\u53f0I2C\u603b\u7ebf\u6784\u6210<\/p>\n \n\t\u64cd\u4f5c\u53f0\u63a7\u5236CPU\u677f\u7531Philips-80C652\u5355\u7247\u673a\u914d\u5408\u5916\u56f4\u7535\u8def(\u5982EPROM\u3001RAM\u3001EEPROM\u3001\u8bd1\u7801\u548c\u663e\u793a\u9a71\u52a8\u7535\u8def\u7b49)\u6784\u6210\uff0c\u5176P1.6- SCL\u3001P1.7-SDA\u4e3aI2C\u603b\u7ebf\u63a5\u53e3SIO1\u3002\u5355\u7247\u673a\u7684SIO1\u901a\u8fc7MC3486\/3487\u4e0e\u4e3b\u673a\u901a\u8fc7RS422\u63a5\u53e3\u901a\u4fe1\uff0cSIO1\u4e0e\u7528\u6237\u952e\u677f\u7684 P87LPC<\/u>764\u901a\u4fe1\uff0c\u6700\u591a\u53ef\u652f\u630163\u5757\u7528\u6237\u952e\u677f\u7684\u901a\u4fe1\u8fde\u63a5\u3002 \u6bcf\u4e2a\u7528\u6237\u952e\u677f\u5747\u91c7\u7528Philips-P87LPC764\u5355\u7247\u673a\u63a7\u5236\uff0c\u6bcf\u5757\u94fe\u677f\u63d0\u4f9b64\u4e2a\u7528\u6237\u6309\u952e\u53ca128\u4e2a\u7528\u6237\u952e\u706f\u3002P87LPC764\u662f51LPC\u7cfb\u5217 OTP\u5355\u7247\u673a\uff0c\u5176\u6700\u5927\u7279\u70b9\u662f\u6539\u8fdb\u578b80C51\u7cfb\u5217\uff0c\u589e\u52a0\u4e86WDT\u770b\u95e8\u72d7<\/u>\u3001I2C\u603b\u7ebf\u3001\u4e09\u4e2a\u6a21\u62df\u91cf\u6bd4\u8f83\u5668<\/u>\u3001\u4e0a\u7535\u590d\u4f4d\u68c0\u6d4b\uff0c\u4fdd\u8bc1I\/O\u53e3\u9a71\u52a8\u7535\u6d41<\/u>\u8fbe\u5230 20mA\uff0c\u8fd0\u884c\u901f\u5ea6\u4e3a\u6807\u51c680C51\u76842\u500d\uff0c\u800c\u4e14\u6e29\u5ea6\u8303\u56f4\u8fbe\u5230\u4e86\u5de5\u4e1a\u7ea7\u6807\u51c6(-40\u2103\uff5e+85\u2103)\u3002\u8be5\u82af\u7247\u7684I2C\u603b\u7ebf\u7cfb\u7edf\u5305\u62ec\u4e00\u4e2a\u53ef\u7b80\u5316\u8f6f\u4ef6\u9a71\u52a8\u7684 I2C\u603b\u7ebf\u786c\u4ef6\u3002\u9664\u4e86\u5fc5\u8981\u603b\u7ebf\u4ef2\u88c1\u3001\u9519\u8bef\u68c0\u6d4b\u3001\u65f6\u949f<\/u>\u6269\u5c55\u548c\u603b\u7ebf\u8d85\u65f6\u5b9a\u65f6\u5668<\/u>\u5916\uff0c\u5305\u62ec\u4e00\u4e2a\u4e00\u4f4d\u63a5\u53e3\uff0c\u8fd9\u4e2a\u63a5\u53e3\u901a\u8fc7\u5faa\u73af\u67e5\u8be2\u6216\u4e2d\u65ad\u540c\u6b65\u8f6f\u4ef6\u3002 \u91c7\u7528\u8be5\u8bbe\u8ba1\u7684\u4f18\u70b9\u5728\u4e8e\u7cfb\u7edf\u6269\u5145\u6027\u5f3a\uff0c\u8f6f\u4ef6\u529f\u80fd\u5206\u62c5\uff1a\u7531P87LPC764\u8fdb\u884c\u6309\u952e\u626b\u63cf\u548cLED\u663e\u793a\u5904\u7406\uff0c\u5927\u5927\u51cf\u8f7b\u4e86\u4e3bCPU-80C652\u7684\u8d1f\u62c5;\u7531\u4e8e P87LPC764\u6027\u4ef7\u6bd4\u4f18\u8d8a\uff0c\u6bd4\u4e13\u7528\u952e\u76d8\u7535\u8def\u66f4\u4fbf\u5b9c\uff0c\u529f\u80fd\u4e0a\u4e5f\u53ef\u7075\u6d3b\u6539\u53d8;\u952e\u677f\u53ef\u6309\u9700\u914d\u7f6e\uff0c\u53ea\u9700\u7b80\u5355\u76844\u7ebf\u8fde\u63a5(SDA\u3001SCL\u3001+5V\u3001GND)\u3002\u8c03\u5ea6\u53f0I2C\u603b\u7ebf\u8fde\u63a5\u793a\u610f\u56fe\u5982\u56fe3\u6240\u793a\u3002<\/p>\n \n\t<\/p>\n \n\t\u56fe3<\/p>\n \n\t2.1 I2C\u603b\u7ebf\u7684\u6570\u636e\u4f20\u9001\u65b9\u5f0f<\/p>\n \n\tI2C\u603b\u7ebf\u5668\u4ef6\u4e4b\u95f4\u901a\u4fe1\u4e32\u884c\u6570\u636e\u7ebfSDA\u548c\u4e32\u884c\u65f6\u949f\u7ebfSCL\u4f20\u9001\u6570\u636e\uff0c\u4ea4\u6362\u4fe1\u606f\u3002\u6bcf\u4e2a\u5668\u4ef6(\u5fae\u63a7\u5236\u5668\u3001LCD\u9a71\u52a8\u5668\u3001\u5b58\u50a8\u5668\u6216\u952e\u76d8\u63a5\u53e3)\u90fd\u8981\u8bbe\u7f6e\u4e00\u4e2a\u72ec\u7279\u7684\u5730\u5740\u7801\u4ee5\u793a\u9a71\u522b\u3002\u6839\u636e\u901a\u8baf\u8981\u6c42\uff0c\u5668\u4ef6\u53ef\u4ee5\u5de5\u4f5c\u4e8e\u53d1\u9001\u6216\u63a5\u6536\u65b9\u5f0f\uff0c\u5e76\u5141\u8bb8\u6709\u591a\u4e2a\u8bbe\u5907\u4f5c\u4e3a\u4e3b\u7ad9\u63a7\u5236\u603b\u7ebf\u3002\u603b\u7ebf\u4e0a\u4e3b\u548c\u4ece\u3001\u53d1\u9001\u548c\u63a5\u6536\u7684\u5173\u7cfb\u4ec5\u53d6\u51b3\u4e8e\u6bcf\u6b21\u6570\u636e\u4f20\u9001\u7684\u65b9\u5411\u3002<\/p>\n \n\t2.2 I2C\u603b\u7ebf\u4f20\u8f93\u6570\u636e\u683c\u5f0f<\/p>\n \n\tI2C\u603b\u7ebf\u7684\u6570\u636e\u4f20\u9001\u683c\u5f0f\u5982\u56fe4\u6240\u793a\u3002 S:start\u4fe1\u53f7; SLA\uff1a\u4ece\u673a\u5730\u5740\uff0c\u4e5f\u53ef\u4ee5\u662f\u901a\u7528\u5730\u5740; R\/W\uff1a\u8bfb\u5199\u63a7\u5236\u4f4d; A\uff1aACK\u54cd\u5e94; DATA0\uff5eDATA7\uff1a\u6bcf\u7ec4\u4f20\u90018\u4e2a\u6570\u636e\u5b57\u8282; S\/P\uff1a\u4e0b\u4e00\u4e2astart\u6216stop\u4fe1\u53f7\u3002<\/p>\n \n\t<\/p>\n \n\t\u56fe4<\/p>\n \n\t\u9996\u5148\u53d1\u9001\u5f00\u59cb(start)\u4fe1\u53f7\uff0c\u7136\u540e\u4f20\u9001\u7b2c\u4e00\u4e2a\u5b57\u8282\uff1a\u9ad87\u4f4d\u662f\u4ece\u673a\u5730\u5740\uff0c\u4f4e\u4f4d\u8868\u793a\u8bfb\/\u5199(R\/W)\u72b6\u6001\uff0c“0”\u8868\u793a\u5199\u64cd\u4f5c\uff0c“1”\u8868\u793a\u8bfb\u64cd\u4f5c\u3002\u7531\u4e8e CPU\u4e4b\u95f4\u91c7\u7528\u65e0\u4e3b\u901a\u4fe1\u6216\u4e3b\u4ece\u901a\u4fe1\uff0c\u4e00\u822c\u53ea\u91c7\u7528\u4e3b\u53d1\u9001\u548c\u4ece\u63a5\u6536\u6a21\u5f0f\uff0c\u56e0\u6b64\u8be5\u4f4d\u5747\u503c0\u8868\u793a\u6570\u636e\u53d1\u9001;\u603b\u7ebf\u4e0a\u7684\u6bcf\u4e2a\u7269\u7406\u5668\u4ef6\u5224\u65ad\u63a5\u6536\u7684\u5730\u5740\u4e0e\u672c\u673a\u5730\u5740\u662f\u5426\u4e00\u81f4\uff0c\u5730\u5740\u4e00\u81f4\uff0c\u8fd4\u56deACK\uff0c\u8fdb\u884c\u6b63\u5e38\u7684\u6570\u636e\u4f20\u9001\u3002\u6bcf\u4e2a\u5730\u5740\u6216\u6570\u636e\u540e\u5fc5\u987b\u8ddf\u5e94\u7b54\u4fe1\u53f7\uff0c\u5f53\u4e00\u4e2a\u6b63\u5e38\u7684\u5e94\u7b54\u4fe1\u53f7\u6709\u6548\u65f6\uff0cSCL\u65f6\u949f\u4e3a\u9ad8\u7535\u5e73\uff0c\u63a5\u6536\u6a21\u5757\u6570\u636e\u7ebf SDA\u7f6e\u4f4e\uff0c\u540c\u65f6\u6309\u5b57\u8282\u4f20\u9001\u6570\u636e\uff0c\u4f20\u9001\u7ed3\u675f\u7531\u53d1\u9001\u7aef\u53d1\u9001stop\u4fe1\u53f7\u6216\u4e0b\u4e00\u4e2astart\u4fe1\u53f7\u3002 \u4ece\u673a\u5730\u5740\u7531\u5404CPU\u6309\u7edf\u4e00\u539f\u5219\u8fdb\u884c\u5206\u6790\uff0c\u4e3b\u673a\u5404\u5b50\u7cfb\u7edf\u53ef\u6309\u5404\u81ea\u7684\u7cfb\u7edf\u53f7\u4ece01H\u5f00\u59cb\u7f16\u6392\uff0c00H\u4f5c\u4e3a\u901a\u7528\u547c\u53eb\u5730\u5740;\u8c03\u5ea6\u53f080C652\u5730\u5740\u53d6 01H\uff0cP87LPC764\u5730\u5740\u8303\u56f4\u4e3a40H\uff5e7FH\uff0c\u5176\u5b83\u5730\u5740\u5f85\u6269\u5145\u3002 \u5904\u7406\u5668\u4e4b\u95f4\u91c7\u7528\u56fa\u5b9a8\u5b57\u8282\u6570\u636e\u901a\u4fe1\uff1aDATA0\u3001DATA1\u3001DATA2\u3001DATA3\u3001DATA4\u3001DATA5\u3001DATA6\u3001DATA7\u3002 DATA0\uff1a\u76ee\u7684\u5730\u5740\uff0c\u53d1\u9001\u65f6\u53ef\u6839\u636e\u8be5\u5730\u5740\u786e\u5b9a\u4ece\u673a\u5730\u5740; DATA1\uff1a\u6e90\u5730\u5740; DATA2\uff1a\u6d88\u606f\u7f16\u7801\uff0c\u53ef\u6309\u9700\u5206\u914d; DATA3\uff5eDATA7\uff1a\u8be5\u6d88\u606f\u5e94\u643a\u5e26\u7684\u5176\u5b83\u5fc5\u8981\u4fe1\u606f\u3002 \u4ee5\u8c03\u5ea6\u53f0\u4e3a\u4f8b\uff0c80C652\u5411P86L<\/u>PC764\u53d1\u9001LED\u706f\u663e\u793a\u6570\u636e\uff1a\u76ee\u5740\u3001\u6e90\u5740\u300155H(\u6d88\u606f\u7f16\u7801)\uff0c\u952e\u5730\u5740\u3001\u5de6\u706f\u72b6\u6001\u3001\u53f3\u706f\u72b6\u6001\u3001#0EEH\u3001#0EEH\u3002 \u76ee\u5740\uff1a\u5373P87LPC764\u5730\u5740\u300140H\uff5e7FH; \u6e90\u5740\uff1a\u537380C652\u5730\u5740\uff0c01H; \u952e\u5730\u5740\uff1a\u6bcf\u7247P86LPC764\u6240\u5904\u7406\u7684\u6309\u952e\u5730\u5740\uff0c00H\uff5e3FH(64\u952e); \u706f\u72b6\u6001\uff1a\u5373\u8ba9\u5bf9\u5e94\u706f\u5904\u4e8e\u706d\u3001\u5e38\u4eae\u3001\u95ea\u70c1\u7b49\u72b6\u6001\u503c\u3002<\/p>\n \n\t3 \u901a\u4fe1\u8f6f\u4ef6\u8bbe\u8ba1<\/p>\n \n\t\u4e3b\u673a\u548c\u8c03\u5ea6\u53f080C652\u5355\u7247\u673a\u4e0a\u7535\u65f6\u9996\u5148\u88c5\u8f7d\u672c\u673a\u4ece\u5730\u5740\u548c\u901a\u7528\u5730\u5740\uff0c\u8bbe\u7f6eI2C\u603b\u7ebf\u4e3a\u9ad8\u4e2d\u65ad\u3002\u7531\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u81ea\u52a8\u63a5\u6536\u6570\u636e\u5b58\u5165\u6570\u636e\u7f13\u51b2\u533a\u5e76\u67e5\u8be2\u662f\u5426\u6709\u6570\u636e\u53d1\u9001\uff0c\u82e5\u6709\uff0c\u8fdb\u884c\u76f8\u5e94\u53d1\u9001\u4fe1\u606f\uff0c\u6309\u8981\u6c42\u8fdb\u884c\u76f8\u5173\u5904\u7406\uff0c\u5e76\u67e5\u8be2\u662f\u5426\u6709\u6570\u636e\u9700\u53d1\u9001\uff0c\u82e5\u6709\u586b\u5165\u53d1\u9001\u7f13\u51b2\u533a\uff0c\u8bbe\u7f6e\u5f85\u53d1\u9001S1CON\u6807\u5fd7\uff0c\u7531\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u53d1\u9001\u3002\u952e\u677fI2C\u603b\u7ebf\u8f6f\u4ef6\u5904\u7406\u8fc7\u7a0b\u4e3a\uff1a\u952e\u677fP87LPC764\u521d\u59cb\u5316\uff0c\u88c5\u8f7d\u672c\u673a\u4ece\u5730\u5740\uff0c\u8bbe\u7f6e\u5b9a\u65f6\u5668I\u4e3a\u9ad8\u4e2d\u65ad\uff0cPI<\/u>C\u603b\u7ebf\u666e\u901a\u4e2d\u65ad\u3002\u4e3b\u7a0b\u5e8f\u4e2d\u8fdb\u884cI2CU\u603b\u7ebf\u6570\u636e\u53d1\u9001\u68c0\u67e5\uff0c\u8fdb\u884c\u91cd\u53d1\u5904\u7406;\u63a5\u6536\u6570\u636e\u5904\u7406;\u5f85\u53d1\u9001\u6570\u636e\u5904\u7406\u53ca\u8bbe\u7f6e\u4e3b\u7ad9\u5f85\u53d1\u3002\u5b9a\u65f6\u5668I\u8d1f\u8d23\u76d1\u89c6I2C\u603b\u7ebf\uff0c\u8ba1\u65f6\u6ea2\u51fa\u590d\u4f4dI2C\u63a5\u53e3\u786c\u4ef6\u3002I2C\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u5b8c\u6210\u6570\u636e\u7684\u63a5\u6536\u548c\u53d1\u9001\u5de5\u4f5c\u3002\u672c\u8bbe\u8ba1\u91c7\u7528I2C\u603b\u7ebf\u5b9e\u73b0\u8c03\u5ea6\u6307\u6325\u7cfb\u7edf\u4e2d\u591a\u6a21\u5757\u95f4\u7684\u53cc\u5411\u901a\u4fe1\uff0c\u7535\u8def\u8bbe\u8ba1\u7b80\u5355\uff0c\u6613\u4e8e\u6a21\u5757\u5316\u53ca\u6269\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u672c\u6587\u4ecb\u7ecd\u4e86 I2C \u603b\u7ebf\u7684\u7ed3\u6784\u3001\u5de5\u4f5c\u539f\u7406\u3001\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u8ba8\u8bba\u4e86\u57fa\u4e8eI2C\u603b\u7ebf\u7684\u591a\u673a\u901a\u4fe1\u8f6f\u786c\u4ef6\u8bbe\u8ba1\uff0c\u5b9e\u73b0\u4e86\u7a0b\u63a7\u4ea4\u6362\u591a\u673a\u901a\u4fe1\u8c03\u5ea6\u6307\u6325\u7cfb\u7edf\u3002I2C(In te r Integrated Circuit)\u603b\u7ebf\u662fPhilips\u516c\u53f8\u5f00\u53d1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2608"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2608"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2608\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2608"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}