代码搜索:串行端口
找到约 10,000 项符合「串行端口」的源代码
代码结果 10,000
www.eeworm.com/read/471114/6897122
c ds18b20.c
#include"reg51.h"
sfr WDTRST = 0xA6;
sbit DQ =P2^2; //定义通信端口
//延时函数
void delay(unsigned int i)
{
while(i--);
WDTRST=0x1E;
WDTRST=0xE1;//喂狗指令,晶振为12M时每16个毫秒需喂狗一次
}
//初始化函数
In
www.eeworm.com/read/295003/8190454
java socketclient.java
//客户端程序的开发原理:
//使用Socket对网络上某一个服务器的某一个端口发出连接请求,一旦连接成功,打开会话;
//会话完成后,关闭Socket。
import java.io.*;
import java.net.*;
public class SocketClient
{ public static void main(String args[])
{
St
www.eeworm.com/read/294359/8237559
c fa_ma_user.c
//fa_ma_user.c为发射驱动程序的用户层接口函数
//init_fashe_IO():端口初始化函数
//IOB0作为发射口
#include
#include"fashe_system.h"
#include"bit.h"
extern fa_ma_binary[32];
void init_fashe_IO(void)
{
PB_D
www.eeworm.com/read/292874/8328221
bas mducomm.bas
Attribute VB_Name = "mduComm"
Option Explicit
'自动应答实现连接,连接后进入数据交换状态
'等待主叫方发送g_GIVE_ME_DATA 命令
'超时则断开连接并复位端口
'终端以二进制形式接收服务器发来的所要数据命令
'Timer延时要改************
Public g_bCOMMSETOK As Boolean
www.eeworm.com/read/392356/8348893
h ds18b20.h
/*程序说明:温度传感器DS18B20处理函数集
作头文件用
端口说明:P3.0 DQ*/
#include
#define jump_ROM 0xCC
#define start 0x44
#define read_EEROM 0xBE
unsigned int TMPH,TMPL; //温度高字节,低字节
sb
www.eeworm.com/read/392352/8348963
h port.h
//定义使用的端口号及其作用
#define unchar unsigned char
#define unint unsigned int
//定义霍尔传感器的输入引脚P2.0 , P2.1 , P2.2
#define sensor_in P2
//定义开关管所对应的引脚
//#define sb_all P0
//定义下桥臂对应的开关管的引脚
#de
www.eeworm.com/read/369064/9664443
c main.c
//文 件 名:CPLD.H
//功 能:实现单片机与CPLD器件的数据传送
//作 者:吕定胜
//创建日期:2007-09-03
//修改日期:
//传送端口定义
#include
#include "lcd.h"
sbit pwmclk = P2^3;
sbit senddata = P2^2;
sbit pwmcs =
www.eeworm.com/read/369064/9664450
h cpld.h
//文 件 名:CPLD.H
//功 能:实现单片机与CPLD器件的数据传送
//作 者:吕定胜
//创建日期:2007-09-03
//修改日期:
//传送端口定义
sbit pwmclk = P2^3;
sbit senddata = P2^2;
sbit pwmcs = P2^5;
sbit outcs = P2^6;
void send(int
www.eeworm.com/read/172048/9725189
c mainokuse.c
#include "reg52.h"
#include "intrins.h"
#include "math.h"
#include
#include "VIIC_C51.h"
#include "ZLG7290.h"
//端口定义
sbit KEY_INT=P3^2;
sbit PA1=P2^0;
sbit PB1=P2^1;
sbit PC1=P2
www.eeworm.com/read/172048/9725207
c main.c
#include "reg52.h"
#include "intrins.h"
#include "math.h"
#include
#include "VIIC_C51.h"
#include "ZLG7290.h"
//端口定义
sbit KEY_INT=P3^2;
sbit PA1=P2^0;
sbit PB1=P2^1;
sbit PC1=P2