代码搜索结果
找到约 10,000 项符合
SPI 的代码
zlg500.c
#include "reg52.h"
#include "string.h"
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
//define spi
#define SPI_REN() IE0=0;EX0=1
#define SPI_RDIS() EX0=0
lpc_main.c
//这一段无需改动
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
typedef unsigned char uint8; /* 无符号8位整型变量 */
typedef signed c
main.c
/*
实验四:
<mark>SPI</mark>接口实险,LED数据管显示。
1、程序通过<mark>SPI</mark>接口输出数据到HC595芯片驱动LED数据管简单显示。
2、内部1 M晶振,程序采用单任务方式,软件延时。
3、进行此实验请插上JP1的所有8个短路块,JP6(<mark>SPI</mark>_EN)短路块。
AVR mega16学习板
www.iccavr.com
2006-01-10
*/
#include ...
main.s
.module main.c
.area data(ram, con, rel)
_disp::
.blkb 2
.area idata
.byte 192,249
.area data(ram, con, rel)
.blkb 2
.area idata
.byte 164,176
.area data(ram, con, rel)
.blkb 2
spitors232.c
SPI to RS232 converter
John F. Fitter says:
These routines are written in Hi-Tech C and are for use with the 'F876. Specificly, they write to a MAX3100 spi->rs232 interface chip.
/************
fs_spi_flashprg.c
/*----------------------------------------------------------------------------
* R T L - F l a s h F i l e S y s t e m
*-----------------------------------------------------------------
lcm.h
#ifndef _LCM_H
#define _LCM_H
/*-SPI相关定义-*/
#define AT91C_SPI_BAUD 500000
#define AT91C_SPI_CS0 0
#define AT91C_SPI_CS1 1
#define AT91C_SPI_CS2 2
#d
ex15_1.c
//********************************************************
//* EX15_1_SPI
//*
readme.txt
**************************************************************************************************************************
Readme File for SPI Master Customer Pack
Created: 11/1/00 ALS
Revised:
readme.txt
**************************************************************************************************************************
Readme File for SPI Master Customer Pack
Created: 11/1/00 ALS
Revised: