搜索结果

找到约 165 项符合 unsigned 的查询结果

驱动编程 //下面是画圆的程序

//下面是画圆的程序, //画线、画圆、画各种曲线其实都很简单,归根到底就是x、y的二元方程嘛 //对算法感兴趣的话建议去找本《计算机图形学》看看,不是卖关子哦。实在是几句话说不清除,呵呵 // ---------------------------------------------- //字节 void circleDot(unsigned char x,unsigned char y,char xx,char ...
https://www.eeworm.com/dl/618/382229.html
下载: 37
查看: 1059

技术资料 msp430基础程序集合

LED 程序 P4OUT=BitCode; //输出位码 LED 流水灯实验 P2OUT=Code[Bit[i]]; //输出段码 #include "msp430x14 ...
https://www.eeworm.com/dl/945657.html
下载: 8
查看: 6248

单片机开发 PC与单片机双向通讯智能温控程序 #include <AT89X51.H> #include <intrins.h> #define Key_UP P1_0 #def

PC与单片机双向通讯智能温控程序 #include <AT89X51.H> #include <intrins.h> #define Key_UP P1_0 #define Key_DOWN P1_1 #define Key_SET P1_2 #define RelayOutPort P2_0 #define LEDPort P0 #define DELPort P2_1 #define LEDTwoC P3_6 #define LEDThreeC P3_7 #define TMPort P2_7 #define INBUF_LEN 5 // ...
https://www.eeworm.com/dl/648/397163.html
下载: 61
查看: 1110

单片机编程 AVR单片机数码管秒表显示

#include<iom16v.h> #include<macros.h> #define uint unsigned int #define uchar unsigned char uint a,b,c,d=0; void delay(c) { for for(a=0;a<c;a++) for(b=0;b<12;b++); }; uchar tab[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,
https://www.eeworm.com/dl/502/28551.html
下载: 25
查看: 1125

Linux/Unix编程 帧缓冲#include <stdio.h> #include <stdlib.h> #include <string.h> #include <s

帧缓冲#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <asm/page.h> #include <linux/fb.h> #define TRUE 1 #define FALSE 2 //a framebuffer device structure typed ...
https://www.eeworm.com/dl/619/386216.html
下载: 187
查看: 1129

单片机开发 内容摘要: LHD6000主板主芯片程序 ISD1730时序说明: 参考:void Send_1Byte(uchar ucData_s)和uchar Receive_1Byte(void)的说明.

内容摘要: LHD6000主板主芯片程序 ISD1730时序说明: 参考:void Send_1Byte(uchar ucData_s)和uchar Receive_1Byte(void)的说明. 应先发"RESET"命令再发"PWR_UP"命令,后发"RESET"命令可能不正常工作. 1730最高地址只有0xFF,所以对指定地址的操作函数的参数使用了"unsigned char"类型, 17系列的其它型号可能才用得到"unsigne ...
https://www.eeworm.com/dl/648/488679.html
下载: 105
查看: 1112

单片机编程 51单片机驱动步进电机(含电路图和C语言源程序代码)

51单片机驱动步进电机(含电路图和源程序代码) 源程序:stepper.c stepper.hex /* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */ #i nclude c:\mc5151io.h /* include i/o header file */ #i nclude c:\mc5151reg.h register unsigned char j,flag1,temp; registe ...
https://www.eeworm.com/dl/502/31601.html
下载: 200
查看: 1211

单片机开发 很完整的51串口程序 包括如下: 串口中断服务程序

很完整的51串口程序 包括如下: 串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理 出入均设有缓冲区,大小可任意设置。 可供使用的函数名: char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。 getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义 ...
https://www.eeworm.com/dl/648/307943.html
下载: 113
查看: 1111

单片机开发 本代码包为本人的一篇文章<一个占用内存极少的菜单系统的实现>在在PC上的测试移植代码。 ------------------------------ Menu_Src目录为Menu的源

本代码包为本人的一篇文章<一个占用内存极少的菜单系统的实现>在在PC上的测试移植代码。 ------------------------------ Menu_Src目录为Menu的源代码 Ks0108.C的void Display_Locate(unsigned char DisplayData, unsigned char X, unsigned char Y)函数为最底层的显示函数。 该函数调用LCD模拟函数来完成显示。 KeyScan.C ...
https://www.eeworm.com/dl/648/377467.html
下载: 29
查看: 1109

单片机编程 单片机C语言(for)延时计算

C程序中可使用不同类型的变量来进行延时设计。经实验测试,使用unsigned char类型具有比unsigned int更优化的代码,在使用时应该使用unsigned char作为延时变量。  以某晶振为12MHz的单片机为例,晶振为12MHz即一个机器周期为1us。  ...
https://www.eeworm.com/dl/510684.html
下载: 1
查看: 69