搜索结果
找到约 1,652 项符合
Run-Time 的查询结果
单片机编程 XA-S3 I2C driver software
This application note demonstrates how to write an Inter Integrated Circuit bus driver (I2C) for the XA-S3 16-bitMicrocontroller from Philips Semiconductors.Not only the driver software is given. This note also contains a set of (example) interface routines and a smalldemo application program. All t ...
单片机编程 Using the 87LPC76X microcontro
I2C interface, is a very powerful tool for system designers. Theintegrated protocols allow systems to be completely software defined.Software development time of different products can be reduced byassembling a library of reusable software modules. In addition, themultimaster capability allows rapid ...
单片机编程 DS1820 C51 子程序 (一线数据传输)
//芯片资料请到www.elecfans.com查找
//DS1820 C51 子程序//这里以11.0592M晶体为例,不同的晶体速度可能需要调整延时的时间//sbit DQ =P2^1;//根据实际情况定义端口
typedef unsigned char byte;typedef unsigned int  word;
//延时void delay(word useconds){  for(;useconds>0;useconds--);}
//复位byte ow_re ...
单片机编程 采用18b20芯片的温度测量C51源程序
#include <reg51.h>#include<intrins.h>
#define&nbsp;&nbsp; BUSY1&nbsp;&nbsp;&nbsp; (DQ1==0) sbit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DQ1&nbsp;&nbsp;&nbsp; =&nbsp; P0^4;
unsigned char idata TMP; unsigned char idata TMP_d; unsigned char f; void wr_ds18_1(char dat);unsigned char rd_ds18_1();
/*************** ...
单片机编程 提高PLC程序运行速度的几种编程方法
PLC 以 其 可靠性高、抗干扰能力强、配套齐全、功能完善、适应性强等特点,广泛应用于各种控制领域。PLC作为通用工业控制计算机,是面向工矿企业的工控设备,使用梯形图符号进行编程,与继电器电路相当接近,被广大工程技术人员接受。但是在实际应用中,如何编程能够提高PLC程序运行速度是一个值得我们思考研究的问题。1 PL ...
单片机编程 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 ...
单片机编程 PLC TM卡开发系统汇编程序(ATM8051)
PLC TM卡开发系统汇编程序(ATM8051)
;***************** 定义管脚*************************SCL BIT P1.0SDA BIT P1.1GC BIT P1.2BZ BIT P3.6LEDI BIT P1.4LEDII BIT P1.5OK BIT 20H.1OUT1 BIT P1.3OUT2 BIT P1.0OUT3 BIT P1.1RXD BIT P3.0TXD BIT P3.1PCV BIT P3.2WPC BIT P3.3RPC BIT P3.5LEDR BIT P3.4LEDL BIT P3.6TM B ...
单片机编程 用单片机配置FPGA—PLD设计技巧
用单片机配置FPGA—PLD设计技巧
Configuration/Program Method for Altera Device
Configure the FLEX Device
You can use any Micro-Controller to configure the FLEX device–the main idea is clocking in ONE BITof configuration data per CLOCK–start from the BIT 0&#1048708;The total Configuration time–e.g. ...
单片机编程 自动检测单片机80C51串行通讯时的波特率
自动检测80C51 串行通讯中的波特率本文介绍一种在80C51 串行通讯应用中自动检测波特率的方法。按照经验,程序起动后所接收到的第1 个字符用于测量波特率。这种方法可以不用设定难于记忆的开关,还可以免去在有关应用中使用多种不同波特率的烦恼。人们可以设想:一种可靠地实现自动波特检测的方法是可能的,它无须严格限制可 ...
DSP编程 TMS320C54x DSP 的cpu和外围设备
Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their productsor to discontinue any product or service without notice, and advise customers to obtain the latestversion of relevant information to verify, before placing orders, that information being relied onis curren ...