代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi.c
//pin脚定义
//SD卡使用SPI模式进行读写
//CS ->P2.2
//MOSI->P2.3
//CLK ->P2.4
//MISO->P2.6
//#include "spi.h"
//用SPI发送一个字节数据
void write_byte_spi(uchar dat)
{
uchar i;
for (i=0;i
spi.h
//pin脚定义
//SD卡使用SPI模式进行读写
//CS ->P2.2
//MOSI->P2.3
//CLK ->P2.4
//MISO->P2.6
sbit CS =P2^2;
sbit SI =P2^3;
sbit SCK=P2^4;
sbit SO =P2^6;
#define CS_SD_EN (CS=0) //为低时表示片选
#defi
spi.c
#include "DSP281x_Device.h"
#include "DSP281x_Examples.h"
Uint16 table[10]={0x0000,0x00001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,0x0008,0x0009};
void delay();
void spi_fifo_init(void);
v
spi.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="spi"
ProjectDir="C:\ti\myprojects\spi\"
ProjectType=Executable
CPUFamily=TMS320C28X
spi.c
#include "my_head.h"
/*********************************************/
#define MOSI P1_5
#define MISO P1_6
#define SPI_SCK P1_7
//-------------------------
void Init_spi(voi
spi.h
/*
LPCUSB, an USB device driver for LPC microcontrollers
Copyright (C) 2006 Bertrik Sikken (bertrik@sikken.nl)
Redistribution and use in source and binary forms, with or without
modification, ar