文件名称:25.KH25L8005_SPIREADandWrite2
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-04-22
- 文件大小:
- 75kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
C8051F04X单片机被配制成4线单主机模式,SPI时钟500KHZ,因为SPI从机翻译主机指令和写相应数据到SPIODATE寄存器需要一定的时间-This program configures a C8051F04x as a 4-wire SPI Single Master.
//
// The SPI clock in this example is limited to 500 kHz when used with the
// SPI0_Slave code example. During a SPI_Read, the slave needs some time to
// interpret the command and write the appropriate data to the SPI0DAT
// register, and the slave no longer has enough time to complete the
// SPI_READ_BUFFER command with a clock greater than 500 kHz. For faster SPI
// clocks, a dummy byte between the command and the first byte of Read data
// will be required.
//
// This example is intended to be used with the SPI0_Slave example
//
// The SPI clock in this example is limited to 500 kHz when used with the
// SPI0_Slave code example. During a SPI_Read, the slave needs some time to
// interpret the command and write the appropriate data to the SPI0DAT
// register, and the slave no longer has enough time to complete the
// SPI_READ_BUFFER command with a clock greater than 500 kHz. For faster SPI
// clocks, a dummy byte between the command and the first byte of Read data
// will be required.
//
// This example is intended to be used with the SPI0_Slave example
(系统自动生成,下载前可以参看下载内容)
下载文件列表
25.KH25L8005_SPI总线读写实验(二)
..................................\KH25L8005
..................................\KH25L8005.M51
..................................\KH25L8005.Uv2.bak
..................................\KH25L8005.hex
..................................\KH25L8005.lnp
..................................\KH25L8005.opt.bak
..................................\KH25L8005.plg
..................................\KH25L8005.uvgui.Administrator
..................................\KH25L8005.uvgui_Administrator.bak
..................................\KH25L8005.uvopt
..................................\KH25L8005.uvproj
..................................\KH25L8005_Opt.Bak
..................................\KH25L8005_Uv2.Bak
..................................\KH25L8005_uvopt.bak
..................................\KH25L8005_uvproj.bak
..................................\STARTUP.A51
..................................\STARTUP.LST
..................................\STARTUP.OBJ
..................................\define.h
..................................\main.LST
..................................\main.OBJ
..................................\main.c
..................................\main.h
..................................\spi.LST
..................................\spi.OBJ
..................................\spi.c
..................................\spi.h
..................................\uart0.LST
..................................\uart0.OBJ
..................................\uart0.c
..................................\uart0.h