【Silicon Labs 开发套件评测】+SPI flash(MX25R8035F)
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在很多应用中,需要保存配置参数。一般都会外接一个存储器来存储,数据比较少会使用</font><font face="Calibri">EEPROM</font><font face="宋体">,使用</font><font face="Calibri">SPI flash</font><font face="宋体">的也比较多,存储空间稍微大一些。可以用来保存参数及固件远程升级等。在一般的项目中我是直接使用</font><font face="Calibri">MCU</font><font face="宋体">的</font><font face="Calibri">flash</font><font face="宋体">的一个扇区来存储数据。</font></span></span></span></span></p><p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">关于旺宏的</font><font face="Calibri">MX25R8035F</font><font face="宋体">,提供两种串行接口模式</font><font face="Calibri">Mode0</font><font face="宋体">和</font><font face="Calibri">Mode3</font><font face="宋体">,数据表等信息参考官网信息:</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><a href="https://www.macronix.com/en-us/products/NOR-Flash/Serial-NOR-Flash/Pages/spec.aspx?p=MX25R8035F&m=Serial%20NOR%20Flash&n=PM2164"><u><span class="15" style="font-family:Calibri"><span style="color:#0000ff"><span style="text-decoration:underline"><span style="text-underline:single">https://www.macronix.com/en-us/products/NOR-Flash/Serial-NOR-Flash/Pages/spec.aspx?p=MX25R8035F&m=Serial%20NOR%20Flash&n=PM2164</span></span></span></span></u></a></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">Flash</font><font face="宋体">地址结构定义:</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">芯片</font><font face="Calibri">pin</font><font face="宋体">脚定义</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">硬件接口与六轴惯性传感器共用</font><font face="Calibri">spi</font><font face="宋体">接口</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">SSv5</font><font face="宋体">上添加驱动及</font><font face="Calibri">SPI</font><font face="宋体">接口的配置。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">编写</font><font face="Calibri">MX25R8035F</font><font face="宋体">驱动函数</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">驱动编写完成之后,新建一个任务测试数据的读写。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">读取设备</font><font face="Calibri">ID</font><font face="宋体">,写入数据,在读起来对比</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">与数据手册的</font><font face="Calibri">RDID</font><font face="宋体">编号一致。读取的数据与写入的一致。说明驱动函数没有问题。可以使用它来存储数据了。</font></span></span></span></span></p>
<p>还不错,Flash挺常用的一个芯片的。</p>
页:
[1]