代码搜索结果
找到约 10,000 项符合
SPI 的代码
lqspimain.c
/**************************************************************************************
龙丘MC9S12(DG128)多功能开发板
Designed by Chiu Sir
E-mail:chiusir@163.com
软件版本:V1.1
最后更新:2008年11月20日
相关信息参考下列地址:
2.4g_rf.asm
;EMC78P418 Li charge
INCLUDE "418_MAC.asm"
INCLUDE "RAM_define.asm"
ORG 0X000
JMP _START
;-------------------------------------------------
;TIMEROUT INTE
p18_spi.h
#ifndef _INC_P18_SPI
#define _INC_P18_SPI
void SPI_Init( void );
void SPI_Putc( unsigned char data );
unsigned char SPI_Getc( void );
#endif
cc2500spi.c
// WWW.MCURF.COM
#include
#include "spi_wr.h"
#include "regssrf04.h"
#include "IO.H"
void SPI_WAIT()
{
unsigned char i;
for (i=0; i
lqspimain.c
/**************************************************************************************
龙丘MC9S12(DG128)多功能开发板
Designed by Chiu Sir
E-mail:chiusir@163.com
软件版本:V1.1
最后更新:2008年11月20日
相关信息参考下列地址:
7022b读写.txt
;*******************4.21日*****************8************
写寄存器,a中放命令字;20h21h22h存放写的数据.r0存首地址;r3放字节数.
写校正值46318c,进26h
mov 20h,#46h
mov 21h,#31h
mov 22h,#8ch
mov a ,#0a6h
lcall wr_spi
wr_spi:
spi_dma_slave.h
#ifndef _OKOLLE_SPI1_H_
#define _OKOLLE_SPI1_H_
#define CMD_SPI_CANCEL 0x90//
#define CMD_SPI_RESET 0x91//
#define SPI_SEND_STATUS 1
#define SPI_RECEIVE_STATUS 2
#define SPI_NONE_STATUS 3
//struct
avrspi.txt
本人的一个SPI的实例,通过SPI实现两机通讯,
采用中断方式实现双全工通讯。
本例用两MEGA8515实现,连接为:
MISO----MISO
MOSI----MOSI
SCK ----SCK
/SS ----/SS
将要发送的数据加载到发送缓冲区的函数fill_tx_buffer
和从接收缓冲区读出数据的函数read_rx_buffer未给出,
根据各自需求
原串口通信.c
//通过SPI实现两机通讯, //
//采用中断方式实现双全工通讯。 //
//MISO----MISO //
//MOSI----MOSI //
//SCK ----SCK //
///SS ----/SS //
//将要发送的数据加载到发送缓冲区的函数fill_tx_buffer //
//和从接收缓冲区读出数据的函数read_rx_buffer未给出, //
//根据各自需求
nrf24l01.asm
;*****************************************************************
;Function:SPI_RW
;Description:SPI read write 1 byte data
;input:spi_data
;output:spi_data
;*************************************