代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="spi"
ProjectDir="E:\MYDSP\DSK2812\C\spi\"
ProjectType=Executable
CPUFamily=TMS320C2
spi.plg
礦ision2 Build Log
Project:
E:\常用的程序\单片机接口技术实用子程序配套源代码下载\2.5 SPI总线在单片机系统中的实现\SPI.uv2
Project File Date: 06/08/2005
Output:
Build target 'Target
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 {
spi.lst
C51 COMPILER V7.06 SPI 04/08/2008 14:53:18 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE SPI
OBJECT MODULE PLACED IN SPI
spi.c
//-----------------------函数声明,变量定义--------------------------------------------------------
#include
#include
sbit SCK=P1^0; // 将p1.0口模拟时钟输出
sbit MOSI
spi.asm
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 ;从机输出SPISO送进