找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9658|回复: 11

双FLASH正确接法

[复制链接]
本帖最后由 tengring 于 2013-6-25 20:11 编辑

以下内容来自M25P64 DATASHEET,高手请忽略!

Figure 4  shows an example of three devices connectedto an MCU, on an SPI bus. Only one device is selected at a time, so only one device drives the Serial Data Output (Q) line at a time, the other devices arehigh impedance. Resistors R (represented in Figure 4 ) ensure that the M25P64is not selected if the Bus Master leaves the S line in the high impedance state. As the Bus Master may enter a statewhere all inputs/outputs are in high impedance at the same time (for example,when the Bus Master is reset), the clock line (C) must be connected to anexternal pull-down resistor so that, when all inputs/outputs become high impedance,the S  line is pulled High while the Cline  is pulled Low (thus ensuring thatS  and C do not become High at the sametime, and so, that the tSHCH requirement is met). The typical value of R is 100k Ω, assuming that the time constant R*Cp (Cp = parasitic capacitance of thebus line) is shorter than the time during which the Bus Master leaves the SPIbus in high impedance.

Example: Cp = 50pF, that is R*Cp = 5 &#181;s <=> the application must ensure that the Bus Masternever leaves the SPI bus in the high impedance state for a time period shorterthan 5&#181;s.

第一段话中提到CS脚和VCC脚之间要接一个R100K)值的电阻,以确保CS脚和SCK脚不能同时是高电平。
最后这段话意思是
SPI总线控制其不能离开CS脚超过5 &#181;s,否则FLASH芯片即认为CS脚为高电平,FLASH不被选择,如果这里的R值越小则这个时间范围更小。

FLASH正确接法:

每个
FLASH芯片的CS脚和VCC脚(VCC脚也可以使用板子上任意的VCC)之间(就是1脚和8脚之间)串联一个100k欧的电阻(网上有人用10k的也可以),然后把每个芯片的CS脚通过开关接到路由主板上的CS脚,开关切换到哪个FLASH芯片哪个被选中。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 1恩山币 +1 收起 理由
sias*** + 1 楼主威武—我就想问问挖掘机技术哪家强?

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
支持。。。。。。

点评

我是来看头像的  发表于 2014-7-29 14:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习了。原来是这样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

需要关机切换吗?还是热切换?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
iuxs 发表于 2013-7-2 00:50
需要关机切换吗?还是热切换?

不需要关机
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


就是说按一下键路由就自动重启到另外一个系统吗?,这个选择开关是拨动开关还是按键开关呢,按键开关的话需要带锁的不呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
iuxs 发表于 2013-7-3 10:23
就是说按一下键路由就自动重启到另外一个系统吗?,这个选择开关是拨动开关还是按键开关呢,按键开关的话需 ...

切换系统的话肯定要关机的,先把flash开发拨到相应的flash上,然后断电重启

当系统启动后,通过切换不同的flash可以对flash进行读写,比如一个flash固件有问题,可以从好的flash启动,启动后把开发拨到不能正常启动的flash上,就可以通过命令把好的固件写到原来固件损坏的flash上,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

tengring 发表于 2013-7-3 15:35
切换系统的话肯定要关机的,先把flash开发拨到相应的flash上,然后断电重启

当系统启动后,通过切换不 ...

如果是要挂机的话,我把开关控制vcc脚不是一样可以达到效果吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我觉得是除了VCC,其它7个脚和另一个芯片,对应的7个脚位并联,焊在主板上的7个脚位上,VCC不焊,弄一个双向切换的开关,开关两端分别连接两个芯片的VCC,中间端接入主板上的VCC位置,这样通过左右切换开关,就能控制VCC,来控制两个芯片分别上电,不就能选择了吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

强淫!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

为什么1和8脚之间要连接电阻?单个Flash的时候就不用呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 02:25

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表