<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css">
<link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css">
<link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622b3273ff7f9c46a6a85004/raw.css">
<script src="https://static.pudn.com/base/js/compatibility.min.js"></script>
<script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script>
<script>
try{
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
}catch(e){}
</script>
<title></title>
</head>
<body>
<div id="sidebar" style="display: none">
<div id="outline">
</div>
</div>
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b3273ff7f9c46a6a85004/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">广州周立功单片机发展有限公司 <span class="ff2 ls1 ws1">Tel: <span class="_ _0"></span>(020)38730976 <span class="_ _0"></span>38730977 Fax: <span class="_ _0"></span>38730925 http://<span class="ls2 ws0">www.z<span class="_ _1"></span>lgmc<span class="_ _1"></span>u.<span class="_ _1"></span>co<span class="_ _1"></span>m </span></span></div><div class="t m0 x2 h2 y2 ff2 fs0 fc0 sc0 ls0 ws0">1</div><div class="t m0 x3 h3 y3 ff3 fs1 fc0 sc0 ls3 ws0">LPC900<span class="_ _2"> </span>系列单片机<span class="_ _2"> </span>EEPROM<span class="ff2 ls0"> <span class="_"> </span><span class="ff3">的正确使用</span> </span></div><div class="t m0 x4 h4 y4 ff2 fs2 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y5 ff1 fs0 fc0 sc0 ls4 ws0"> <span class="_ _3"> </span>怎样选择封装小<span class="_ _4"> </span>操作方便<span class="_ _4"> </span>低功耗<span class="_ _4"> </span>低价位的存储芯片几<span class="_ _1"></span>乎是每个设<span class="_ _1"></span>计者都曾<span class="_ _1"></span>遇到的问<span class="_ _1"></span>题<span class="_ _5"> </span>串行</div><div class="t m0 x4 h5 y6 ff1 fs0 fc0 sc0 ls0 ws0">EERROM<span class="_ _6"> </span>的出现为大家提供了更多的选择方案</div><div class="t m0 x5 h5 y7 ff1 fs0 fc0 sc0 ls0 ws0">但是<span class="_ _7"> </span>由于一些芯片的数据手册并不完整详尽<span class="_ _7"> </span>许多设计人</div><div class="t m0 x4 h5 y8 ff1 fs0 fc0 sc0 ls0 ws0">员没有很好地了解芯片的特性</div><div class="t m0 x6 h5 y9 ff1 fs0 fc0 sc0 ls0 ws0">使得设计者将面临更多的问题<span class="_ _5"> </span> </div><div class="t m0 x4 h5 ya ff1 fs0 fc0 sc0 ls0 ws0"> <span class="_ _3"> </span>本文将从<span class="_ _6"> </span>2<span class="_ _6"> </span><span class="ls5">个方面介绍<span class="_ _6"> </span>EEPROM<span class="_ _8"> </span></span>的应用</div><div class="t m0 x7 h5 yb ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x8 h5 yc ff1 fs0 fc0 sc0 ls0 ws0">1</div><div class="t m0 x9 h5 yd ff1 fs0 fc0 sc0 ls0 ws0"> 如何正确地使用<span class="_ _8"> </span><span class="ls6">LPC9xx<span class="_ _6"> </span></span>系列操作外部串行<span class="_ _8"> </span><span class="ls6">EEPROM<span class="_ _5"> </span></span> </div><div class="t m0 x8 h5 ye ff1 fs0 fc0 sc0 ls0 ws0">2</div><div class="t m0 x9 h5 yf ff1 fs0 fc0 sc0 ls0 ws0"> 如何正确地使用内嵌<span class="_ _8"> </span><span class="ls6">EEPROM<span class="_ _6"> </span>的<span class="_ _8"> </span>P89LPC932A1<span class="_ _5"> </span></span> </div><div class="t m0 x4 h5 y10 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h6 y11 ff3 fs2 fc0 sc0 ls0 ws0">1 LPC9xx<span class="_ _6"> </span>系列与外部串行<span class="_ _9"> </span>EEPROM<span class="_ _6"> </span>的连接图 </div><div class="t m0 x4 h5 y12 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y13 ff1 fs0 fc0 sc0 ls0 ws0">I</div><div class="t m0 x1 h7 y14 ff1 fs3 fc0 sc0 ls0 ws0">2</div><div class="t m0 xa h5 y15 ff1 fs0 fc0 sc0 ls0 ws0">C<span class="_ _8"> </span>总线型<span class="_ _6"> </span><span class="ls7">EEPROM<span class="_ _6"> </span>连接图 </span></div><div class="t m0 xb h8 y16 ff2 fs4 fc0 sc0 ls0 ws0">A0</div><div class="t m0 xc h8 y17 ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 xb h8 y18 ff2 fs4 fc0 sc0 ls0 ws0">A1</div><div class="t m0 xc h8 y19 ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 xd h8 y1a ff2 fs4 fc0 sc0 ls8 ws0">SDA</div><div class="t m0 xe h8 y1b ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 xf h8 y1c ff2 fs4 fc0 sc0 ls0 ws0">SCL</div><div class="t m0 xe h8 y1d ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 xb h8 y1c ff2 fs4 fc0 sc0 ls0 ws0">VSS</div><div class="t m0 xc h8 y1d ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 xb h8 y1e ff2 fs4 fc0 sc0 ls0 ws0">A2</div><div class="t m0 xc h8 y1f ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 xb h8 y1a ff2 fs4 fc0 sc0 ls0 ws0">WP</div><div class="t m0 xc h8 y1b ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x10 h8 y16 ff2 fs4 fc0 sc0 ls0 ws0">VDD</div><div class="t m0 xe h8 y17 ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x11 h8 y20 ff2 fs4 fc1 sc0 ls0 ws0">U2</div><div class="t m0 x11 h8 y21 ff2 fs4 fc1 sc0 ls9 ws0">WC24C02</div><div class="t m0 x12 h8 y1a ff2 fs4 fc0 sc0 lsa ws0">P31</div><div class="t m0 x13 h8 y1b ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x14 h8 y22 ff2 fs4 fc0 sc0 lsa ws0">P10</div><div class="t m0 x15 h8 y23 ff2 fs4 fc0 sc0 lsb ws0">18</div><div class="t m0 x12 h8 y1c ff2 fs4 fc0 sc0 lsa ws0">P30</div><div class="t m0 x13 h8 y1d ff2 fs4 fc0 sc0 ls0 ws0">9</div><div class="t m0 x12 h8 y24 ff2 fs4 fc0 sc0 lsa ws0">P24</div><div class="t m0 x13 h8 y25 ff2 fs4 fc0 sc0 lsb ws0">15</div><div class="t m0 x14 h8 y1a ff2 fs4 fc0 sc0 lsa ws0">P11</div><div class="t m0 x15 h8 y1b ff2 fs4 fc0 sc0 lsb ws0">17</div><div class="t m0 x14 h8 y1c ff2 fs4 fc0 sc0 lsa ws0">P12</div><div class="t m0 x15 h8 y1d ff2 fs4 fc0 sc0 lsb ws0">12</div><div class="t m0 x14 h8 y26 ff2 fs4 fc0 sc0 lsa ws0">P13</div><div class="t m0 x15 h8 y27 ff2 fs4 fc0 sc0 lsb ws0">11</div><div class="t m0 x16 h8 y28 ff2 fs4 fc0 sc0 ls0 ws0">VSS</div><div class="t m0 x13 h8 y29 ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x14 h8 y28 ff2 fs4 fc0 sc0 lsa ws0">P16</div><div class="t m0 x17 h8 y29 ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x14 h8 y2a ff2 fs4 fc0 sc0 lsa ws0">P17</div><div class="t m0 x17 h8 y2b ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x14 h8 y2c ff2 fs4 fc0 sc0 lsa ws0">P00</div><div class="t m0 x17 h8 y2d ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x14 h8 y2e ff2 fs4 fc0 sc0 lsa ws0">P01</div><div class="t m0 x15 h8 y2f ff2 fs4 fc0 sc0 lsb ws0">26</div><div class="t m0 x14 h8 y30 ff2 fs4 fc0 sc0 lsa ws0">P02</div><div class="t m0 x15 h8 y31 ff2 fs4 fc0 sc0 lsb ws0">25</div><div class="t m0 x14 h8 y32 ff2 fs4 fc0 sc0 lsa ws0">P03</div><div class="t m0 x15 h8 y33 ff2 fs4 fc0 sc0 lsb ws0">24</div><div class="t m0 x14 h8 y24 ff2 fs4 fc0 sc0 lsa ws0">P04</div><div class="t m0 x15 h8 y25 ff2 fs4 fc0 sc0 lsb ws0">23</div><div class="t m0 x14 h8 y34 ff2 fs4 fc0 sc0 lsa ws0">P05</div><div class="t m0 x15 h8 y35 ff2 fs4 fc0 sc0 lsb ws0">22</div><div class="t m0 x14 h8 y16 ff2 fs4 fc0 sc0 lsa ws0">P06</div><div class="t m0 x15 h8 y17 ff2 fs4 fc0 sc0 lsb ws0">20</div><div class="t m0 x14 h8 y18 ff2 fs4 fc0 sc0 lsa ws0">P07</div><div class="t m0 x15 h8 y19 ff2 fs4 fc0 sc0 lsb ws0">19</div><div class="t m0 x12 h8 y2c ff2 fs4 fc0 sc0 lsa ws0">P20</div><div class="t m0 x13 h8 y2d ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x12 h8 y2e ff2 fs4 fc0 sc0 lsa ws0">P21</div><div class="t m0 x13 h8 y2f ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x12 h8 y30 ff2 fs4 fc0 sc0 lsa ws0">P22</div><div class="t m0 x13 h8 y31 ff2 fs4 fc0 sc0 lsb ws0">13</div><div class="t m0 x12 h8 y32 ff2 fs4 fc0 sc0 lsa ws0">P23</div><div class="t m0 x13 h8 y33 ff2 fs4 fc0 sc0 lsb ws0">14</div><div class="t m0 x12 h8 y34 ff2 fs4 fc0 sc0 lsa ws0">P25</div><div class="t m0 x13 h8 y35 ff2 fs4 fc0 sc0 lsb ws0">16</div><div class="t m0 x12 h8 y16 ff2 fs4 fc0 sc0 lsa ws0">P26</div><div class="t m0 x13 h8 y17 ff2 fs4 fc0 sc0 lsb ws0">27</div><div class="t m0 x12 h8 y18 ff2 fs4 fc0 sc0 lsa ws0">P27</div><div class="t m0 x13 h8 y19 ff2 fs4 fc0 sc0 lsb ws0">28</div><div class="t m0 x14 h8 y36 ff2 fs4 fc0 sc0 ls0 ws0">P15/RST</div><div class="t m0 x17 h8 y37 ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x14 h8 y38 ff2 fs4 fc0 sc0 lsa ws0">P14</div><div class="t m0 x15 h8 y39 ff2 fs4 fc0 sc0 lsb ws0">10</div><div class="t m0 x18 h8 y38 ff2 fs4 fc0 sc0 ls0 ws0">VDD</div><div class="t m0 x13 h8 y39 ff2 fs4 fc0 sc0 lsb ws0">21</div><div class="t m0 x19 h8 y3a ff2 fs4 fc1 sc0 ls0 ws0">U1</div><div class="t m0 x19 h8 y3b ff2 fs4 fc1 sc0 lsc ws0">LPC932</div><div class="t m0 x1a h8 y3c ff2 fs4 fc1 sc0 ls0 ws0">R1</div><div class="t m0 x1a h8 y3d ff2 fs4 fc1 sc0 lsd ws0">5.1K</div><div class="t m0 x1b h8 y3e ff2 fs4 fc1 sc0 ls0 ws0">R2</div><div class="t m0 x1b h8 y3f ff2 fs4 fc1 sc0 lsd ws0">5.1K</div><div class="t m0 x1c h8 y40 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x1d h8 y41 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x1e h8 y42 ff2 fs4 fc1 sc0 lse ws0">ResetCircuit</div><div class="t m0 x1f h9 y43 ff2 fs5 fc3 sc0 lsf ws0">A1 </div><div class="t m0 x20 h5 y44 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x21 h5 y45 ff1 fs0 fc0 sc0 ls6 ws0">图<span class="_ _8"> </span>1.1 I</div><div class="t m0 x7 h7 y46 ff1 fs3 fc0 sc0 ls0 ws0">2</div><div class="t m0 x5 h5 y47 ff1 fs0 fc0 sc0 ls0 ws0">C<span class="_ _8"> </span>总线型<span class="_ _6"> </span><span class="ls7">EEPROM<span class="_ _6"> </span>连接图 </span></div><div class="t m0 x4 h5 y48 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y49 ff1 fs0 fc0 sc0 ls6 ws0">SPI<span class="_ _8"> </span>总线型<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>连接图</div><div class="t m0 x22 h5 y4a ff1 fs0 fc0 sc0 ls10 ws0">4线<span class="_ _0"></span>法<span class="_"> </span><span class="ls0"> </span></div><div class="t m0 x23 h8 y4b ff2 fs4 fc0 sc0 lsa ws0">P31</div><div class="t m0 x24 h8 y4c ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x25 h8 y4d ff2 fs4 fc0 sc0 lsa ws0">P10</div><div class="t m0 x26 h8 y4e ff2 fs4 fc0 sc0 lsb ws0">18</div><div class="t m0 x23 h8 y4f ff2 fs4 fc0 sc0 lsa ws0">P30</div><div class="t m0 x24 h8 y50 ff2 fs4 fc0 sc0 ls0 ws0">9</div><div class="t m0 x23 h8 y51 ff2 fs4 fc0 sc0 lsa ws0">P24</div><div class="t m0 x24 h8 y52 ff2 fs4 fc0 sc0 lsb ws0">15</div><div class="t m0 x25 h8 y4b ff2 fs4 fc0 sc0 lsa ws0">P11</div><div class="t m0 x26 h8 y4c ff2 fs4 fc0 sc0 lsb ws0">17</div><div class="t m0 x25 h8 y4f ff2 fs4 fc0 sc0 lsa ws0">P12</div><div class="t m0 x26 h8 y50 ff2 fs4 fc0 sc0 lsb ws0">12</div><div class="t m0 x25 h8 y53 ff2 fs4 fc0 sc0 lsa ws0">P13</div><div class="t m0 x26 h8 y54 ff2 fs4 fc0 sc0 lsb ws0">11</div><div class="t m0 x27 h8 y55 ff2 fs4 fc0 sc0 ls0 ws0">VSS</div><div class="t m0 x24 h8 y56 ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x25 h8 y55 ff2 fs4 fc0 sc0 lsa ws0">P16</div><div class="t m0 x28 h8 y56 ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x25 h8 y57 ff2 fs4 fc0 sc0 lsa ws0">P17</div><div class="t m0 x28 h8 y58 ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x25 h8 y59 ff2 fs4 fc0 sc0 lsa ws0">P00</div><div class="t m0 x28 h8 y5a ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x25 h8 y5b ff2 fs4 fc0 sc0 lsa ws0">P01</div><div class="t m0 x26 h8 y5c ff2 fs4 fc0 sc0 lsb ws0">26</div><div class="t m0 x25 h8 y5d ff2 fs4 fc0 sc0 lsa ws0">P02</div><div class="t m0 x26 h8 y5e ff2 fs4 fc0 sc0 lsb ws0">25</div><div class="t m0 x25 h8 y5f ff2 fs4 fc0 sc0 lsa ws0">P03</div><div class="t m0 x26 h8 y60 ff2 fs4 fc0 sc0 lsb ws0">24</div><div class="t m0 x25 h8 y51 ff2 fs4 fc0 sc0 lsa ws0">P04</div><div class="t m0 x26 h8 y52 ff2 fs4 fc0 sc0 lsb ws0">23</div><div class="t m0 x25 h8 y61 ff2 fs4 fc0 sc0 lsa ws0">P05</div><div class="t m0 x26 h8 y62 ff2 fs4 fc0 sc0 lsb ws0">22</div><div class="t m0 x25 h8 y63 ff2 fs4 fc0 sc0 lsa ws0">P06</div><div class="t m0 x26 h8 y64 ff2 fs4 fc0 sc0 lsb ws0">20</div><div class="t m0 x25 h8 y65 ff2 fs4 fc0 sc0 lsa ws0">P07</div><div class="t m0 x26 h8 y66 ff2 fs4 fc0 sc0 lsb ws0">19</div><div class="t m0 x23 h8 y59 ff2 fs4 fc0 sc0 lsa ws0">P20</div><div class="t m0 x24 h8 y5a ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x23 h8 y5b ff2 fs4 fc0 sc0 lsa ws0">P21</div><div class="t m0 x24 h8 y5c ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x23 h8 y5d ff2 fs4 fc0 sc0 lsa ws0">P22</div><div class="t m0 x24 h8 y5e ff2 fs4 fc0 sc0 lsb ws0">13</div><div class="t m0 x23 h8 y5f ff2 fs4 fc0 sc0 lsa ws0">P23</div><div class="t m0 x24 h8 y60 ff2 fs4 fc0 sc0 lsb ws0">14</div><div class="t m0 x23 h8 y61 ff2 fs4 fc0 sc0 lsa ws0">P25</div><div class="t m0 x24 h8 y62 ff2 fs4 fc0 sc0 lsb ws0">16</div><div class="t m0 x23 h8 y63 ff2 fs4 fc0 sc0 lsa ws0">P26</div><div class="t m0 x24 h8 y64 ff2 fs4 fc0 sc0 lsb ws0">27</div><div class="t m0 x23 h8 y65 ff2 fs4 fc0 sc0 lsa ws0">P27</div><div class="t m0 x24 h8 y66 ff2 fs4 fc0 sc0 lsb ws0">28</div><div class="t m0 x25 h8 y67 ff2 fs4 fc0 sc0 ls0 ws0">P15/RST</div><div class="t m0 x28 h8 y68 ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x25 h8 y69 ff2 fs4 fc0 sc0 lsa ws0">P14</div><div class="t m0 x26 h8 y6a ff2 fs4 fc0 sc0 lsb ws0">10</div><div class="t m0 x29 h8 y69 ff2 fs4 fc0 sc0 ls0 ws0">VDD</div><div class="t m0 x24 h8 y6a ff2 fs4 fc0 sc0 lsb ws0">21</div><div class="t m0 x2a h8 y6b ff2 fs4 fc1 sc0 ls0 ws0">U1</div><div class="t m0 x2a h8 y6c ff2 fs4 fc1 sc0 lsc ws0">LPC932</div><div class="t m0 x2b h8 y59 ff2 fs4 fc0 sc0 ls0 ws0">CS</div><div class="t m0 x2c h8 y5a ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x2b h8 y5b ff2 fs4 fc0 sc0 ls0 ws0">SK</div><div class="t m0 x2c h8 y5c ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x2d h8 y5f ff2 fs4 fc0 sc0 ls0 ws0">GND</div><div class="t m0 x2e h8 y60 ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x2d h8 y5d ff2 fs4 fc0 sc0 ls0 ws0">ORG</div><div class="t m0 x2e h8 y5e ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x2b h8 y5f ff2 fs4 fc0 sc0 ls0 ws0">DO</div><div class="t m0 x2c h8 y60 ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x2b h8 y5d ff2 fs4 fc0 sc0 ls11 ws0">DI</div><div class="t m0 x2c h8 y5e ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x2f h8 y5b ff2 fs4 fc0 sc0 ls0 ws0">PE</div><div class="t m0 x2e h8 y5c ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x30 h8 y59 ff2 fs4 fc0 sc0 ls0 ws0">VCC</div><div class="t m0 x2e h8 y5a ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x31 h8 y6d ff2 fs4 fc1 sc0 ls0 ws0">U2</div><div class="t m0 x31 h8 y6e ff2 fs4 fc1 sc0 ls12 ws0">CAT93C46</div><div class="t m0 x32 h8 y6f ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x33 h8 y70 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x34 h8 y71 ff2 fs4 fc1 sc0 lse ws0">ResetCircuit</div><div class="t m0 x35 ha y72 ff2 fs6 fc3 sc0 ls13 ws0">A1 </div><div class="t m0 x20 h5 y73 ff1 fs0 fc0 sc1 ls0 ws0"> </div><div class="t m0 x36 h5 y74 ff1 fs0 fc0 sc0 ls14 ws0">图<span class="_ _8"> </span>1.2 SPI<span class="_ _6"> </span>总线型<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>连接图 </div><div class="t m0 x8 h5 y75 ff1 fs0 fc0 sc0 ls6 ws0">图中<span class="_ _8"> </span>CAT93C4<span class="_ _a"></span>6<span class="_ _8"> </span>的<span class="_ _6"> </span>ORG<span class="_ _8"> </span>脚接<span class="_ _8"> </span>VCC<span class="_ _8"> </span>时</div><div class="t m0 x37 h5 y76 ff1 fs0 fc0 sc0 ls0 ws0">数据与<span class="_ _8"> </span>Mc<span class="_ _1"></span>u<span class="_ _6"> </span>为<span class="_ _8"> </span>16<span class="_ _6"> </span>位传送方式<span class="_ _5"> </span><span class="ls6">ORG<span class="_ _8"> </span>接<span class="_ _8"> </span>GND<span class="_ _8"> </span>时<span class="_ _5"> </span></span>数据与<span class="_ _8"> </span>Mcu<span class="_ _8"> </span>为<span class="_ _6"> </span>8<span class="_ _6"> </span>位</div><div class="t m0 x4 h5 y77 ff1 fs0 fc0 sc0 ls0 ws0">传送方式</div><div class="t m0 x38 h5 y78 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h2 y79 ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x2 h2 y7a ff2 fs0 fc0 sc0 ls0 ws0">1</div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
</body>
</html>
<div id="pf2" class="pf w0 h0" data-page-no="2"><div class="pc pc2 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b3273ff7f9c46a6a85004/bg2.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">广州周立功单片机发展有限公司 <span class="ff2 ls1 ws1">Tel: <span class="_ _0"></span>(020)38730976 <span class="_ _0"></span>38730977 Fax: <span class="_ _0"></span>38730925 http://<span class="ls2 ws0">www.z<span class="_ _1"></span>lgmc<span class="_ _1"></span>u.<span class="_ _1"></span>co<span class="_ _1"></span>m </span></span></div><div class="t m0 x2 h2 y2 ff2 fs0 fc0 sc0 ls0 ws0">2</div><div class="t m0 x4 h5 y7b ff1 fs0 fc0 sc0 ls6 ws0">SPI<span class="_ _8"> </span>总线型<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>连接图</div><div class="t m0 x22 h5 y7c ff1 fs0 fc0 sc0 ls10 ws0">3线<span class="_ _0"></span>法<span class="_"> </span><span class="ls0"> </span></div><div class="t m0 x39 h8 y7d ff2 fs4 fc0 sc0 lsa ws0">P31</div><div class="t m0 x5 h8 y7e ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x26 h8 y7f ff2 fs4 fc0 sc0 lsa ws0">P10</div><div class="t m0 x3a h8 y80 ff2 fs4 fc0 sc0 lsb ws0">18</div><div class="t m0 x39 h8 y81 ff2 fs4 fc0 sc0 lsa ws0">P30</div><div class="t m0 x5 h8 y82 ff2 fs4 fc0 sc0 ls0 ws0">9</div><div class="t m0 x39 h8 y83 ff2 fs4 fc0 sc0 lsa ws0">P24</div><div class="t m0 x5 h8 y84 ff2 fs4 fc0 sc0 lsb ws0">15</div><div class="t m0 x26 h8 y7d ff2 fs4 fc0 sc0 lsa ws0">P11</div><div class="t m0 x3a h8 y7e ff2 fs4 fc0 sc0 lsb ws0">17</div><div class="t m0 x26 h8 y81 ff2 fs4 fc0 sc0 lsa ws0">P12</div><div class="t m0 x3a h8 y82 ff2 fs4 fc0 sc0 lsb ws0">12</div><div class="t m0 x26 h8 y85 ff2 fs4 fc0 sc0 lsa ws0">P13</div><div class="t m0 x3a h8 y86 ff2 fs4 fc0 sc0 lsb ws0">11</div><div class="t m0 x3b h8 y87 ff2 fs4 fc0 sc0 ls0 ws0">VSS</div><div class="t m0 x5 h8 y88 ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x26 h8 y87 ff2 fs4 fc0 sc0 lsa ws0">P16</div><div class="t m0 x3c h8 y88 ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x26 h8 y89 ff2 fs4 fc0 sc0 lsa ws0">P17</div><div class="t m0 x3c h8 y8a ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x26 h8 y8b ff2 fs4 fc0 sc0 lsa ws0">P00</div><div class="t m0 x3c h8 y8c ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x26 h8 y8d ff2 fs4 fc0 sc0 lsa ws0">P01</div><div class="t m0 x3a h8 y8e ff2 fs4 fc0 sc0 lsb ws0">26</div><div class="t m0 x26 h8 y8f ff2 fs4 fc0 sc0 lsa ws0">P02</div><div class="t m0 x3a h8 y90 ff2 fs4 fc0 sc0 lsb ws0">25</div><div class="t m0 x26 h8 y91 ff2 fs4 fc0 sc0 lsa ws0">P03</div><div class="t m0 x3a h8 y92 ff2 fs4 fc0 sc0 lsb ws0">24</div><div class="t m0 x26 h8 y83 ff2 fs4 fc0 sc0 lsa ws0">P04</div><div class="t m0 x3a h8 y84 ff2 fs4 fc0 sc0 lsb ws0">23</div><div class="t m0 x26 h8 y93 ff2 fs4 fc0 sc0 lsa ws0">P05</div><div class="t m0 x3a h8 y94 ff2 fs4 fc0 sc0 lsb ws0">22</div><div class="t m0 x26 h8 y95 ff2 fs4 fc0 sc0 lsa ws0">P06</div><div class="t m0 x3a h8 y96 ff2 fs4 fc0 sc0 lsb ws0">20</div><div class="t m0 x26 h8 y97 ff2 fs4 fc0 sc0 lsa ws0">P07</div><div class="t m0 x3a h8 y98 ff2 fs4 fc0 sc0 lsb ws0">19</div><div class="t m0 x39 h8 y8b ff2 fs4 fc0 sc0 lsa ws0">P20</div><div class="t m0 x5 h8 y8c ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x39 h8 y8d ff2 fs4 fc0 sc0 lsa ws0">P21</div><div class="t m0 x5 h8 y8e ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x39 h8 y8f ff2 fs4 fc0 sc0 lsa ws0">P22</div><div class="t m0 x5 h8 y90 ff2 fs4 fc0 sc0 lsb ws0">13</div><div class="t m0 x39 h8 y91 ff2 fs4 fc0 sc0 lsa ws0">P23</div><div class="t m0 x5 h8 y92 ff2 fs4 fc0 sc0 lsb ws0">14</div><div class="t m0 x39 h8 y93 ff2 fs4 fc0 sc0 lsa ws0">P25</div><div class="t m0 x5 h8 y94 ff2 fs4 fc0 sc0 lsb ws0">16</div><div class="t m0 x39 h8 y95 ff2 fs4 fc0 sc0 lsa ws0">P26</div><div class="t m0 x5 h8 y96 ff2 fs4 fc0 sc0 lsb ws0">27</div><div class="t m0 x39 h8 y97 ff2 fs4 fc0 sc0 lsa ws0">P27</div><div class="t m0 x5 h8 y98 ff2 fs4 fc0 sc0 lsb ws0">28</div><div class="t m0 x26 h8 y99 ff2 fs4 fc0 sc0 ls0 ws0">P15/RST</div><div class="t m0 x3c h8 y9a ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x26 h8 y9b ff2 fs4 fc0 sc0 lsa ws0">P14</div><div class="t m0 x3a h8 y9c ff2 fs4 fc0 sc0 lsb ws0">10</div><div class="t m0 x3d h8 y9b ff2 fs4 fc0 sc0 ls0 ws0">VDD</div><div class="t m0 x5 h8 y9c ff2 fs4 fc0 sc0 lsb ws0">21</div><div class="t m0 x3e h8 y9d ff2 fs4 fc1 sc0 ls0 ws0">U1</div><div class="t m0 x3e h8 y9e ff2 fs4 fc1 sc0 lsc ws0">LPC932</div><div class="t m0 x3f h8 y8b ff2 fs4 fc0 sc0 ls0 ws0">CS</div><div class="t m0 x31 h8 y8c ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x3f h8 y8d ff2 fs4 fc0 sc0 ls0 ws0">SK</div><div class="t m0 x31 h8 y8e ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x18 h8 y91 ff2 fs4 fc0 sc0 ls0 ws0">GND</div><div class="t m0 x13 h8 y92 ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x18 h8 y8f ff2 fs4 fc0 sc0 ls0 ws0">ORG</div><div class="t m0 x13 h8 y90 ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x3f h8 y91 ff2 fs4 fc0 sc0 ls0 ws0">DO</div><div class="t m0 x31 h8 y92 ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x3f h8 y8f ff2 fs4 fc0 sc0 ls11 ws0">DI</div><div class="t m0 x31 h8 y90 ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x40 h8 y8d ff2 fs4 fc0 sc0 ls0 ws0">PE</div><div class="t m0 x13 h8 y8e ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x41 h8 y8b ff2 fs4 fc0 sc0 ls0 ws0">VCC</div><div class="t m0 x13 h8 y8c ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x42 h8 y9f ff2 fs4 fc1 sc0 ls0 ws0">U2</div><div class="t m0 x42 h8 y94 ff2 fs4 fc1 sc0 ls12 ws0">CAT93C46</div><div class="t m0 x43 h8 ya0 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x1d h8 ya1 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x44 h8 ya2 ff2 fs4 fc1 sc0 ls0 ws0">R2</div><div class="t m0 x45 h8 ya3 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 x46 h8 ya4 ff2 fs4 fc1 sc0 ls15 ws0">Reset</div><div class="t m0 x46 h8 ya5 ff2 fs4 fc1 sc0 ls16 ws0">Circuit</div><div class="t m0 x2a ha ya6 ff2 fs6 fc3 sc0 ls13 ws0">A1 </div><div class="t m0 x47 h5 ya7 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x36 h5 ya8 ff1 fs0 fc0 sc0 ls14 ws0">图<span class="_ _8"> </span>1.3 SPI<span class="_ _6"> </span>总线型<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>连接图 </div><div class="t m0 x8 h5 ya9 ff1 fs0 fc0 sc0 ls6 ws0">图中<span class="_ _8"> </span>CAT93C4<span class="_ _a"></span>6<span class="_ _8"> </span>的<span class="_ _6"> </span>ORG<span class="_ _8"> </span>脚接<span class="_ _8"> </span>VCC<span class="_ _8"> </span>时</div><div class="t m0 x37 h5 yaa ff1 fs0 fc0 sc0 ls0 ws0">数据与<span class="_ _8"> </span>Mc<span class="_ _1"></span>u<span class="_ _6"> </span>为<span class="_ _8"> </span>16<span class="_ _6"> </span>位传送方式<span class="_ _5"> </span><span class="ls6">ORG<span class="_ _8"> </span>接<span class="_ _8"> </span>GND<span class="_ _8"> </span>时<span class="_ _5"> </span></span>数据与<span class="_ _8"> </span>Mcu<span class="_ _8"> </span>为<span class="_ _6"> </span>8<span class="_ _6"> </span>位</div><div class="t m0 x4 h5 yab ff1 fs0 fc0 sc0 ls0 ws0">传送方式</div><div class="t m0 x38 h5 yac ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x8 h5 yad ff1 fs0 fc0 sc0 ls0 ws0">关于单片机如何操作外部<span class="_ _8"> </span><span class="ls17">EEPROM<span class="_ _6"> </span>的程序</span></div><div class="t m0 x48 h5 yae ff1 fs0 fc0 sc0 ls0 ws0">我们的网站上已经有很多实例<span class="_ _5"> </span>大家可参看以下两篇<span class="_ _5"> </span> </div><div class="t m0 x8 h5 yaf ff1 fs0 fc0 sc0 ls6 ws0">24<span class="_ _8"> </span>系列</div><div class="t m0 x49 h5 yb0 ff1 fs0 fc4 sc0 ls6 ws0">http://www.zlgmcu.com/download/downs.asp?ID=195</div><div class="t m0 x8 h5 yb1 ff1 fs0 fc0 sc0 ls6 ws0">93<span class="_ _8"> </span>系列<span class="_ _5"> </span><span class="fc4">http://www.zlgmcu.com/download/downs.asp?ID=195</span></div><div class="t m0 x8 h5 yb2 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x8 h5 yb3 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x8 h5 yb4 ff1 fs0 fc0 sc0 ls0 ws0">本文将针对<span class="_ _9"> </span>P89LPC932A1<span class="_ _9"> </span>的内<span class="_ _a"></span>部<span class="_ _9"> </span>EEPROM<span class="_ _6"> </span>的有关操作</div><div class="t m0 x15 h5 yb5 ff1 fs0 fc0 sc0 ls0 ws0">进行详细描述<span class="_ _7"> </span>在我身为<span class="_ _9"> </span>FAE<span class="_ _9"> </span>的这段日子<span class="_ _5"> </span>经</div><div class="t m0 x8 h5 yb6 ff1 fs0 fc0 sc0 ls0 ws0">常 </div><div class="t m0 x4 h5 yb7 ff1 fs0 fc0 sc0 ls0 ws0">有用户反映</div><div class="t m0 x4a h5 yb8 ff1 fs0 fc0 sc0 ls0 ws0">不能正常操作内部<span class="_ _8"> </span><span class="ls6">EEPROM<span class="_ _5"> </span></span> </div><div class="t m0 x8 h5 yb9 ff1 fs0 fc0 sc0 ls0 ws0">在亲手与用户解决了一些问题以后</div><div class="t m0 x4b h5 yba ff1 fs0 fc0 sc0 ls0 ws0">总结出以下几点<span class="_ _5"> </span> </div><div class="t m0 x8 h5 ybb ff1 fs0 fc0 sc0 ls0 ws0">1</div><div class="t m0 x9 h5 ybc ff1 fs0 fc0 sc0 ls0 ws0">硬件电路设计的不合理<span class="_ _5"> </span>特指电源部分及晶振部分<span class="_ _5"> </span>其他暂不考虑<span class="_ _b"> </span> </div><div class="t m0 x4c h5 ybd ff1 fs0 fc0 sc0 ls0 ws0">LPC932A1<span class="_ _9"> </span>属于低功耗<span class="_ _9"> </span>mcu</div><div class="t m0 x3d h5 ybe ff1 fs0 fc0 sc0 ls0 ws0">其工作电压为<span class="_ _9"> </span>2.4V<span class="_ _5"> </span><span class="ls6">3.6V<span class="_ _7"> </span></span>有的用户由于经验不足<span class="_ _5"> </span>所设计出的系</div><div class="t m0 x8 h5 ybf ff1 fs0 fc0 sc0 ls0 ws0">统中</div><div class="t m0 x4d h5 y47 ff1 fs0 fc0 sc0 ls0 ws0">电压值存在一定的抖动<span class="_ _5"> </span>最后造成的结果就是影响对内部<span class="_ _c"> </span>EEPROM<span class="_ _2"> </span>模块的供电<span class="_ _7"> </span>导致不能对其</div><div class="t m0 x8 h5 y48 ff1 fs0 fc0 sc0 ls0 ws0">进行正常操作</div><div class="t m0 x4e h5 yc0 ff1 fs0 fc0 sc0 ls0 ws0">当在电路中对电压进行了处理以后<span class="_ _7"> </span>毛病就消失了<span class="_ _7"> </span>当选用外部晶振时<span class="_ _7"> </span>请选择易起</div><div class="t m0 x8 h5 yc1 ff1 fs0 fc0 sc0 ls0 ws0">振</div><div class="t m0 x4f h5 y4a ff1 fs0 fc0 sc0 ls0 ws0">频率稳定的晶振<span class="_ _5"> </span>频率的不稳定也会影响<span class="_ _c"> </span>EEPROM<span class="_ _2"> </span>的操<span class="_ _a"></span>作<span class="_ _5"> </span>并选择用户手册推荐的外接电路及器</div><div class="t m0 x8 h5 yc2 ff1 fs0 fc0 sc0 ls0 ws0">件</div><div class="t m0 x4f h5 yc3 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x8 h5 yc4 ff1 fs0 fc0 sc0 ls0 ws0">2</div><div class="t m0 x9 h5 yc5 ff1 fs0 fc0 sc0 ls0 ws0">程序设计的不合理<span class="_ _5"> </span> </div><div class="t m0 x4c h5 yc6 ff1 fs0 fc0 sc0 ls0 ws0">在设计对<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>进行操作的程序时</div><div class="t m0 x50 h5 yc7 ff1 fs0 fc0 sc0 ls0 ws0">如果是写操作<span class="_ _7"> </span>则应按照用户手册<span class="_ _d"> </span><span class="ls6">先操作<span class="_ _8"> </span>DEECON<span class="_ _d"> </span></span>然后</div><div class="t m0 x8 h5 yc8 ff1 fs0 fc0 sc0 ls6 ws0">操作<span class="_ _8"> </span>DEEDAT</div><div class="t m0 x51 h5 yc9 ff1 fs0 fc0 sc0 ls0 ws0">最后操作<span class="_ _8"> </span>DEEADR<span class="_ _7"> </span>当地址被赋值以后<span class="_ _7"> </span><span class="ls18">内部<span class="_ _8"> </span>EEPRO</span>M<span class="_ _8"> </span>模块启动写操作<span class="_ _7"> </span>而有的用户则是</div><div class="t m0 x8 h5 yca ff1 fs0 fc0 sc0 ls6 ws0">先赋值<span class="_ _8"> </span>DEEADR</div><div class="t m0 x52 h5 ycb ff1 fs0 fc0 sc0 ls19 ws0">再赋值<span class="_ _6"> </span>DEED<span class="_ _1"></span>AT<span class="_ _7"> </span><span class="ls0">虽然只是一个顺序的问题<span class="_ _7"> </span>实际中却变成先启动<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>写操作<span class="_ _7"> </span>再</span></div><div class="t m0 x8 h5 ycc ff1 fs0 fc0 sc0 ls0 ws0">赋值</div><div class="t m0 x4d h5 ycd ff1 fs0 fc0 sc0 ls0 ws0">这样<span class="_ _5"> </span>被写入的值有可能为不确认值<span class="_ _5"> </span> </div><div class="t m0 x8 h5 yce ff1 fs0 fc0 sc0 ls0 ws0">3</div><div class="t m0 x9 h5 ycf ff1 fs0 fc0 sc0 ls5 ws0"> EEPROM<span class="_ _8"> </span>的上电问题<span class="_ _5"> </span><span class="ls0"> </span></div><div class="t m0 x38 h5 yd0 ff1 fs0 fc0 sc0 ls0 ws0">Philips<span class="_ _9"> </span>为了能够最大地压榨<span class="_ _9"> </span>LP<span class="_ _1"></span>C932A1<span class="_ _9"> </span>在低功耗方面的潜力</div><div class="t m0 x2f h5 yd1 ff1 fs0 fc0 sc0 ls0 ws0">默认情况下<span class="_ _5"> </span><span class="ls19">将<span class="_ _9"> </span>LPC<span class="_ _1"></span>932A1<span class="_ _e"> </span>的各</span></div><div class="t m0 x8 h5 yd2 ff1 fs0 fc0 sc0 ls0 ws0">个功能部件关闭</div><div class="t m0 x53 h5 yd3 ff1 fs0 fc0 sc0 ls0 ws0">因此<span class="_ _5"> </span>在使用内部<span class="_ _c"> </span>EEPROM<span class="_ _2"> </span>时<span class="_ _7"> </span>也有一个上电到稳定电压的过程<span class="_ _5"> </span>在有些需要考虑</div><div class="t m0 x8 h5 yd4 ff1 fs0 fc0 sc0 ls0 ws0">严重干扰的系统中</div><div class="t m0 x54 h5 yd5 ff1 fs0 fc0 sc0 ls0 ws0">有的工程师为了能够使<span class="_ _8"> </span>EEPROM<span class="_ _6"> </span>在稳定的电压下工作<span class="_ _d"> </span>先对<span class="_ _6"> </span>EEPROM<span class="_ _8"> </span>进行一次预操</div><div class="t m0 x8 h5 yd6 ff1 fs0 fc0 sc0 ls0 ws0">作</div><div class="t m0 x4f h5 yd7 ff1 fs0 fc0 sc0 ls0 ws0">即读/写一个字节<span class="_ _f"> </span>在这个过程中<span class="_ _5"> </span>内部<span class="_ _c"> </span>EEPROM<span class="_ _2"> </span>模块<span class="_ _a"></span>被打开<span class="_ _5"> </span>并被供电<span class="_ _5"> </span>然后趋于稳定<span class="_ _7"> </span>这样</div><div class="t m0 x8 h5 yd8 ff1 fs0 fc0 sc0 ls0 ws0">虽然损失了一个字节</div><div class="t m0 x22 h5 yd9 ff1 fs0 fc0 sc0 ls0 ws0">但是操作稳定度加强<span class="_ _5"> </span> </div><div class="t m0 x4 h5 yda ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x8 h5 ydb ff1 fs0 fc0 sc0 ls0 ws0">以下将展示如何使用循环模式操作内部<span class="_ _8"> </span><span class="ls6">EEPROM</span></div><div class="t m0 x55 h5 y76 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y77 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="_ _3"> </span>在程序中将用到<span class="_ _6"> </span><span class="ls6">DEECON</span></div><div class="t m0 x56 h5 y78 ff1 fs0 fc0 sc0 ls6 ws0">DEEDAT<span class="_ _5"> </span><span class="ls7">DEEADR<span class="_ _8"> </span>等寄存器<span class="_ _5"> </span><span class="ls0">详细描述请参看用户手册<span class="_ _5"> </span> </span></span></div><div class="t m0 x4 h2 y79 ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x2 h2 y7a ff2 fs0 fc0 sc0 ls0 ws0">2</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h0" data-page-no="3"><div class="pc pc3 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b3273ff7f9c46a6a85004/bg3.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">广州周立功单片机发展有限公司 <span class="ff2 ls1 ws1">Tel: <span class="_ _0"></span>(020)38730976 <span class="_ _0"></span>38730977 Fax: <span class="_ _0"></span>38730925 http://<span class="ls2 ws0">www.z<span class="_ _1"></span>lgmc<span class="_ _1"></span>u.<span class="_ _1"></span>co<span class="_ _1"></span>m </span></span></div><div class="t m0 x2 h2 y2 ff2 fs0 fc0 sc0 ls0 ws0">3</div><div class="t m0 x4 h5 y7b ff1 fs0 fc0 sc0 ls6 ws0">表<span class="_ _8"> </span>1.1(<span class="ls1a">相关寄存器描述) </span></div><div class="t m0 x57 h5 ydc ff1 fs0 fc0 sc0 ls0 ws0">名称 <span class="_ _10"> </span>地址 <span class="_ _11"> </span>位功能 &位地址 </div><div class="t m0 x57 h5 ydd ff1 fs0 fc0 sc0 ls19 ws0">DEE<span class="_ _1"></span>CON <span class="_ _12"> </span><span class="ls6">F1H <span class="_ _13"> </span>EEIF <span class="_ _14"> </span>HVERR <span class="_ _3"> </span>ECTL1 <span class="_ _3"> </span>ECTL0 <span class="_ _15"> </span>- <span class="_ _16"> </span>- <span class="_ _16"> </span>- <span class="_ _17"> </span>EADR8 </span></div><div class="t m0 x57 h5 yde ff1 fs0 fc0 sc0 ls19 ws0">DEE<span class="_ _1"></span>DAT <span class="_ _12"> </span><span class="ls6">F2H <span class="_ _13"> </span> <span class="_ _18"> </span> <span class="_ _18"> </span><span class="ls1b"> </span></span></div><div class="t m0 x57 h5 ydf ff1 fs0 fc0 sc0 ls19 ws0">DEE<span class="_ _1"></span>ADR <span class="_ _12"> </span><span class="ls6">F3H <span class="_ _13"> </span> <span class="_ _18"> </span> <span class="_ _18"> </span><span class="ls1b"> </span></span></div><div class="t m0 x4 h5 ye0 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h6 ye1 ff3 fs2 fc0 sc0 ls0 ws0">2 内部<span class="_ _6"> </span>EEPROM<span class="_ _9"> </span>测试原理图 </div><div class="t m0 x4 h5 ye2 ff1 fs0 fc0 sc0 ls0 ws0">本图比较简单<span class="_ _5"> </span>没有什么复杂的地方<span class="_ _5"> </span><span class="ls1c">拥有<span class="_ _8"> </span>DP-932<span class="_ _8"> </span></span>开发板的朋友<span class="_ _5"> </span>可以直接在上面运行测试程序<span class="_ _5"> </span> </div><div class="t m0 x4 h5 ye3 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x58 h8 ye4 ff2 fs4 fc0 sc0 lsa ws0">P31</div><div class="t m0 x59 h8 ye5 ff2 fs4 fc0 sc0 ls0 ws0">8</div><div class="t m0 x5a h8 ye6 ff2 fs4 fc0 sc0 lsa ws0">P10</div><div class="t m0 x50 h8 ye7 ff2 fs4 fc0 sc0 lsb ws0">18</div><div class="t m0 x58 h8 ye8 ff2 fs4 fc0 sc0 lsa ws0">P30</div><div class="t m0 x59 h8 ye9 ff2 fs4 fc0 sc0 ls0 ws0">9</div><div class="t m0 x58 h8 yea ff2 fs4 fc0 sc0 lsa ws0">P24</div><div class="t m0 x59 h8 yeb ff2 fs4 fc0 sc0 lsb ws0">15</div><div class="t m0 x5a h8 ye4 ff2 fs4 fc0 sc0 lsa ws0">P11</div><div class="t m0 x50 h8 ye5 ff2 fs4 fc0 sc0 lsb ws0">17</div><div class="t m0 x5a h8 ye8 ff2 fs4 fc0 sc0 lsa ws0">P12</div><div class="t m0 x50 h8 ye9 ff2 fs4 fc0 sc0 lsb ws0">12</div><div class="t m0 x5a h8 yec ff2 fs4 fc0 sc0 lsa ws0">P13</div><div class="t m0 x50 h8 yed ff2 fs4 fc0 sc0 lsb ws0">11</div><div class="t m0 x5b h8 yee ff2 fs4 fc0 sc0 ls0 ws0">VSS</div><div class="t m0 x59 h8 yef ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x5a h8 yee ff2 fs4 fc0 sc0 lsa ws0">P16</div><div class="t m0 x5c h8 yef ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x5a h8 yf0 ff2 fs4 fc0 sc0 lsa ws0">P17</div><div class="t m0 x5c h8 yf1 ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x5a h8 yf2 ff2 fs4 fc0 sc0 lsa ws0">P00</div><div class="t m0 x5c h8 yf3 ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x5a h8 yf4 ff2 fs4 fc0 sc0 lsa ws0">P01</div><div class="t m0 x50 h8 yf5 ff2 fs4 fc0 sc0 lsb ws0">26</div><div class="t m0 x5a h8 yf6 ff2 fs4 fc0 sc0 lsa ws0">P02</div><div class="t m0 x50 h8 yf7 ff2 fs4 fc0 sc0 lsb ws0">25</div><div class="t m0 x5a h8 yf8 ff2 fs4 fc0 sc0 lsa ws0">P03</div><div class="t m0 x50 h8 yf9 ff2 fs4 fc0 sc0 lsb ws0">24</div><div class="t m0 x5a h8 yea ff2 fs4 fc0 sc0 lsa ws0">P04</div><div class="t m0 x50 h8 yeb ff2 fs4 fc0 sc0 lsb ws0">23</div><div class="t m0 x5a h8 yfa ff2 fs4 fc0 sc0 lsa ws0">P05</div><div class="t m0 x50 h8 yfb ff2 fs4 fc0 sc0 lsb ws0">22</div><div class="t m0 x5a h8 yfc ff2 fs4 fc0 sc0 lsa ws0">P06</div><div class="t m0 x50 h8 yfd ff2 fs4 fc0 sc0 lsb ws0">20</div><div class="t m0 x5a h8 yfe ff2 fs4 fc0 sc0 lsa ws0">P07</div><div class="t m0 x50 h8 yff ff2 fs4 fc0 sc0 lsb ws0">19</div><div class="t m0 x58 h8 yf2 ff2 fs4 fc0 sc0 lsa ws0">P20</div><div class="t m0 x59 h8 yf3 ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x58 h8 yf4 ff2 fs4 fc0 sc0 lsa ws0">P21</div><div class="t m0 x59 h8 yf5 ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x58 h8 yf6 ff2 fs4 fc0 sc0 lsa ws0">P22</div><div class="t m0 x59 h8 yf7 ff2 fs4 fc0 sc0 lsb ws0">13</div><div class="t m0 x58 h8 yf8 ff2 fs4 fc0 sc0 lsa ws0">P23</div><div class="t m0 x59 h8 yf9 ff2 fs4 fc0 sc0 lsb ws0">14</div><div class="t m0 x58 h8 yfa ff2 fs4 fc0 sc0 lsa ws0">P25</div><div class="t m0 x59 h8 yfb ff2 fs4 fc0 sc0 lsb ws0">16</div><div class="t m0 x58 h8 yfc ff2 fs4 fc0 sc0 lsa ws0">P26</div><div class="t m0 x59 h8 yfd ff2 fs4 fc0 sc0 lsb ws0">27</div><div class="t m0 x58 h8 yfe ff2 fs4 fc0 sc0 lsa ws0">P27</div><div class="t m0 x59 h8 yff ff2 fs4 fc0 sc0 lsb ws0">28</div><div class="t m0 x5a h8 y100 ff2 fs4 fc0 sc0 ls0 ws0">P15/RST</div><div class="t m0 x5c h8 y101 ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x5a h8 y102 ff2 fs4 fc0 sc0 lsa ws0">P14</div><div class="t m0 x50 h8 y103 ff2 fs4 fc0 sc0 lsb ws0">10</div><div class="t m0 x5d h8 y102 ff2 fs4 fc0 sc0 ls0 ws0">VDD</div><div class="t m0 x59 h8 y103 ff2 fs4 fc0 sc0 lsb ws0">21</div><div class="t m0 x44 h8 y104 ff2 fs4 fc1 sc0 ls0 ws0">U1</div><div class="t m0 x44 h8 y105 ff2 fs4 fc1 sc0 lsc ws0">LPC935</div><div class="t m0 x5e h8 y106 ff2 fs4 fc1 sc0 ls0 ws0">D1</div><div class="t m0 x5f h8 y107 ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x5e h8 y108 ff2 fs4 fc1 sc0 ls0 ws0">D2</div><div class="t m0 x5f h8 y109 ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x5e h8 y10a ff2 fs4 fc1 sc0 ls0 ws0">D3</div><div class="t m0 x5f h8 y10b ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x5e h8 y10c ff2 fs4 fc1 sc0 ls0 ws0">D4</div><div class="t m0 x5f h8 y10d ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x5e h8 y10e ff2 fs4 fc1 sc0 ls0 ws0">D5</div><div class="t m0 x5f h8 y10f ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x5e h8 y110 ff2 fs4 fc1 sc0 ls0 ws0">D6</div><div class="t m0 x5f h8 y111 ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x5e h8 y112 ff2 fs4 fc1 sc0 ls0 ws0">D7</div><div class="t m0 x5f h8 y113 ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 xc h8 y114 ff2 fs4 fc1 sc0 ls0 ws0">R1</div><div class="t m0 xc h8 y115 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 xc h8 y116 ff2 fs4 fc1 sc0 ls0 ws0">R2</div><div class="t m0 xc h8 y117 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 xc h8 y118 ff2 fs4 fc1 sc0 ls0 ws0">R3</div><div class="t m0 xc h8 y119 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 xc h8 y11a ff2 fs4 fc1 sc0 ls0 ws0">R4</div><div class="t m0 xc h8 y11b ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 xc h8 y11c ff2 fs4 fc1 sc0 ls0 ws0">R5</div><div class="t m0 xc h8 y11d ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 xc h8 y11e ff2 fs4 fc1 sc0 ls0 ws0">R6</div><div class="t m0 xc h8 y11f ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 xc h8 y120 ff2 fs4 fc1 sc0 ls0 ws0">R7</div><div class="t m0 xc h8 y121 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 x60 h8 y122 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x61 h8 y123 ff2 fs4 fc0 sc0 ls0 ws0">SER</div><div class="t m0 x62 h8 y124 ff2 fs4 fc0 sc0 lsb ws0">14</div><div class="t m0 x24 h8 y125 ff2 fs4 fc0 sc0 ls0 ws0">SRCLK</div><div class="t m0 x62 h8 y126 ff2 fs4 fc0 sc0 lsb ws0">11</div><div class="t m0 x24 h8 y127 ff2 fs4 fc0 sc0 ls0 ws0">SRCLR</div><div class="t m0 x62 h8 y128 ff2 fs4 fc0 sc0 lsb ws0">10</div><div class="t m0 x63 h8 y129 ff2 fs4 fc0 sc0 ls0 ws0">RCLK</div><div class="t m0 x62 h8 y12a ff2 fs4 fc0 sc0 lsb ws0">12</div><div class="t m0 x45 h8 y12b ff2 fs4 fc0 sc0 ls0 ws0">E</div><div class="t m0 x62 h8 y12c ff2 fs4 fc0 sc0 lsb ws0">13</div><div class="t m0 x64 h8 y123 ff2 fs4 fc0 sc0 ls0 ws0">O0</div><div class="t m0 x65 h8 y124 ff2 fs4 fc0 sc0 lsb ws0">15</div><div class="t m0 x64 h8 y12d ff2 fs4 fc0 sc0 ls0 ws0">O1</div><div class="t m0 x66 h8 y12e ff2 fs4 fc0 sc0 ls0 ws0">1</div><div class="t m0 x64 h8 y125 ff2 fs4 fc0 sc0 ls0 ws0">O2</div><div class="t m0 x66 h8 y126 ff2 fs4 fc0 sc0 ls0 ws0">2</div><div class="t m0 x64 h8 y127 ff2 fs4 fc0 sc0 ls0 ws0">O3</div><div class="t m0 x66 h8 y128 ff2 fs4 fc0 sc0 ls0 ws0">3</div><div class="t m0 x64 h8 y12f ff2 fs4 fc0 sc0 ls0 ws0">O4</div><div class="t m0 x66 h8 y130 ff2 fs4 fc0 sc0 ls0 ws0">4</div><div class="t m0 x64 h8 y129 ff2 fs4 fc0 sc0 ls0 ws0">O5</div><div class="t m0 x66 h8 y12a ff2 fs4 fc0 sc0 ls0 ws0">5</div><div class="t m0 x64 h8 y12b ff2 fs4 fc0 sc0 ls0 ws0">O6</div><div class="t m0 x66 h8 y12c ff2 fs4 fc0 sc0 ls0 ws0">6</div><div class="t m0 x64 h8 y131 ff2 fs4 fc0 sc0 ls0 ws0">O7</div><div class="t m0 x66 h8 y132 ff2 fs4 fc0 sc0 ls0 ws0">7</div><div class="t m0 x64 h8 y133 ff2 fs4 fc0 sc0 ls0 ws0">Q7</div><div class="t m0 x66 h8 y134 ff2 fs4 fc0 sc0 ls0 ws0">9</div><div class="t m0 x2c h8 y135 ff2 fs4 fc1 sc0 ls0 ws0">U2</div><div class="t m0 x2c h8 y136 ff2 fs4 fc1 sc0 ls1d ws0">74HC595</div><div class="t m0 x5e h8 y137 ff2 fs4 fc1 sc0 ls0 ws0">D8</div><div class="t m0 x5f h8 y138 ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 xc h8 y139 ff2 fs4 fc1 sc0 ls0 ws0">R8</div><div class="t m0 xc h8 y13a ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 x67 h8 y13b ff2 fs4 fc1 sc0 ls0 ws0">Q1</div><div class="t m0 x67 h8 y13c ff2 fs4 fc1 sc0 lsb ws0">9012</div><div class="t m0 x68 h8 y13d ff2 fs4 fc1 sc0 ls0 ws0">U3</div><div class="t m0 x68 h8 y13e ff2 fs4 fc1 sc0 ls0 ws0">BUZZER</div><div class="t m0 x69 h8 y13f ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x19 h8 y13b ff2 fs4 fc2 sc0 ls1e ws0">MOSI</div><div class="t m0 x19 h8 y126 ff2 fs4 fc2 sc0 lse ws0">SPICLK</div><div class="t m0 x19 h8 y140 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x19 h8 y141 ff2 fs4 fc2 sc0 ls1f ws0">SS</div><div class="t m0 x35 h8 y142 ff2 fs4 fc2 sc0 ls1e ws0">MISO</div><div class="t m0 x16 h8 y143 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x6a h8 y144 ff2 fs4 fc2 sc0 ls1e ws0">MOSI</div><div class="t m0 x6a h8 y145 ff2 fs4 fc2 sc0 ls1f ws0">SS</div><div class="t m0 x6a h8 y146 ff2 fs4 fc2 sc0 lse ws0">SPICLK</div><div class="t m0 x6a h8 y147 ff2 fs4 fc2 sc0 ls1e ws0">MISO</div><div class="t m0 x6b h8 y148 ff2 fs4 fc1 sc0 ls1d ws0">R14</div><div class="t m0 x6b h8 y149 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 x6c h8 y14a ff2 fs4 fc2 sc0 lsd ws0">BEEP</div><div class="t m0 x6a h8 y14b ff2 fs4 fc2 sc0 lsd ws0">BEEP</div><div class="t m0 x38 h8 y14c ff2 fs4 fc1 sc0 ls0 ws0">S1</div><div class="t m0 x38 h8 y14d ff2 fs4 fc1 sc0 ls0 ws0">SW-PB</div><div class="t m0 x38 h8 y14e ff2 fs4 fc1 sc0 ls0 ws0">S2</div><div class="t m0 x38 h8 y14f ff2 fs4 fc1 sc0 ls0 ws0">SW-PB</div><div class="t m0 x38 h8 y150 ff2 fs4 fc1 sc0 ls0 ws0">S3</div><div class="t m0 x38 h8 y151 ff2 fs4 fc1 sc0 ls0 ws0">SW-PB</div><div class="t m0 x38 h8 y152 ff2 fs4 fc1 sc0 ls0 ws0">S4</div><div class="t m0 x38 h8 y153 ff2 fs4 fc1 sc0 ls0 ws0">SW-PB</div><div class="t m0 xc h8 y154 ff2 fs4 fc1 sc0 ls0 ws0">R9</div><div class="t m0 xc h8 y155 ff2 fs4 fc1 sc0 lsb ws0">100</div><div class="t m0 xc h8 y156 ff2 fs4 fc1 sc0 ls1d ws0">R10</div><div class="t m0 xc h8 y157 ff2 fs4 fc1 sc0 lsb ws0">100</div><div class="t m0 xc h8 y158 ff2 fs4 fc1 sc0 ls1d ws0">R11</div><div class="t m0 xc h8 y159 ff2 fs4 fc1 sc0 lsb ws0">100</div><div class="t m0 xc h8 y15a ff2 fs4 fc1 sc0 ls1d ws0">R12</div><div class="t m0 xc h8 y15b ff2 fs4 fc1 sc0 lsb ws0">100</div><div class="t m0 x6d h8 y15c ff2 fs4 fc2 sc0 ls20 ws0">KEY1</div><div class="t m0 x6d h8 y15d ff2 fs4 fc2 sc0 ls20 ws0">KEY2</div><div class="t m0 x6d h8 y15e ff2 fs4 fc2 sc0 ls20 ws0">KEY3</div><div class="t m0 x6d h8 y15f ff2 fs4 fc2 sc0 ls20 ws0">KEY4</div><div class="t m0 x6e h8 y160 ff2 fs4 fc2 sc0 ls20 ws0">KEY1</div><div class="t m0 x6e h8 y161 ff2 fs4 fc2 sc0 ls20 ws0">KEY2</div><div class="t m0 x6e h8 y162 ff2 fs4 fc2 sc0 ls20 ws0">KEY3</div><div class="t m0 x6e h8 y163 ff2 fs4 fc2 sc0 ls20 ws0">KEY4</div><div class="t m0 x6f h8 y164 ff2 fs4 fc1 sc0 ls0 ws0">L1</div><div class="t m0 x6f h8 y165 ff2 fs4 fc1 sc0 ls0 ws0">LED</div><div class="t m0 x70 h8 y166 ff2 fs4 fc1 sc0 ls1d ws0">R15</div><div class="t m0 x70 h8 y167 ff2 fs4 fc1 sc0 ls0 ws0">1K</div><div class="t m0 x71 h8 y168 ff2 fs4 fc2 sc0 ls0 ws0">VCC</div><div class="t m0 x35 hb y169 ff1 fs7 fc1 sc0 ls0 ws0">复位电路</div><div class="t m0 x72 h5 y16a ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x73 h5 y16b ff1 fs0 fc0 sc0 ls21 ws0">图<span class="_ _8"> </span>2.1 实验原理图 </div><div class="t m0 x4 h5 y16c ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y16d ff3 fs0 fc0 sc0 ls0 ws0">示例程序</div><div class="t m0 x38 h5 y16e ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y16f ff1 fs0 fc0 sc0 ls6 ws0">//********************C 版******************* </div><div class="t m0 x4 h5 y170 ff1 fs0 fc0 sc0 ls6 ws0">/************************************************* </div><div class="t m0 x4 h5 y171 ff1 fs0 fc0 sc0 ls6 ws0">*文件名 :InternalEEprom_Test.C </div><div class="t m0 x4 h5 y172 ff1 fs0 fc0 sc0 ls0 ws0">*版权: 广州周立功单片机发展有限公司 </div><div class="t m0 x4 h5 y173 ff1 fs0 fc0 sc0 ls22 ws0">*功能: P89LPC932A1<span class="_ _8"> </span><span class="ls1c">内部<span class="_ _6"> </span>EEPROM<span class="_ _8"> </span><span class="ls0">操作演示程序 </span></span></div><div class="t m0 x4 h5 y174 ff1 fs0 fc0 sc0 ls6 ws0">*日期: 10:44 04-2-18 </div><div class="t m0 x4 h5 y175 ff1 fs0 fc0 sc0 ls17 ws0">*补充: <span class="ls7">程序可在<span class="_ _8"> </span>DP-932<span class="_ _6"> </span><span class="ls0">上直接运行 </span></span></div><div class="t m0 x4 h5 y176 ff1 fs0 fc0 sc0 ls6 ws0">*************************************************/ </div><div class="t m0 x4 h5 y177 ff1 fs0 fc0 sc0 ls6 ws0">#include "reg932.h" </div><div class="t m0 x4 h5 y178 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x4 h5 y179 ff1 fs0 fc0 sc0 ls6 ws0">#define <span class="_ _19"> </span>uchar unsigned char </div><div class="t m0 x4 h2 y79 ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x2 h2 y7a ff2 fs0 fc0 sc0 ls0 ws0">3</div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>