代码搜索结果
找到约 10,000 项符合
SPI 的代码
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
/****************************************Copyright (c)**************************************************
** 广州周立功单片机发展有限公司
** 研 究
spi.h
/****************************************Copyright (c)**************************************************
** 广州周立功单片机发展有限公司
** 研 究
spi应用.txt
<mark>spi</mark>通信程序注解
云清燕 发表于 2007-12-18 18:13:00
0
推荐本程序来自我编写的程序(具体程序内容不太一样,但是程序思想是相同的)是关于MCU,<mark>SPI</mark>总线传输程序。
前提是采用3总线方式。主机MOSI,MISO和SCLK,其中对应于从机连接为DIN,DOUT,SCLK,还有片选CS。
SCLK下降沿是主机数据从DIN采样到从机。
SCLK上升沿是从机数据放 ...
spi.v
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 14:56:51 03/19/2009
// Design Name:
// Modul
spi.txt
F240 SPI master/slave example code from the C24x Reference Set, Vol 2, Chapter 5.
All contents (included source, executables, and text)
spi.c
#include
#include "mydeclare.h"
#include "port_def.h"
#include "spi.h"
void spi_send_byte(UCHAR data)
{
SpiSS = 0;
DELAY_US(5);
SPDR = data;
while((SPSR &0x80) ==
spi.h
#ifndef __SPI__
#define __SPI__
void spi_send_byte(UCHAR data);
void spi_send_command(UCHAR *cmdp, UCHAR cmdlen);
#endif