【ESK32-360测评】+存储器件及其读写
<p>在ESK32-360开发板上配备了SD卡接口,本想利用SD卡的读写功能在其基础上搭建一个文件系统来显示诸如数码相框之类的功能。后来经过对例程的观察才发现,ESK32-360开发板是不支持SD卡功能的,这种希望也就化为了泡影,只能寄希望于对HT32F12345的测评了。</p><p>依据相关资料的介绍,HT32F<span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt">12345</span></span></span></span></span>的性能如下:</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9.0pt">T</span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt">he devices operate at a frequency of up to</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt"> 80/96 MHz</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> with a Flash accelerator to obtain maximum efficiency. They provide up to</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt"> 256 KB</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> of embedded Flash memory for code/data storage and </span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt">128 KB</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> of embedded SRAM memory for system operation and application program usage. A variety of peripherals, such as ADC, I2C, USART, UART, SPI, I2S, PDMA, GPTM, MCTM, SCI, EBI, CRC-16/32, AES-128/256, USB2.0 FS, </span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt">SDIO</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt">, CSIF and SWJ-DP (Serial Wire and JTAG Debug Port), etc., are also implemented in the devices series.</span></span></span></span></span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt">而HT32F</span></span></span><span lang="EN-US" style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt">1654</span></span></span><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt">的性能则是:</span></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt">The devices operate at a frequency of up to </span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt">72 MHz</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> with a Flash accelerator to obtain maximum efficiency. They provide up to</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt"> 256 KB</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> of embedded Flash memory for code/data storage and </span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:red"><span style="letter-spacing:.4pt">32 KB</span></span></span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> of embedded SRAM memory for system operation and application program usage. A variety of peripherals, such as ADC, I2C, USART, UART, SPI, I2S, PDMA, GPTM, MCTM, SCI, EBI, CRC- 16/32, USB2.0 FS, SW-DP (Serial Wire Debug Port), etc., are also implemented in the devices.</span></span></span></span></span></span></p>
<p>由此可知,两者的区别还是较大。</p>
<p> </p>
<p>既然SD卡的读写功能没有指望了,那开发板上的24LC02会有这种能力吗?</p>
<p>回答是也不行,因为24LC02的存储容量只有区区的256字节,若是做个简单点的密码锁还是比较合适的,可以将密码存放到24LC02,然后与输入的数值进行对比来决定密码锁是否打开。</p>
<p>24LC02的接口电路如图1所示,若选择相应的例程则可得到图2所示的输出结果。</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-family:"微软雅黑","sans-serif""><span style="color:#444444"><span style="letter-spacing:.4pt"> </span></span></span></span></span></p>
<p>图1 24LC02接口电路</p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"> </span></span></p>
<p>图2 24LC02读写验证</p>
<p>在开发板上还有一种存储器件,那就是MX25L64,根据相关资料可知:</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"> </span></span></p>
<p>也就是说,其存储容量为64Mbit,即8M字节。这样的容量是可以用来做为字库或图库的,MX25L64的接口电路如图3所示。</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"> </span></span></p>
<p>图3 MX25L64接口电路</p>
<p> </p>
<p>在例程中,MX25L64的读写功能验证是通过2个LED来实现的,即:</p>
<p style="text-align:justify">绿色的LED1 被点亮 ,表示<span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="color:red">ID</span><span style="font-family:宋体"><span style="color:red">读取</span></span></span></span>正确;</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">红色的</span>LED2 <span style="font-family:宋体">被点亮,表示<span style="color:red">数据读取</span></span></span></span>正确;</p>
<p style="text-align:justify">绿色的LED3 被点亮,表示<span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体"><span style="color:red">扇区擦除</span></span></span></span>正确正确。</p>
<p style="text-align:justify"> </p>
<p>在配置串行通讯的情况下,可得到其FLASH_ID为“00 00 0C C2 22 20 01 17”,如图4所示。</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><v:rect filled="f" id="_x0000_s1026" strokecolor="red" strokeweight="1.5pt" style="position:absolute; left:0; text-align:left; margin-left:147px; margin-top:263px; width:108pt; height:10.5pt; z-index:1"></v:rect></span></span><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><v:rect filled="f" strokecolor="red" strokeweight="1.5pt" style="position:absolute; left:0; text-align:left; margin-left:147px; margin-top:263px; width:108pt; height:10.5pt; z-index:1"> </v:rect></span></span></p>
<p>图4 FLASH_ID</p>
<p>配了sd卡接口不支持sd卡功能是什么骚操作。。。</p>
freebsder 发表于 2020-8-25 21:52
配了sd卡接口不支持sd卡功能是什么骚操作。。。
<p>是呀,没仔细给自己挖了个坑儿基于SD卡的文件系统是没戏了。</p>
jinglixixi 发表于 2020-8-26 00:13
是呀,没仔细给自己挖了个坑儿基于SD卡的文件系统是没戏了。
<p>作为一个开发板把不支持的功能放上去,这就不是用户的问题了。</p>
页:
[1]