uint
共 66 篇文章
uint 相关的电子技术资料,包括技术文档、应用笔记、电路设计、代码示例等,共 66 篇文章,持续更新中。
宏晶 STC15F2K60S2开发板配套软件源码 基础例程30例
<p>宏晶 STC15F2K60S2开发板配套软件源码 基础例程30例</p><p><br/></p><p>/**********************</p><p>基于STC15F2K60S2系列单片机C语言编程实现</p><p>使用如下头文件,不用另外再包含"REG51.H"</p><p>#include <STC15F2K60S2.h></p><p>****
矩阵式键盘
<p class="MsoPlainText">
include<reg52.h><o:p></o:p>
</p>
<p class="MsoPlainText">
#define uint unsigned int<o:p></o:p>
</p>
<p class="MsoPlainText">
#define uchar unsigned char<o:p></o:p>
</
模拟 PWM 输出控制灯的 10 个亮度级别
LED 一般是恒流操作的,如何改变 LED 的亮度呢?答案就是 PWM 控制。在一定的<br />
频率的方波中,调整高电平和低电平的占空比,即可实现。比如我们用低电平点亮一个 LED<br />
灯,我们假设把一个频率周期分为 10 个时间等份,如果方波中的高低电平占空比是 9:1,<br />
这是就是一个比较暗的亮度,如果方波中高低电平占空比是 10:0,这时,全部是高电平,<br />
灯
一个按键控制的 10 级变速跑马灯试验
在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问<br />
<br />
题。 <br />
<br />
本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。 <br />
这里我们又增加了一个变量 speedlever,来保存当前的速度档次。 <br />
在按键里的处理中,多了当前档次的延时值的设置。 <
12345
<br />
<br />
/****************temic*********t5557***********************************/ <br />
#include <at892051.h> <br />
#include <string.h>
基于单片机的10根线束线缆检测器的源程序 #pragma sfr #pragma DI #pragma EI #pragma NOP //#pragma interrupt INTTM010
基于单片机的10根线束线缆检测器的源程序
#pragma sfr
#pragma DI
#pragma EI
#pragma NOP
//#pragma interrupt INTTM010 isr_INTTM000
#pragma interrupt INTTM80 isr_INTTM80
//#pragma interrupt INTTMH1 isr_INTTMH1
简单的计算器
// 学生管理.cpp : Defines the entry point for the application.<br />
//<br />
<br />
#include "stdafx.h"<br />
#include "resource.h"<br />
<br />
#define MAX_LOADSTRING 100<br />
<br />
// Global Variable
c#简单计算器
// 学生管理.cpp : Defines the entry point for the application.<br />
//<br />
<br />
#include "stdafx.h"<br />
#include "resource.h"<br />
<br />
#define MAX_LOADSTRING 100<br />
<br />
// Global Variable
lena图像的分解将规范化后的图像的数据格式由适合显示图像的uint8格式转换为适合数值处理的double格式
lena图像的分解将规范化后的图像的数据格式由适合显示图像的uint8格式转换为适合数值处理的double格式,再调用二维小波分解函数进行图像分解,最后为了清晰地显示分解图像的塔式结构,在图像的相应区域绘制若干分界线。
51单片机C语言程序设计Proteus仿真实训
基础程序设计 01 闪烁的LED <br />
/* 名称闪烁的LED <br />
说明LED按设定的时间间隔闪烁 <br />
*/ <br />
#include<reg51.h> <br />
#define uchar unsigned char <br />
#define uint u
基于8051+Proteus仿真案例
基础程序设计 01 闪烁的LED <br />
/* 名称闪烁的LED <br />
说明LED按设定的时间间隔闪烁<br />
*/ <br />
#include<reg51.h> <br />
#define uchar unsigned char <br />
#define uint unsigne
#include <stc12c2052AD.H>// 标准库的头文件 #include <intrins.h> #include <absacc.h> #d
#include <stc12c2052AD.H>// 标准库的头文件
#include <intrins.h>
#include <absacc.h>
#define uchar unsigned char
#define uint unsigned int
1602数字时钟
<p class="MsoNormal">
# include < reg52.h ><o:p></o:p>
</p>
<p class="MsoNormal">
# include < 24C02.h><o:p></o:p>
</p>
<p class="MsoNormal">
# define uint unsigned int<o:p></o:p>
</p>
<
调光C程序
/*#include<reg52.h><br />
#define uint unsigned int<br />
#define uchar unsigned char<br />
#define uchar unsigned char<br />
sbit K1=P3^4;<br />
sbit K2=P3^5;<br />
sbit ledr=P1^0;<br />
sbit l
红外遥控RGB
<pre class="prettyprint lang-cpp">#include "STC90.h"
#include < intrins.h >
#define uchar unsigned char
#define uint unsigned int
#define led_port P1
sbit IR_RE = P3^2;
sbit led_r = P1^3;
sbit
很完整的51串口程序 包括如下: 串口中断服务程序
很完整的51串口程序
包括如下:
串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理
出入均设有缓冲区,大小可任意设置。
可供使用的函数名:
char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。
getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义最
#include <reg52.h> #include <stdio.h> #include <string.h> #define uchar unsigne
#include <reg52.h>
#include <stdio.h>
#include <string.h>
#define uchar unsigned char
#define uint unsigned int
#define isp_iap_byte_read 0x1
#define isp_iap_byte_program 0x2
LED电压表源代码
#include "stm8s103f.h"
#include "LEDBL.h"
#include "UART1.h"
#include "LCD1621.h"
//#include "KEY.h"
#define uchar unsigned char
#define uint unsigned int
_Bool KEYC @PB_IDR:4;//COPY
_Bool KEYP @PC_I
S6B0724液晶显示驱动程序 void LCD_BUSY(void) void write_LCD_data(uchar lcd_data) void write_LCD_command(
S6B0724液晶显示驱动程序
void LCD_BUSY(void)
void write_LCD_data(uchar lcd_data)
void write_LCD_command(uchar command)
void clear_lcd(void)
void LCDClearLine(uchar line)
void prints(uchar line,uchar
AVR单片机转速表
/**************************************************************** <br />
外部晶振8M <br />