代码搜索结果
找到约 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
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
wdtrun.c
/****************************************************************************
* 文件名:WDTRUN.C
* 功能:运行WDT,并控制LED1--LED8显示输出。程序开始先对LED1--LED8闪烁控制,并进行喂
* 狗处理;然后只点亮LED1,并进入死循环,等待WDT复位。
* 说明:
***
m16spi.c
//GCC-AVR application builder : 2007-8-31 18:00:11
// Target : M16
// Crystal: 7.3728Mhz
// 作者:liuweiran
// 根据古欣的程序改
// 功能:SPI主机模式,循环发送从1~255
#include
//SPI initialize
倾角传感器.c
#include
//#include "defs_c51_manio.h"
#include "INTRINS.H"
#define uchar unsigned char
#define uint unsigned int
unsigned int SPI_ReadBits( uchar n );
void SPI_WriteByte( uchar wdat
zlg500.lst
C51 COMPILER V7.06 ZLG500 02/10/2004 11:06:31 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE ZLG500
OBJECT MODULE PLACED IN
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
main.c
#include /* common defines and macros */
#include /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"
void SPI1Init(void)
{
DDRP_
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 ...
halsd.lst
C51 COMPILER V8.01 HALSD 04/17/2008 09:46:24 PAGE 1
C51 COMPILER V8.01, COMPILATION OF MODULE HALSD
OBJECT MODULE PLACED IN .