文件名称:SPI
-
所属分类:
- 标签属性:
- 上传时间:2013-08-02
-
文件大小:106.91kb
-
已下载: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
SPI/HEAP.S
SPI/IRQ.S
SPI/Last Loaded SPI.DBK
SPI/LPC2138.H
SPI/main.c
SPI/main.crf
SPI/main.d
SPI/main.i
SPI/main.o
SPI/main.txt
SPI/SPI.axf
SPI/SPI.DSN
SPI/SPI.hex
SPI/SPI.htm
SPI/SPI.lnp
SPI/SPI.map
SPI/SPI.Opt
SPI/SPI.plg
SPI/SPI.PWI
SPI/SPI.sct
SPI/SPI.tra
SPI/SPI.Uv2
SPI/SPI_Opt.Bak
SPI/SPI_Target 1.dep
SPI/SPI_Uv2.Bak
SPI/STACK.S
SPI/Startup.lst
SPI/Startup.o
SPI/Startup.s
SPI/TARGET.C
SPI/TARGET.H
SPI
SPI/HEAP.S
SPI/IRQ.S
SPI/Last Loaded SPI.DBK
SPI/LPC2138.H
SPI/main.c
SPI/main.crf
SPI/main.d
SPI/main.i
SPI/main.o
SPI/main.txt
SPI/SPI.axf
SPI/SPI.DSN
SPI/SPI.hex
SPI/SPI.htm
SPI/SPI.lnp
SPI/SPI.map
SPI/SPI.Opt
SPI/SPI.plg
SPI/SPI.PWI
SPI/SPI.sct
SPI/SPI.tra
SPI/SPI.Uv2
SPI/SPI_Opt.Bak
SPI/SPI_Target 1.dep
SPI/SPI_Uv2.Bak
SPI/STACK.S
SPI/Startup.lst
SPI/Startup.o
SPI/Startup.s
SPI/TARGET.C
SPI/TARGET.H
SPI
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.