{"id":77964,"date":"2026-02-25T20:26:01","date_gmt":"2026-02-25T12:26:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/77964.html"},"modified":"2026-02-25T20:26:01","modified_gmt":"2026-02-25T12:26:01","slug":"51%e6%b1%87%e7%bc%96%e8%af%ad%e8%a8%80%e5%ad%a6%e4%b9%a08%ef%bc%9aeeprom%e8%af%bb%e5%86%99%e8%bf%9e%e7%bb%ad%e5%ad%97%e8%8a%82%e5%9c%b0%e5%9d%80%e5%86%99%e5%85%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/77964.html","title":{"rendered":"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165)"},"content":{"rendered":"<h3>EEPROM\u7684\u578b\u53f7\u4e3a24C02&#xff0c;\u901a\u8fc7I2C\u8fdb\u884c\u6570\u636e\u7684\u8bfb\u5199\u3002\u8be5\u7a0b\u5e8f\u53ef\u5b9e\u73b0\u8fde\u7eed\u5b57\u8282\u5730\u5740\u7684\u6570\u636e\u5199\u5165&#xff08;\u8be5\u7a0b\u5e8f\u8fde\u7eed\u5199\u51658\u4e2a\u5730\u5740&#xff09;<\/h3>\n<p><span class=\"token variable\">$MOD51<\/span> <\/p>\n<p>SCL BIT P2.1<br \/>\nSDA BIT P2.0           <\/p>\n<p>ORG 0000H             <span class=\"token punctuation\">;<\/span>\u7a0b\u5e8f\u8d77\u59cb\u5730\u5740<br \/>\nLJMP MAIN<br \/>\nORG000BH      <span class=\"token punctuation\">;<\/span>T0\u4e2d\u65ad\u5165\u53e3<br \/>\nLJMP INT_T0<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nORG 1000H<br \/>\nMAIN:<br \/>\nMOV TMOD,<span class=\"token comment\">#01H     ;\u5b9a\u65f6\/\u8ba1\u6570\u5668T0\u4f4d\u65b9\u5f0f1&#xff0c;16\u4f4d\u5b9a\u65f6\/\u8ba1\u6570\u5668\u6a21\u5f0f<\/span><br \/>\nMOV TH0,<span class=\"token comment\">#0FCH  ;\u8bbe\u7f6e1ms(65536-1000&#061;64536)<\/span><br \/>\nMOV TL0,<span class=\"token comment\">#18H<\/span><br \/>\nMOV IE,<span class=\"token comment\">#82H      ;\u5141\u8bb8\u5168\u5c40\u4e2d\u65ad\u3001T0\u4e2d\u65ad<\/span><br \/>\nMOV IP,<span class=\"token comment\">#00H  ;\u6240\u6709\u4e2d\u65ad\u4f18\u5148\u7ea7\u4e3a0<\/span><br \/>\nCLR TR0<br \/>\nCLR F0 <\/p>\n<p><span class=\"token punctuation\">;<\/span>\u8fde\u7eed\u5199\u5165\u6570\u636e<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nLCALL START<br \/>\nMOV A,<span class=\"token comment\">#0A0H  ;1010 0000<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP2<br \/>\nLJMP MLOOP1<br \/>\nMLOOP2:<br \/>\nMOV A,<span class=\"token comment\">#00H  ;0000 0000<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP3<br \/>\nLJMP MLOOP1<\/p>\n<p><span class=\"token punctuation\">;<\/span>\u5f00\u59cb\u8fde\u7eed\u5199\u5165\u6570\u636e<br \/>\nMLOOP3:<br \/>\nMOV A,<span class=\"token comment\">#80H  ;1000 0000<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP4<br \/>\nLJMP MLOOP1<br \/>\nMLOOP4:<br \/>\nMOV A,<span class=\"token comment\">#81H  ;1000 0001<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP5<br \/>\nLJMP MLOOP1<br \/>\nMLOOP5:<br \/>\nMOV A,<span class=\"token comment\">#82H  ;1000 0010<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP6<br \/>\nLJMP MLOOP1<br \/>\nMLOOP6:<br \/>\nMOV A,<span class=\"token comment\">#83H  ;1000 0011<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP7<br \/>\nLJMP MLOOP1<br \/>\nMLOOP7:<br \/>\nMOV A,<span class=\"token comment\">#84H  ;1000 0100<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP8<br \/>\nLJMP MLOOP1<br \/>\nMLOOP8:<br \/>\nMOV A,<span class=\"token comment\">#85H  ;1000 0101<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP9<br \/>\nLJMP MLOOP1<br \/>\nMLOOP9:<br \/>\nMOV A,<span class=\"token comment\">#86H  ;1000 0110<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJNC MLOOP10<br \/>\nLJMP MLOOP1<br \/>\nMLOOP10:<br \/>\nMOV A,<span class=\"token comment\">#87H  ;1000 0111<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJC MLOOP1<\/p>\n<p>LCALL STOP<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nLCALL DELAY<\/p>\n<p><span class=\"token punctuation\">;<\/span>\u8bfb\u53d6\u6307\u5b9a\u5b57\u5730\u5740\u7684\u6570\u636e<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nLCALL START<br \/>\nMOV A,<span class=\"token comment\">#0A0H  ;1010 0000<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJC MLOOP1<\/p>\n<p>MOV A,<span class=\"token comment\">#00H  ;0000 0000<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJC MLOOP1<\/p>\n<p>LCALL START<br \/>\nMOV A,<span class=\"token comment\">#0A1H  ;1010 0001<\/span><br \/>\nLCALL TRANS<br \/>\nLCALL GET_ACK<br \/>\nJC MLOOP1<\/p>\n<p>LCALL RECEIVE<br \/>\nLCALL NOACK<br \/>\nLCALL STOP<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><span class=\"token punctuation\">;<\/span>\u53ef\u5c06\u6570\u636e\u53d1\u9001\u5230P0\u53e3\u8fde\u63a5\u7684\u7684LED\u706f\u6765\u9a8c\u8bc1\u6570\u636e\u662f\u5426\u6b63\u786e&#xff0c;\u4e5f\u53ef\u901a\u8fc7\u4e32\u53e3\u9a8c\u8bc1<br \/>\nMOV P0,A<\/p>\n<p>MLOOP:<br \/>\nJMP MLOOP<br \/>\nMLOOP1:<br \/>\nLCALL STOP<br \/>\nJMP MLOOP<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u5ef6\u65f6\u51fd\u6570&#xff0c;\u53ef\u901a\u8fc7\u6539\u53d8R2\u7684\u503c\u6539\u53d8\u5ef6\u65f6\u65f6\u95f4<\/span><br \/>\nDELAY:<br \/>\nMOV R2,<span class=\"token comment\">#5<\/span><br \/>\nDLOOP1:<br \/>\nMOV TH0,<span class=\"token comment\">#0FCH  ;\u8ba1\u65f61ms(65536-1000&#061;64536)<\/span><br \/>\nMOV TL0,<span class=\"token comment\">#18H<\/span><br \/>\nSETB TR0  <span class=\"token punctuation\">;<\/span>\u4f7f\u80fdT0<br \/>\nDLOOP:<br \/>\nJB F0,DLOOP  <span class=\"token punctuation\">;<\/span>F0\u4e3a1\u8bf4\u660e50ms\u8ba1\u65f6\u8fd8\u672a\u5b8c\u6210&#xff0c;\u56e0\u6b64\u539f\u5730\u7b49\u5f85<br \/>\nSETB F0<br \/>\nDJNZ R2,DLOOP1<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u8d77\u59cb\u4fe1\u53f7<\/span><br \/>\nSTART:<br \/>\nSETB SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u9ad8<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nCLR SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u4f4e<br \/>\nNOP<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u505c\u6b62\u4fe1\u53f7<\/span><br \/>\nSTOP:<br \/>\nCLR SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u4f4e<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nSETB SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u9ad8<br \/>\nNOP<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u4e3b\u673a\u53d1\u9001\u5e94\u7b54\u4fe1\u53f7<\/span><br \/>\nACK:<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nCLR SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u4f4e<br \/>\nNOP<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nSETB SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u9ad8,\u91ca\u653e\u603b\u7ebf<br \/>\nNOP<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u4e3b\u673a\u53d1\u9001\u975e\u5e94\u7b54\u4fe1\u53f7<\/span><br \/>\nNOACK:<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nSETB SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u9ad8<br \/>\nNOP<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u4e3b\u673a\u63a5\u6536\u5e94\u7b54\u4fe1\u53f7<\/span><br \/>\nGET_ACK:<br \/>\nSETB SDA  <span class=\"token punctuation\">;<\/span>SDA\u7f6e\u9ad8,\u91ca\u653e\u603b\u7ebf<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nMOV C,SDA<br \/>\nCLR SCL<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u53d1\u9001\u51fd\u6570&#xff0c;\u4e3b\u673a\u901a\u8fc7\u8be5\u51fd\u6570\u53d1\u9001\u6570\u636e<\/span><br \/>\nTRANS:<br \/>\nMOV R0,<span class=\"token comment\">#8<\/span><br \/>\nTLOOP:<br \/>\nRLC A<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nNOP<br \/>\nMOV SDA,C  <span class=\"token punctuation\">;<\/span>\u79fb\u4f4dCy\u6570\u636e\u81f3SDA<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nNOP<br \/>\nDJNZ R0,TLOOP<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#\u63a5\u6536\u51fd\u6570&#xff0c;\u4e3b\u673a\u901a\u8fc7\u8be5\u51fd\u6570\u63a5\u6536\u6570\u636e<\/span><br \/>\nRECEIVE:<br \/>\nMOV R0,<span class=\"token comment\">#8<\/span><br \/>\nRLOOP:<br \/>\nCLR SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nNOP<br \/>\nSETB SCL  <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u9ad8<br \/>\nNOP<br \/>\nMOV C,SDA  <span class=\"token punctuation\">;<\/span>\u79fb\u4f4dSDA\u6570\u636e\u81f3Cy<br \/>\nRLC A<br \/>\nCLR SCL      <span class=\"token punctuation\">;<\/span>SCL\u7f6e\u4f4e<br \/>\nNOP<\/p>\n<p>DJNZ R0,RLOOP<\/p>\n<p>RET<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<span class=\"token punctuation\">;<\/span><span class=\"token comment\">#T0\u4e2d\u65ad\u5904\u7406\u51fd\u6570&#xff0c;\u4e3b\u8981\u529f\u80fd\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u3001\u505c\u6b62\u8ba1\u6570<\/span><br \/>\nINT_T0:<br \/>\nCLR TR0<br \/>\nCLR F0<\/p>\n<p>RETI<br \/>\n<span class=\"token punctuation\">;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>END<\/p>\n<p>\u539f\u7406\u56fe&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225122600-699eea5871efe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EEPROM\u7684\u578b\u53f7\u4e3a24C02&#xff0c;\u901a\u8fc7I2C\u8fdb\u884c\u6570\u636e\u7684\u8bfb\u5199\u3002\u8be5\u7a0b\u5e8f\u53ef\u5b9e\u73b0\u8fde\u7eed\u5b57\u8282\u5730\u5740\u7684\u6570\u636e\u5199\u5165&#xff08;\u8be5\u7a0b\u5e8f\u8fde\u7eed\u5199\u51658\u4e2a\u5730\u5740&#xff09;<br \/>\n$MOD51 SCL BIT P2.1<br \/>\nSDA BIT P2.0           ORG 0000H             ;\u7a0b\u5e8f\u8d77\u59cb\u5730\u5740<br \/>\nLJMP MAIN<br \/>\nORG000BH      ;T0\u4e2d\u65ad\u5165\u53e3<br \/>\nLJMP INT_T0;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n","protected":false},"author":2,"featured_media":77963,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2489,371,1917],"topic":[],"class_list":["post-77964","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-2489","tag-371","tag-1917"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/77964.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"EEPROM\u7684\u578b\u53f7\u4e3a24C02&#xff0c;\u901a\u8fc7I2C\u8fdb\u884c\u6570\u636e\u7684\u8bfb\u5199\u3002\u8be5\u7a0b\u5e8f\u53ef\u5b9e\u73b0\u8fde\u7eed\u5b57\u8282\u5730\u5740\u7684\u6570\u636e\u5199\u5165&#xff08;\u8be5\u7a0b\u5e8f\u8fde\u7eed\u5199\u51658\u4e2a\u5730\u5740&#xff09; $MOD51 SCL BIT P2.1 SDA BIT P2.0      ORG 0000H       ;\u7a0b\u5e8f\u8d77\u59cb\u5730\u5740 LJMP MAIN ORG000BH   ;T0\u4e2d\u65ad\u5165\u53e3 LJMP INT_T0;-----------------------------------------\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/77964.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-25T12:26:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225122600-699eea5871efe.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77964.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/77964.html\",\"name\":\"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-25T12:26:01+00:00\",\"dateModified\":\"2026-02-25T12:26:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/77964.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/77964.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77964.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/77964.html","og_locale":"zh_CN","og_type":"article","og_title":"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"EEPROM\u7684\u578b\u53f7\u4e3a24C02&#xff0c;\u901a\u8fc7I2C\u8fdb\u884c\u6570\u636e\u7684\u8bfb\u5199\u3002\u8be5\u7a0b\u5e8f\u53ef\u5b9e\u73b0\u8fde\u7eed\u5b57\u8282\u5730\u5740\u7684\u6570\u636e\u5199\u5165&#xff08;\u8be5\u7a0b\u5e8f\u8fde\u7eed\u5199\u51658\u4e2a\u5730\u5740&#xff09; $MOD51 SCL BIT P2.1 SDA BIT P2.0      ORG 0000H       ;\u7a0b\u5e8f\u8d77\u59cb\u5730\u5740 LJMP MAIN ORG000BH   ;T0\u4e2d\u65ad\u5165\u53e3 LJMP INT_T0;-----------------------------------------","og_url":"https:\/\/www.wsisp.com\/helps\/77964.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-25T12:26:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225122600-699eea5871efe.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/77964.html","url":"https:\/\/www.wsisp.com\/helps\/77964.html","name":"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-25T12:26:01+00:00","dateModified":"2026-02-25T12:26:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/77964.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/77964.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/77964.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"51\u6c47\u7f16\u8bed\u8a00\u5b66\u4e608\uff1aEEPROM\u8bfb\u5199(\u8fde\u7eed\u5b57\u8282\u5730\u5740\u5199\u5165)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=77964"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77964\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/77963"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=77964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=77964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=77964"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=77964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}