文件名称:spi_verilog
-
所属分类:
- 标签属性:
- 上传时间:2015-12-03
-
文件大小:7.67kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在SPI操作中,最重要的两项设置就是时钟极性(CPOL或UCCKPL)和时钟相位(CPHA或UCCKPH)。时钟极性设置时钟空闲时的电平,时钟相位设置读取数据和发送数据的时钟沿。
主机和从机的发送数据是同时完成的,两者的接收数据也是同时完成的。所以为了保证主从机正确通信,应使得它们的SPI具有相同的时钟极性和时钟相位。
-In more details:
1. The master pulls SSEL down to indicate to the slave that communication is starting (SSEL is active low).
2. The master toggles the clock eight times and sends eight data bits on its MOSI line. At the same time it receives eight data bits the slave on the MISO line.
3. The master pulls SSEL up to indicate that the transfer is over.
主机和从机的发送数据是同时完成的,两者的接收数据也是同时完成的。所以为了保证主从机正确通信,应使得它们的SPI具有相同的时钟极性和时钟相位。
-In more details:
1. The master pulls SSEL down to indicate to the slave that communication is starting (SSEL is active low).
2. The master toggles the clock eight times and sends eight data bits on its MOSI line. At the same time it receives eight data bits the slave on the MISO line.
3. The master pulls SSEL up to indicate that the transfer is over.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
verilog/spi_clgen.v
verilog/spi_defines.v
verilog/spi_shift.v
verilog/spi_top.v
verilog/timescale.v
verilog
verilog/spi_defines.v
verilog/spi_shift.v
verilog/spi_top.v
verilog/timescale.v
verilog
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.