文件名称:spi_execution_plib_examples
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 28kb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
SPI是一个环形总线结构,由ss(cs)、sck、sdi、sdo构成,其时序其实很简单,主要是在sck的控制下,两个双向移位寄存器进行数据交换。
假设下面的8位寄存器装的是待发送的数据10101010,上升沿发送、下降沿接收、高位先发送。
那么第一个上升沿来的时候 数据将会是sdo=1;寄存器=0101010x。下降沿到来的时候,sdi上的电平将所存到寄存器中去,那么这时寄存器=0101010sdi,这样在8个时钟脉冲以后,两个寄存器的内容互相交换一次。这样就完成里一个spi时序。
-SPI bus is a ring structure, by ss (cs), sck, sdi, sdo composition, its timing is actually very simple, mainly under the control of the sck and two bi-directional shift register for data exchange. Assuming the following 8-bit register is loaded to send the data to be 10,101,010, rising to send, receive falling edge, high first sent. Well, the first rising edge to the time data will be sdo = 1 register = 0101010x. Falling edge comes, sdi on the level will be stored to the register, then register at this time = 0101010sdi, so 8 clock pulse later, the contents of two registers to exchange time. This will be completed in a spi timing.
假设下面的8位寄存器装的是待发送的数据10101010,上升沿发送、下降沿接收、高位先发送。
那么第一个上升沿来的时候 数据将会是sdo=1;寄存器=0101010x。下降沿到来的时候,sdi上的电平将所存到寄存器中去,那么这时寄存器=0101010sdi,这样在8个时钟脉冲以后,两个寄存器的内容互相交换一次。这样就完成里一个spi时序。
-SPI bus is a ring structure, by ss (cs), sck, sdi, sdo composition, its timing is actually very simple, mainly under the control of the sck and two bi-directional shift register for data exchange. Assuming the following 8-bit register is loaded to send the data to be 10,101,010, rising to send, receive falling edge, high first sent. Well, the first rising edge to the time data will be sdo = 1 register = 0101010x. Falling edge comes, sdi on the level will be stored to the register, then register at this time = 0101010sdi, so 8 clock pulse later, the contents of two registers to exchange time. This will be completed in a spi timing.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
burst_master
............\build.bat
............\burst_master.mcp
............\burst_master.mcw
............\source
............\......\burst_master.c
burst_slave
...........\build.bat
...........\burst_slave.mcp
...........\burst_slave.mcw
...........\source
...........\......\burst_slave.c
loopback
........\build.bat
........\loopback.mcp
........\loopback.mcw
........\source
........\......\loopback.c
master_slave
............\build.bat
............\master_slave.mcp
............\master_slave.mcw
............\source
............\......\master_slave.c
............\build.bat
............\burst_master.mcp
............\burst_master.mcw
............\source
............\......\burst_master.c
burst_slave
...........\build.bat
...........\burst_slave.mcp
...........\burst_slave.mcw
...........\source
...........\......\burst_slave.c
loopback
........\build.bat
........\loopback.mcp
........\loopback.mcw
........\source
........\......\loopback.c
master_slave
............\build.bat
............\master_slave.mcp
............\master_slave.mcw
............\source
............\......\master_slave.c