搜索结果

找到约 72 项符合 uchar 的查询结果

技术资料 CC1101接收程序及相关电路图

#include"main.h"#include"cc1101.h"#include"lcd1602.h"void main(void){inti;UCHAR leng=0;//待接收字节长度UCHAR TXBuf[8]={0};//8字节,如果需要更长的数据包,请正确设置UCHAR RXBuf[8]={0};l/接收缓存区InitLcd1602();WriteAddressLcd1602(1,0);WriteCharForLCD1602("The CC1101 Test!");WriteAddressLcd160 ...
https://www.eeworm.com/dl/841387.html
下载: 5
查看: 3714

技术资料 基于51单片机的Pt100的温度计程序

#include <reg51.h>#include <absacc.h>#define uchar unsigned char#define uint  unsigned int#define ADC0801 XBYTE[0x7fff]#define disp_dat P1#define LED_n    P2sbit INTR=P3^2;const uchar tab[]={    0xc0,0xf9,0xa4,0xb0,//0~3    0x99,0x92,0x82,0 ...
https://www.eeworm.com/dl/841955.html
下载: 7
查看: 3027

技术资料 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 ...
https://www.eeworm.com/dl/962823.html
下载: 2
查看: 953

单片机编程 TLC2543 中文资料

TLC2543是TI公司的12位串行模数转换器,使用开关电容逐次逼近技术完成A/D转换过程。由于是串行输入结构,能够节省51系列单片机I/O资源;且价格适中,分辨率较高,因此在仪器仪表中有较为广泛的应用。 TLC2543的特点 (1)12位分辩率A/D转换器; (2)在工作温度范围内10μs转换时间; (3)11个模拟输入通道; ...
https://www.eeworm.com/dl/502/27394.html
下载: 127
查看: 1265

VC书籍 名称:read2543 功能:TLC2543驱动模块 输入参数:port通道号 输出参数:ad转换值 *************************************/

名称:read2543 功能:TLC2543驱动模块 输入参数:port通道号 输出参数:ad转换值 *************************************/ uint read2543(uchar port) { uint ad=0,i CLOCK=0 _CS=0 port<<=4 for(i=0 i<12 i++) { if(D_OUT) ad|=0x01 D_IN=(bit)(port&0x80) CLOCK=1 delay(3) CLOCK=0 delay(3) port<<= ...
https://www.eeworm.com/dl/686/249191.html
下载: 114
查看: 1130

源码 12345

/****************temic*********t5557***********************************/    #include   <at892051.h>     #include   <string.h>    #include   <intrins.h>     #include   <stdio.h>     #define    uchar    unsign ...
https://www.eeworm.com/dl/515933.html
下载: 1
查看: 174

Linux/Unix编程 #include "REG51.H" #include <intrins.h> #include "Common.h" //#include "Remote.h" #def

#include "REG51.H" #include <intrins.h> #include "Common.h" //#include "Remote.h" #define OSD_EN //typedef unsigned char uCHAR //#include "T100Data_A.h" //#include "T100Data_PA.h" //#include "T100Data_AU.h" //#include "T100Data_CPT.h" //#include "T100Data_PANASONIC.h" //#include "T100Data_PVI7.h ...
https://www.eeworm.com/dl/619/323087.html
下载: 107
查看: 1158

单片机编程 用定时器以间隔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() {  j=0; i=0;     TMOD=0X01; TH0=(65536-50000)/256; TL ...
https://www.eeworm.com/dl/509595.html
下载: 1
查看: 635

笔记 一个按键控制的 10 级变速跑马灯试验

在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。  本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。  这里我们又增加了一个变量 speedlever,来保存当前的速度档次。  在按键里的处理中,多了当前档次的延时值的设置。  请看程序:  ―― ...
https://www.eeworm.com/dl/516025.html
下载: 1
查看: 99

技术资料 LCD1602+ADC0832制作的数字电压表

//LCD1602+ADC0832制作的数字电压表/接口方式:模拟口线#include<reg52.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned int#define IO_1602 PO//IOsbit RS_1602=P20;sbit RW_1602=P21;sbit E_1602=P22;sbit CS=P10;sbit CLK=P1^1;sbit DIO=P12;
https://www.eeworm.com/dl/841702.html
下载: 2
查看: 3673