代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi.c
#define SPI//定义SPI总线函数:写入地址和数据到寄存器与读出数据;延时程序
#include "reg51.h"
#include "intrins.h"
#include "absacc.h"
#include "io.h"//AT89C2051的IO定义
#include "spi.h"//将SPI子函数定义为外部函数
#include "sub.h"//激活子函
spi.lst
C51 COMPILER V8.02 SPI 11/29/2006 17:29:51 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE SPI
OBJECT MODULE PLACED IN .\o
spi.h
#ifdef SPI
#define EXTSPI
#else
#define EXTSPI extern
#endif
//定义子函数为外部函数
EXTSPI void writedata(unsigned char dat,unsigned char num);
EXTSPI unsigned char readdata();
spi.asm
*********************************************************************
* Filename SPI.ASM ----- TMS320C54x code for accessing SPI EEPROMs *
* Author: Ruben D. Perez
spi.asm
*********************************************************************
* Filename SPI.ASM ----- TMS320C54x code for accessing SPI EEPROMs *
* Author: Ruben D. Perez
spi.h
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2005.2.26
\************************
spi.c
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2005.2.26
\************************
spi.c
//======================================================================
// Name : SPI.c
// Date : 2007/03/12
// Author : Xu
// Comment: Driving MCP41010
// SPIMOSI0(GPE12) working
spi程序.txt
#include "reg51.h"
#include "intrins.h"
#define X24C44_WRDS 0x80 //RESET WRITE ENABLE LATCH
#define X24C44_STO 0x81 //TRANSFERS FROM RAM TO EEPROM
#define X24C44_WRITE 0x83 //RAM WRITE
#define X2