代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi.c
#include "spi.h"
#include
unsigned char serial_data;
bit transmit_completed = 0;
bit overrun = 0;
bit fault_tasking = 0;
char SpiErrorCode = 0;
/**
* FUNCTION_PURPOS
spi.lst
C51 COMPILER V8.00 SPI 04/09/2009 08:55:38 PAGE 1
C51 COMPILER V8.00, COMPILATION OF MODULE SPI
OBJECT MODULE PLACED IN spi
spi.h
#ifndef _SPI_H
#define _SPI_H
//--------铠栳觇----------------
#define SPI_ERROR_OVERRUN 0x01
#define SPI_ERROR_MODF 0x02
extern void InitSpi();
extern void SpiWriteByte(unsigned char dat);
ex
spi.h
// spi.h
/***********************************************************************
*
* Author: Greg Hunter
* Company: UTS
* Filenames: spi.h, spi.c
* Date: 2007/9/6
*
spi.h
// spi.h
/***********************************************************************
*
* Author: Greg Hunter
* Company: UTS
* Filenames: spi.h, spi.c
* Date: 2007/9/6
*
spi.tmp
//3.1 MCU串行输入子程序SPIIN
//从X25F008的SPISO线上接收8位数据并放入寄存器R0中的应用子程序如下:
SPIIN:SETB P1.1 ;//使P1.1(时钟)输出为1
CLR P1.2 //选择从机
MOV R1,#08H// ;置循环次数
SPIIN1:CLR P1.1// ;使P1.1(时钟)输出为0
NOP ;延时
NOP
MOV C,P1.3 ;
spi.plg
礦ision3 Build Log
Project:
E:\教程\书程序\第二章\2.5 SPI总线在单片机系统中的实现\SPI.uv2
Project File Date: 06/08/2005
Output:
spi.lnp
"SPI.obj"
TO "SPI"
RAMSIZE(256)
spi.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.s*; *.src; *.a*)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt; *.h; *.inc)
pExt (*.plm)
CppX (*.cpp)
DaveTm {