代码搜索结果
找到约 10,000 项符合
LED 的代码
led.c
#include "./include/led.h"
void InitLed()
{
GPBCON = (GPBCON & ~0x3fc000) | 0x154000;
GPBUP &= ~0x780;
}
void LedPlay(int iLedVal)
{
GPBDAT=(GPBDAT | 0x780) &( ~(( iLedVal & 0x78)
led.v
`timescale 1ns/1ps
module sm_led
(
Clk,Rst,
SM_CS1,SM_CS2, SM_db,
data1,data2
);
input Clk;
input Rst;
output SM_CS1;
output SM_CS2;
output[6:0] SM_db; //7段数码管(不包括小数点)
// M
led.h
///////////////////////////////////////////////////////////////////////////////
// Led.h : header file
// Visual Source Safe: $Revision: 1 $
//
// Led static control. Will display a LED in 4 diffe
led.cpp
///////////////////////////////////////////////////////////////////////////////
// Led.cpp : implementation file
// Visual Source Safe: $Revision: 1 $
//
// Led static control. Will display a LED
led.asm
//input - value to write to LED's is passed in via R4
//output - none - writes lower 8 bits of R4 out to LED latch
#include
#include
.section/pm seg_pmco;
.exte
led.c
/*******************************************
文件:LED.C
环境:编译为ICC AVR6.25A,仿真为AVR Studio4.10
硬件:ATMEGA16芯片
日期:2006年12月10日
功能:驱动开发板上的LED。1. 流水灯 2.闪烁指定的LED
备注:参考《AVR系列单片机C语言编程与应用实例》(清华
led.lis
.module LED.C
.area text(rom, con, rel)
0000 .dbfile C:/icc/include/AVR_PQ1A.h
0000 .dbfunc e Delayus _Delayus
led._c
/*******************************************
文件:LED.C
环境:编译为ICC AVR6.25A,仿真为AVR Studio4.10
硬件:ATMEGA16芯片
日期:2006年12月10日
功能:驱动开发板上的LED。1. 流水灯 2.闪烁指定的LED
备注:参考《AVR系列单片机C语言编程与应用实例》(清华
led.mak
CC = iccavr
CFLAGS = -IC:\icc\include\ -e -DATMEGA -DATMega16 -l -g -Mavr_enhanced
ASFLAGS = $(CFLAGS) -Wa-g
LFLAGS = -LC:\icc\lib\ -g -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bda