三种256MB SPIFLASH的高性能模式和软复位学习笔记

news/2024/11/17 4:35:44/

三种256MB SPIFLASH的高性能模式和软复位学习笔记

  • WINBONE
    • CONTINUE READ MODE
      • The Fast Read Dual I/O
      • The Fast Read Quad I/O
    • SOFTWARE RESET
  • EON
    • PERFORMANCE ENHANCE MODE
    • SOFTWARE RESET
  • MXIC
    • PERFORMANCE ENHANCE MODE
    • RESET

转载请标明出处 https://blog.csdn.net/weixin_43685170 ,作者:HyunYew.

WINBONE

winbone 的 W25Q256FV

CONTINUE READ MODE

W25Q256FV有一个 CONTINUE READ MODE , 支持无command的数据读取(只有ADDR+DATA),为读取提供更快的速度。

The Fast Read Dual I/O

The Fast Read Dual I/O instruction can further reduce instruction overhead through setting the“Continuous Read Mode” bits (M7-0) after the input Address bits (A23/A31-0), as shown in Figure 22a.The upper nibble of the (M7-4) controls the length of the next Fast Read Dual I/O instruction through the inclusion or exclusion of the first byte instruction code. The lower nibble bits of the (M3-0) are don’t care (“x”). However, the IO pins should be high-impedance prior to the falling edge of the first data out clock. If the “Continuous Read Mode” bits M5-4 = (1,0), then the next Fast Read Dual I/O instruction (after /CS is raised and then lowered) does not require the BBh instruction code, as shown in Figure 22b. This reduces the instruction sequence by eight clocks and allows the Read address to be immediately entered after /CS is asserted low. If the “Continuous Read Mode” bits M5-4 do not equal to (1,0), the next instruction (after /CS is raised and then lowered) requires the first byte instruction code, thus returning to normal operation. It is recommended to input FFFFh/FFFFFh on IO0 for the next instruction (16/20 clocks), to ensure M4 = 1 and return the device to normal operation.

在这里插入图片描述

The Fast Read Quad I/O

The Fast Read Quad I/O instruction can further reduce instruction overhead through setting the “Continuous Read Mode” bits (M7-0) after the input Address bits (A23/A31-0), as shown in Figure 24a. The upper nibble of the (M7-4) controls the length of the next Fast Read Quad I/O instruction through the inclusion or exclusion of the first byte instruction code. The lower nibble bits of the (M3-0) are don’t care (“x”). However, the IO pins should be high-impedance prior to the falling edge of the first data out clock. If the “Continuous Read Mode” bits M5-4 = (1,0), then the next Fast Read Quad I/O instruction (after /CS is raised and then lowered) does not require the EBh instruction code, as shown in Figure 24b. This reduces the instruction sequence by eight clocks and allows the Read address to be immediately entered after /CS is asserted low. If the “Continuous Read Mode” bits M5-4 do not equal to (1,0), the next instruction (after /CS is raised and then lowered) requires the first byte instruction code, thus returning to normal operation. It is recommended to input FFh/3FFh on IO0 for the next instruction (8/10 clocks), to ensure M4 = 1 and return the device to normal operation.

在这里插入图片描述

winbone的W25Q系列FLASH只支持24bit ADDR 模式;

SOFTWARE RESET

The W25Q256FV can be reset to the initial power-on state by a software Reset sequence, either in SPI mode or QPI mode. This sequence must include two consecutive commands: Enable Reset (66h) & Reset (99h). If the command sequence is successfully accepted, the device will take approximately 30uS (tRST) to reset. No command will be accepted during the reset period.

EON

EON的EN25QH256

PERFORMANCE ENHANCE MODE

EON的EN25Q只支持4bit command(QPI) 模式下的performance enhance mode

In the performance – enhancing mode, P[7:4] must be toggling with P[3:0] ; likewise P[7:0] = A5h, 5Ah, F0h or 0Fh can make this mode continue and reduce the next Quad Input/Output FAST_READ (EBh) instruction. Once P[7:4] is no longer toggling with P[3:0] ; likewise P[7:0] = FFh, 00h, AAh or 55h. And afterwards CS# is raised, the system then will escape from performance enhance mode and return to normal operation.
Sequence of issuing Quad Input/Output FAST_READ (EBh) instruction especially useful in random access is : CS# goes low -> sending Quad Input/Output FAST_READ (EBh) instruction -> 24- bit address interleave on DQ3, DQ2, DQ1 and DQ0 -> performance enhance toggling bit P[7:0] -> 4 dummy cycles -> data out interleave on DQ3, DQ2, DQ1 and DQ0 till CS# goes high -> CS# goes low (reduce Quad Input/Output FAST_READ (EBh) instruction) -> 24-bit or 32-bit random access address (depending on mode state)

需要6个dummy clk,前两个是M7-M0的一个byte。
在这里插入图片描述
(Note:

  1. Performance enhance mode, if P7≠P3 & P6≠P2 & P5≠P1 & P4≠P0 (Toggling), ex: A5, 5A, 0F
  2. Reset the performance enhance mode, if P7=P3 or P6=P2 or P5=P1 or P4=P0, ex: AA, 00, FF
  3. Please note the above address cycles are based on 3-byte address mode, for 4-byte address mode, the address cycles will be increased.
  4. performance enhance mode need to use qual reset-enable(66H)and qual reset (99H) COMMOMD )

在这里插入图片描述

SOFTWARE RESET

The Reset operation is used as a system (software) reset that puts the device in normal operating Ready mode. This operation consists of two commands: Reset-Enable (RSTEN) and Reset (RST). To reset the EN25QH256 the host drives CS# low, sends the Reset-Enable command (66h), and drives CS# high. Next, the host drives CS# low again, sends the Reset command (99h), and drives CS# high. The Reset operation requires the Reset-Enable command followed by the Reset command. Any command other than the Reset command after the Reset-Enable command will disable the ResetEnable
(Note:

  1. Reset-Enable (RSTEN) (66h) and Reset (RST) (99h) commands need to match standard SPI or
    EQPI (Quad) mode.
  2. Continue (Enhance) EB mode need to use quad Reset-Enable (RSTEN) (66h) and quad Reset (RST)
    (99h) commands.
  3. If user is not sure it is in SPI or Quad mode, we suggest to execute sequence as follows:
    Quad Reset-Enable (RSTEN) (66h) -> Quad Reset (RST) (99h) -> SPI Reset-Enable (RSTEN) (66h)
    -> SPI Reset (RST) (99h) to reset.
  4. The reset command could be executed during embedded program and erase process, EQPI mode
    and Continue EB mode to back to SPI mode.
  5. This flow cannot release the device from Deep power down mode.
  6. The Status Register Bit and Information register Bit will reset to default value after reset done.
  7. If user reset device during erase, the embedded reset cycle software reset latency will take about
    28us in worst case.
    )

MXIC

MXIC 的MX25L25635E

PERFORMANCE ENHANCE MODE

参考EON的PERFORMANCE ENHANCE MODE;

RESET

MX25L25635E只有HARD RESET ,没有softtware reset

总结:当芯片在SFC模式下运行时,与FLASH的交流过程中,有因为断电或者芯片重启的可能导致重新上电后的芯片不知道FLASH现在正在运行什么MODE(如1/4bit command模式、3/4 byte ADDR 模式、performance enhance mode/continue read mode(无法输入instruction) ),这时芯片需要 将FLASH初始化但又不能 发送过多指令造成MASKROM的浪费,此时可以发送N个FFH去初始化FLASH;
(4wire FFFFFF可以使M7-M0为退continue mode ,下一个instruction 接收为FFH时是EX-QPI指令(退出4bitcommand mode)这时FLASH就Reset成初始的1bit commmond 状态)。


http://www.ppmy.cn/news/408406.html

相关文章

HDFS文件系统中存储块为何设置为64MB或者128MB或256MB?

1.HDFS系统文件引入分块存储 磁盘是由数据块组成的,一般默认大小是512字节,构建磁盘之上的文件系统一般是磁盘块的整数倍。 在HDFS系统中,为了便于文件的管理和备份,引入分块概念(block)。这里的块是HDFS…

使用四字节命令读写256Mb QSPI Flash

原文地址:http://group.chinaaet.com/109/78379 在手册中,Zynq QSPI flash 控制器只支持3字节的地址,因此只支持最大128M bit的QSPI flash。 如果要支持更大的flash,需要使用QSPI flash中的bank寄存器。SDK 14.6的驱动就是采用这种…

第十二届蓝桥省赛C/C++b组填空题解析

声明:以下答案仅代表个人答案,不保证正确。如有蒙对,万分荣幸 填空目录 试题 A: 空间题目解析 试题 B: 卡片题目解析 试题 C: 直线题目解析 试题 D: 货物摆放题目解析 试题 E: 路径题目解析 试题 A: 空间 题目 【问题描述】 小蓝准备用 25…

QQ音乐 for Mac(腾讯音乐客户端)

QQ音乐for mac官方下载最新版本是一款带有精彩音乐推荐功能的播放器,同时支持在线音乐和本地音乐的播放,是国内内容最丰富的音乐平台.QQ音乐 for mac结合苹果系统的风格,拥有全新靓丽的操作界面,有着类似itunes的风格设计。它能支持全屏模式&…

qq炫舞更新显示服务器失败,为什么QQ炫舞已经是最新版本还要更新 而且总是更新失败...

满意答案 hy1201 2013.03.06 采纳率:58% 等级:12 已帮助:8055人 下载炫舞后,里面会有一个类似“病毒”的程序会被杀毒软件给查找出来,然后杀毒软件会把里面程序全给删除了,之后你下载第一次可以登陆炫舞…

免费领取QQ音乐会员

QQ音乐现在什么歌曲都要会员,而且还多歌曲都独家的,真的很烦人。 今天发现了能免费领取QQ音乐会员vip的方法~ 我也是最近学到的方法,结果就是真香,建议看完收藏起来~ 领取地址: https://y.qq.com/jzt/6b1c7d/e1e5fb…

qq音乐(网页版)

import requests from multiprocessing import Pool class Music_QQ(object):def __init__(self):self.get_mid_url https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg?self.get_vkey_url https://u.y.qq.com/cgi-bin/musicu.fcg?self.get_song_url http:…

音乐播放器之QQ音乐最新api,亲测可用

大家好,前段时间重写了自己的音乐播放器,源码放在github上,源码地址和项目地址下面都有,如果喜欢记得star一下哈。 由于之前给大家分享的api虽然可以用,但是版本太旧了,很多也没有了歌词,今天博…