搜索结果
找到约 66 项符合
uint 的查询结果
按分类筛选
技术资料 51单片机C语言程序设计Proteus仿真实训
基础程序设计 01 闪烁的LED 
/*  名称闪烁的LED 
 说明LED按设定的时间间隔闪烁 
*/ 
#include<reg51.h>&nbsp;
#define uchar unsigned char&nbsp;
#define uint unsigned int&nbsp;
sbit LED=P1^0;&nbsp;
//延时&nbsp;
void DelayMS(uint x)&nbsp;{&nbsp;
&nbsp;uchar i;&nbsp;
&nbsp;w ...
单片机编程 MEGA16制作的电子时钟(附仿真图+源代码)
#include <iom16v.h>
#include <macros.h>
#define uchar unsigned char
#define uint unsigned int
uchar
num,miao,fen,shi,miaoge,miaoshi,fenge,fenshi,shig
技术资料 stm32cubeMX串口使用文档
一建立STM32cubeMX工程1.建立新工程,选择芯片STM32F302CCTx2. 在Pinout 中时钟配置为高速外部时钟, UART配置为异步通信, cube 会自动分配引脚。3.Clock Configuration 中配置如下4.configuration 中点击USART1可进入配置在USART1 configuration 中Parameter Settings 可以配置波特率,发送数据字长,奇偶校验位和停止位 ...
嵌入式/单片机编程 #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
#define isp_iap_sector_erase 0x3
#define wait_time 0x1
技术资料 nrf24L01发送程序
本内容提供nrf24L01发送程序,欢迎大家下载学习,代码如下:
#include
#include
typedef unsigned char uchar;
typedef unsigned char uint;
//****************************************IO端口定义***************************************
sbit MISO =P1^2;
sbit MOSI =P3^2;
sbit SCK =P1^6;
sbit CE =P1^5;
sbit ...
技术资料 2401源码
// 包含头文件
//------------------------------------------------------------------------------------
//是模拟 IO, 主 IIC
#include "BasType.h"
#include "RegDefs.h" // SFR declarations
#include "intrins.h"
extern void msec(unsigned int x);
sbit ht2402_data = P2^0;
sbit ht2402_clk = ...
源码 矩阵式键盘
include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
uint temp,aa,wang,qian,bai,shi,ge;
sbit dula=P2^6;
sbit wela=P2^7;
uchar code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void display( uint wa ...
技术资料 基于IAR的CC2530关于Flash的读写程序
# include <iocc2530.h># include <string.h># define uintunsigned int# define uchar unsigned char# define uint8 unsigned char# define uint16unsigned int# ifndef BV# define Bv(n)(1 << (n))fendif# define st (x)do (x} while (LINE==-1)/* SPI settings*/# define HAL SPI CLOCK POL LO0x00fdefine HAL SPI CLOCK ...
C/C++语言编程 cs5460a程序(C程序源代码)
#include <reg51.h>#include <main.h>#include <interrupt.h>
cs5460a应用电路(含源程序)bit code table_odd_even_bit[16]={0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0};
extern uchar rs485_timeout,pointer_buf485;extern uchar rs485_buf[MAX_485_LEN];extern uchar idata spi_buf[MAX_SPI_LEN];extern uchar pointer_send,send_l ...
单片机编程 用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uint i,j;
sbit dula=P2^6;
sbit wela=P2^7;
uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,
0x7d,0x07,0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void main()
{&nbsp;
j=0;
i=0;
&nbsp; &nbsp; TMOD=0X01;
TH0=(65536-50000)/256;
TL ...