文件名称:SPI
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-08-02
- 文件大小:
- 107kb
- 下载次数:
- 0次
- 提 供 者:
- 宋**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
5. SPI程序设计与电路仿真
SPI是全双工的同步串行接口,一根SPI总线可以连接多个主机和多个从机,但是在同一时刻只允许有一个主机操作总线。在数据传输过程中,主机总是向从机发送一个字节的数据,而从机也是总是向主机发送1个字节数据(主机通过MISO接收数据)。
定义74HC595片选端口,通过PINSEL0、PINSEL1寄存器设置SPI引脚接口,通过设置IO0DIR驱动74HC595的接口,初始化SPI接口,发送显示数据,片选清零寄存器,等待SPIF置位,等待数据发送完毕。使用while循环,发送数据显示数据,运用延时程序使显示更加稳定易用。
-5. SPI program design and circuit simulation SPI is a full duplex synchronous serial interface, an SPI bus can connect multiple hosts and multiple slaves, but at the same time allowing only one host operating bus. During data transfer, the master to the slave always sends a byte of data, but also the slave always sends a byte to the host data (host via MISO receives data). Definition 74HC595 chip select port via PINSEL0, PINSEL1 register setting SPI pin interface, driven by setting IO0DIR 74HC595 interface to initialize the SPI interface to send display data, chip select register is cleared, waiting for SPIF bit waiting for data transmission is completed. Use a while loop to send data display data, using delay routine makes the display more stable and easy to use.
SPI是全双工的同步串行接口,一根SPI总线可以连接多个主机和多个从机,但是在同一时刻只允许有一个主机操作总线。在数据传输过程中,主机总是向从机发送一个字节的数据,而从机也是总是向主机发送1个字节数据(主机通过MISO接收数据)。
定义74HC595片选端口,通过PINSEL0、PINSEL1寄存器设置SPI引脚接口,通过设置IO0DIR驱动74HC595的接口,初始化SPI接口,发送显示数据,片选清零寄存器,等待SPIF置位,等待数据发送完毕。使用while循环,发送数据显示数据,运用延时程序使显示更加稳定易用。
-5. SPI program design and circuit simulation SPI is a full duplex synchronous serial interface, an SPI bus can connect multiple hosts and multiple slaves, but at the same time allowing only one host operating bus. During data transfer, the master to the slave always sends a byte of data, but also the slave always sends a byte to the host data (host via MISO receives data). Definition 74HC595 chip select port via PINSEL0, PINSEL1 register setting SPI pin interface, driven by setting IO0DIR 74HC595 interface to initialize the SPI interface to send display data, chip select register is cleared, waiting for SPIF bit waiting for data transmission is completed. Use a while loop to send data display data, using delay routine makes the display more stable and easy to use.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SPI\CONFIG.H
...\HEAP.S
...\IRQ.S
...\Last Loaded SPI.DBK
...\LPC2138.H
...\main.c
...\main.crf
...\main.d
...\main.i
...\main.o
...\main.txt
...\SPI.axf
...\SPI.DSN
...\SPI.hex
...\SPI.htm
...\SPI.lnp
...\SPI.map
...\SPI.Opt
...\SPI.plg
...\SPI.PWI
...\SPI.sct
...\SPI.tra
...\SPI.Uv2
...\SPI_Opt.Bak
...\SPI_Target 1.dep
...\SPI_Uv2.Bak
...\STACK.S
...\Startup.lst
...\Startup.o
...\Startup.s
...\TARGET.C
...\TARGET.H
SPI