- 博客(11)
- 资源 (68)
- 收藏
- 关注
原创 148编码键盘.C
#include #include #include "delayms.h"uchar n=0;uchar down=0;static uchar R,A,B;static uchar x1,y1,x2,y2;static uchar o_k=0;uchar table[]={0,0,0,0};//-----------------------------------外中断初始化-------
2009-11-25 16:58:00 498 1
原创 悬挂画圆.C
#include "iom16v.h"#include "math.h"#include "macros.h"#include "delayms.h"#include "液晶显示模块.C"#include "148编码键盘.C"#define Lx 55 //x轴总长度(cm)#define Ly 60 //y轴总长度(cm)#define Ax1 (Ax+10)#define Ay1 (Ly-
2009-11-25 16:56:00 617
原创 ADC_模块.C
//包含所需头文件#include #include /*---------------------------------------------------void init_devices(void){ CLI(); //禁止所有中断 adc_init(); SEI();//开全局中断}----------------------------------------------------
2009-11-25 16:51:00 658
原创 模拟路灯控制系统.C
#include "iom16v.h"#include "macros.h"#include "delayms.h"#include "avrbit.h"#include "时钟模块.C"#include "液晶显示模块.C"#include "ADC_模块.c"//变量定义=============================================================
2009-11-25 16:48:00 1466 14
原创 macros.h
#ifndef __MACROS_H#define __MACROS_H 1#if !defined(_AVR)#error "This file should only be used with ICCV7 for AVR"#endif/* FOR ATMEL AVR and TINY AVR ONLY! */#ifndef BIT#define BIT(x) (1 #endif
2009-09-28 20:01:00 5150
原创 iom16v.h
#ifndef __iom16v_h#define __iom16v_h#define uchar unsigned char#define uint unsigned int#ifndef BIT#define BIT(x) (1 #endif /* ATmega16 header file for * ImageCraft ICCAVR compi
2009-09-28 19:59:00 2452
原创 avrbit.h
#ifndef __avrbit_h#define __avrbit_h#ifndef BIT#define BIT(x) (1 #endif//*******PA口**********#define PA0_1 PORTA|=BIT(0)#define PA1_1 PORTA|=BIT(1)#define PA2_1 PORTA|=BIT(2)#define PA3_1 PORTA|
2009-09-28 19:57:00 642
原创 时钟模块.C
//---------------------------包含所需头文件-----------------------------#include /*------------------------------------------------------------------------void init_devices(void){ CLI(); //----------------
2009-09-28 19:56:00 479
原创 液晶显示模块.C
/*------------------------包含头文件----------------------------*/#include #include #include /*---------------------------------初始化函数--------------------------void init(){ DDRA=0XFF; PORTA=0X0F; D
2009-09-28 19:55:00 442
原创 DS18B20温度模块.C
//----------------------------包含头文件----------------------#include #include #include #define CLR_DIR_1WIRE DDRB &=~ BIT(4) //只要修改这里的参数就可以了!呵呵! #define SET_DIR_1WIRE DDRB |= BIT(4) //里面什么都
2009-09-28 19:53:00 671
原创 AVR----矩阵键盘实验
#include #include #define uchar unsigned char#define uint unsigned int//////////////延时毫秒函数//////////////// void delay(uint ms){ uint i,j; for(i=0;i { for(j=0;j }}//、、、、、、读取键盘操作函数
2009-08-14 12:13:00 594 1
DH11 程序(以SF板为例)[包含单字节二进制转换BCD码程序].rar
2009-08-08
12864LCD 液晶手册
2009-07-26
74系列芯片大全.rar
2009-07-23
iccv7avrV7.22.rar
2009-07-20
Ucos_II 2.52源码中文注释资料
2009-12-01
深入浅出ARM7-LPC213x_214x(下).pdf
2009-10-10
深入浅出ARM7-LPC213x_214x(上).pdf
2009-10-10
凌阳-电子竞赛文集--基于凌阳SPCE061A的语音控制小车设计
2009-08-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人