搜索结果
找到约 27 项符合
intrins 的查询结果
按分类筛选
单片机编程 Keil C51库函数参考
第五章 Keil C51库函数参考
C51强大功能及其高效率的重要体现之一在于其丰富的可直接调用的库函数,多使用库函数使程序代码简单,结构清晰,易于调试和维护,下面介绍C51的库函数系统。
1. 第一节 本征库函数(intrinsic routines)和非本征证库函数
C51提供的本征函数是指编译时直接将固定的代码插 ...
单片机开发 W29C040(512K FLASH)读写程序2007-09-10 11:16很是激动
W29C040(512K FLASH)读写程序2007-09-10 11:16很是激动,去年用AT89S52捣弄了半年也没搞定,这次换成C8051f040,也不知道是天见我可怜还是狗运,终于把数据写进去了。想当时到处找的程序都没用,郁闷非常,这次走运成功,拿出来晒晒太阳(虽然也是该的别人的程序,但是好歹能用)。
/*W29C040(512K FLASH)读写程序*/
#incl ...
技术资料 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;
PCB图/BOM单/原理图 单片机课程设计
#include<reg52.h>&nbsp;
#include<intrins.h>
#define LED P0
sbit KEY0=P2^0; &nbsp;//定义按键输入端口 A &nbsp;&nbsp;
sbit KEY1=P2^1; &nbsp;//定义按键输入端口 B &nbsp;&nbsp;
sbit KEY2=P2^2; &nbsp;//定义按键输入端口 C
unsigned int Led_table[8]={0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00};
char Led_num=0 ...
技术资料 基于51+ADC0832+LCD1602+仿真图四位电压显示测试
/说明:调用VR2时,ADC0832将模拟电压转换为数字电压并显示在LCD1602上//********************************#include<reg51.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned int#define delay4us(){nop_();_nop_():nop_();_nop_;}//********************************//ADC引脚定义//************ ...
技术资料 SHT10+LCD1602温湿度测量及显示(完整版)
#include<reg51.h>#include <intrins.h>#include<math.h>#include <stdio.h>#define LCD_DBPOsbitLCD_RS=P200;sbit LCD_RW=P2A1;sbitLCD_E=P22;#define uchar unsigned char#define uint unsigned intvoid LCD_init(void);/初始化函数void LCD_write_command(uchar command);//写指令函数void LCD_write_data(uchar dat) ...
单片机编程 数字钟显示电路
SHUZIZHONG显示电路
源程序如下:
#include <reg51.h>#include <intrins.h>
unsigned char data dis_digit;
unsigned char code dis_code[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char data dis_buf[16];unsigned char data dis_index;char hour,min,sec,wang,yea ...
单片机编程 C51单片机模拟I2C总线的C语言实现
EEPROM为ATMEL公司的AT24C01A。单片机为ATMEL公司的AT89C51。2.&nbsp;软件说明 C语言为Franklin C V3.2。将源程序另存为testi2c.c,用命令C51 testi2c.cL51 TESTI2C.OBJOHS51 TESTI2C编译,连接,得到TESTI2C.HEX文件,即可由编程器读入并进行写片,实验。3.源程序#include <reg51.h>#include <intrins.h> #define uchar u ...
技术资料 按键可调ds1302时钟显示
按键可调ds1302时钟显示(亲测可用)*实验说明:本例程为四键控制时钟,k1键按下后进入时钟的调整状态,k2按下时钟上*k3按下时钟下调,调好设定的时钟后按下k4时钟进入走时状态#include<reg52.h>#include <intrins.h>sbit SCK=P36;/时钟sbit SDA=P34;//数据sbit RST=P35;//DS1302复位sbit k1=P100;//sbit k2=P1A1;sbit ...
技术资料 温度控制的PID算法的C语言程序.
#nclude<reg51.h>#include<intrins.h>#销nclude<math.h>#include<string.h>struct PID{unsigned int SetPoint;//设定目标 Desired Value unsigned int Proportion;//比例常数Proportional Const unsigned int integral;//积分常数Integral Const unsigned int Derivative://微分常数Derivative Const unsigned int LastE ...