资源简介
pic解1527,,代码很好用,已经量产,需要的拿去;使用的单片机型号为PIC16F630;
代码片段和文件信息
/*
;======================硬件结构======================
;
; __________
;
;
*/
//8路控制程序
//
#include
__CONFIG( WDTDIS & PWRTEN &INTOSCIO & MCLRDIS & BOREN & CPD & CPROTECT);
#define uchar unsigned char
#define uint unsigned int
#define rfin RA0
#define learnkey RA5
#define LED RA4
#define VT RA1
#define OUT1 RC2
#define OUT2 RC1
#define OUT3 RC0
#define OUT4 RA2
#define L_M RC5
#define max_how 15
//学习变量
uchar learnbuf0;
uchar learnbuf1;
uchar learnbuf2;
//===================//
bit learnf;
bit fun_out;
bit learn_ok;
bit fun_ok;
//========================//
//记时间变量
uchar temp0;
uchar temp1;
uchar temp2;
uchar out_temp0;
uchar out_temp1;
评论
共有 条评论