代码搜索:SPI
找到约 10,000 项符合「SPI」的源代码
代码结果 10,000
www.eeworm.com/read/480930/1310205
h spi.h
#ifndef __ASM_ARCH_SPI_H
#define __ASM_ARCH_SPI_H
#include
#include
#define GPIO_TC_SPIMISO (GPIO_MODE_ALT0 | GPIO_PULLUP_DIS | GPIO_E11)
#define GPIO_TC_SPIMOSI
www.eeworm.com/read/478101/1354310
tmp 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 ;
www.eeworm.com/read/478101/1354312
plg spi.plg
礦ision2 Build Log
Project:
C:\Documents and Settings\ntscking\桌面\书程序\第二章\2.5 SPI总线在单片机系统中的实现\SPI.uv2
Project File Date: 03/29/2005
Output:
www.eeworm.com/read/478101/1354315
opt 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 {
www.eeworm.com/read/478101/1354316
lst spi.lst
C51 COMPILER V7.06 SPI 03/29/2005 14:08:44 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE SPI
OBJECT MODULE PLACED IN SPI
www.eeworm.com/read/478101/1354317
c spi.c
//-----------------------函数声明,变量定义--------------------------------------------------------
#include
#include
sbit SCK=P1^0; // 将p1.0口模拟时钟输出
sbit MOSI
www.eeworm.com/read/478101/1354318
asm spi.asm
3.1 MCU串行输入子程序<mark>SPI</mark>IN
从X25F008的<mark>SPI</mark>SO线上接收8位数据并放入寄存器R0中的应用子程序如下:
<mark>SPI</mark>IN:SETB P1.1 ;使P1.1(时钟)输出为1
CLR P1.2 ;选择从机
MOV R1,#08H ;置循环次数
<mark>SPI</mark>IN1:CLR P1.1 ;使P1.1(时钟)输出为0
NOP ;延时
NOP
MOV C,P1.3 ;从机输出<mark>SPI</mark>SO送进 ...
www.eeworm.com/read/477919/1355120
h spi.h
/*
This file defines the interface to the lpc22xx SPI module.
Copyright (C) 2006 Embedded Artists AB (www.embeddedartists.com)
This file may be included in software not adhering to the G
www.eeworm.com/read/477919/1355178
h spi.h
/*
* SPI Masks
*/
#ifndef __BFIN_PERIPHERAL_SPI__
#define __BFIN_PERIPHERAL_SPI__
/* SPI_CTL Masks */
#define TIMOD 0x0003 /* Transfer Initiate Mode */
#define RDBR_CORE 0x0000 /* RDBR Read Ini