浅谈佛萨奇公排系统模式开发源码部署(Demo)2.0Meta Force佛萨奇系统开发源码

简介: 佛萨奇公排系统模式开发源码部署(Demo)
  常见的SPI通信实现一般包括4根线,CLK,CS,MOSI,MISO,协议的原理比较简单,其实就是在时钟的不同边沿处选择输入还是输出,当选择是输入的时候,数据线要有保持数据的能力;当输出的时候,数据线要能够改变电平来输出数据。

概况
The W25Q128BV (8M-bit) Serial Flash memory provides a storage solution for systems with limited space, pins and power. The 25Q series offers flexibility and performance well beyond ordinary Serial Flash devices. They are ideal for code shadowing to RAM, executing code directly from Dual/Quad SPI (XIP) and storing voice, text and data. The device operates on a single 2.7V to 3.6V power supply with current consumption as low as 4mA active and 1μA for power-down.
The W25Q128BV array is organized into 65,536 programmable pages of 256-bytes each. Up to 256 bytes can be programmed at a time. Pages can be erased in groups of 16 (4KB sector erase), groups of 128 (32KB block erase), groups of 256 (64KB block erase) or the entire chip (chip erase). The W25Q128BV has 4,096 erasable sectors and 256 erasable blocks respectively. The small 4KB sectors allow for greater flexibility in applications that require data and parameter storage. (See Figure 2.)
The W25Q128BV supports the standard Serial Peripheral Interface (SPI), and a high performance Dual/Quad output as well as Dual/Quad I/O SPI: Serial Clock, Chip Select, Serial Data I/O0 (DI), I/O1 (DO), I/O2 (/WP), and I/O3 (/HOLD). SPI clock frequencies of up to 104MHz are supported allowing equivalent clock rates of 208MHz (104MHz x 2) for Dual Output and 280MHz (70MHz x 4) for Quad SPI when using the Fast Read Quad SPI instructions. These transfer rates can out perform standard Asynchronous 8 and 16-bit Parallel Flash memories. The Continuous Read Mode allows for efficient memory access with as few as 8-clocks of instruction-overhead to read a 24-bit address, allowing true XIP (execute in place) operation.
A Hold pin, Write Protect pin and programmable write protection, with top, bottom or complement array control, provide further control flexibility. Additionally, the device supports JEDEC standard manufacturer and device identification with a 64-bit Unique Serial Number.

根据CLK的极性(两个采样沿,空闲时电平是高是低),SPI可以分4种工作模式(CLK的排列组合),这里不介绍工作模式(因为图也不一定对)。主要说一下以下几点

无论是哪种模式,当采集的时候,电平要保持住,不采集的时候,电平可以改变
由于CLK的存在,采样和变更电平的是要遵守时序的
这里注意一下SDI和SDO的流向,当SCLK上升沿时,对主机M是输入,采样阶段,因此SDI数据是保持住的,当SCLK下降沿时,对主机M是输出,SDO是保持状态
从上面的介绍可以看出,实现SPI最少可以只需要2根线,即SCL和SDA,由SCL提供时序,SDA用来传输数据。这时由于一个时钟周期内只能提供两个边沿,因此只能是一个边沿采样,一个边沿输出(改变电平)。

回到W25Q128上:引脚描述

这里主要介绍几个引脚,IO,写保护,保持。IO这里由于支持3种多路SPI方式,因此当采用标准SPI时,DI脚输入,在CLK上升沿写入地址或数据,DO在CLK下降沿输出。

写保护和保持均由寄存器2控制,当寄存器2设置为双路或4路时,写保护和保持的原有功能失效。

相关文章
|
SQL 运维 Oracle
Oracle运维笔记之EXPDP报错ORA-39077和ORA-31638
Oracle运维笔记之EXPDP报错ORA-39077和ORA-31638
2301 0
Oracle运维笔记之EXPDP报错ORA-39077和ORA-31638
|
9月前
|
数据采集 监控 算法
区块链量化交易系统开发策略详细丨需求步骤丨案例设计丨规则玩法丨成熟源码
策略:建立数据采集系统,获取各种市场数据,包括交易数据、新闻情报、社交媒体消息等。
|
9月前
|
新零售 人工智能 供应链
排队免单返利商城系统开发|成熟源码部署|案例详情
新零售业是零售业发展的重要趋势,它通过技术的创新和变革,重新定义了传统零售业的模式和方式
|
存储 Shell Linux
如何在 Linux 中为现有用户创建主目录?
如何在 Linux 中为现有用户创建主目录?
615 0
|
存储 缓存 监控
提升陪玩平台源码可靠性和可用性,可以采取的方式
提升陪玩平台源码可靠性和可用性,可以采取的方式
|
9月前
|
机器学习/深度学习 算法 JavaScript
JavaScript 深度学习(四)(3)
JavaScript 深度学习(四)
75 1
|
人工智能 算法 物联网
“2+5”:一文说清百度产业智能化
“中国有一句古话叫做‘一生二,二生三,三生万物’。AI虽然不能够产生万物,但是它可以唤醒万物。”7月3日百度开发者大会上,李彦宏说。
“2+5”:一文说清百度产业智能化
|
9月前
|
开发工具 数据安全/隐私保护 git
Git仓库创建及上传数据
Git仓库创建及上传数据
73 0
|
Linux Go
Linux系统之部署Go语言开发运行环境
Linux系统之部署Go语言开发运行环境
205 1
一文了解USB Type-C
现在的USB Type-C已经被广泛使用,移动设备基本都是使用Type-C。它主要是用于快充和作为音频接口。最近欧盟还要求电子设备统一使用Type-C接口,来防止浪费。接下来我们来简单了解这个接口。

热门文章

最新文章