c51流水灯仿真与程序
对应程序: #include<reg52.h> #define uint unsigned int #define uchar unsigned char uchar code tab[]={ 0x81, 0x42, 0x24, 0x18, }; void del...
对应程序: #include<reg52.h> #define uint unsigned int #define uchar unsigned char uchar code tab[]={ 0x81, 0x42, 0x24, 0x18, }; void del...
#include <stc12c2052AD.H>// 标准库的头文件 #include <intrins.h> #include <absacc.h> #define uchar unsigned char #define uint unsigned ...
/*** *5510单片机测试程序 基本测试成功 2005-8-25 write By CW *** *** *** *** *** ****/ #include <reg52.h> #include <absacc.h> #define ui...
一、模拟时钟:定义变量: uint16_t hour = 10;uint16_t min = 14;uint16_t sec = 15;分别存放时分秒,初始化,并做外部声明,供其他函数使用;初始化定时器TIM7,开启中断,配置为1S进一次中断:在中断服务函数中对时间变量进行模拟时钟计时,完成模拟时钟...
名称:read2543 功能:TLC2543驱动模块 输入参数:port通道号 输出参数:ad转换值 *************************************/ uint read2543(uchar port) { uint ad=0,i CLOC...