代码搜索:多串口
找到约 10,000 项符合「多串口」的源代码
代码结果 10,000
www.eeworm.com/read/491722/6433351
h main.h
#ifndef MAIN_H
#define MAIN_H
#ifdef MAINMODULE
#define EXTMAIN
#else
#define EXTMAIN extern
#endif
//使用本地串口做调试使能
#define DEBUG_ENABLE 0
EXTMAIN UART_HANDLER Com_Southing;
www.eeworm.com/read/491542/6437428
c putchar.c
/*串口1通信底层函数*/
#include // SFR declarations
#define XON 0x11
#define XOFF 0x13
/*
* putchar (full version): expands '\n' into CR LF and handles
*
www.eeworm.com/read/481956/6633270
c 51_dht21.c
//********************************************************************************************************//
// DHT21使用范例
// 单片机 : AT89S52 或 STC89C52RC
// 功能 :串口发送温湿度数据 波特率 9600
// 硬件连接: P2.0
www.eeworm.com/read/477873/6725099
h serial.h
#ifndef UART_H
#define UART_H
#define ARRAY_LEN 32 //数组缓冲区长度
//串口命令
unsigned char code UART_COMMEND[]={0x73,0x00}; //forward skip
#endif
www.eeworm.com/read/407190/11425429
c 25.c
#include "io2313.h"
#pragma interrupt_handler uart_rec:8 //定义接收中断向量
unsigned char i;
//串口接收中断
void uart_rec()
{
i=UDR;
}
//主程序
void main()
{
UBRR=12;
www.eeworm.com/read/348227/11605065
txt 4x4key.txt
下面是一个4*4键盘程序,已通过串口检测,可以用的
/*********************************************
说明读出键值 11 21 31 41
12 22 32 42
13 23 33 43
14 24 34 44
**********
www.eeworm.com/read/346789/11721931
h io.h
#ifndef __INCIOH
#define __INCIOH
#include
sbit SCL = P2^1;
sbit SDA = P2^0;
sbit COMSLT = P1^7; // 串口选择 1:打印机 0:PC
#endif
www.eeworm.com/read/339931/12194591
bas comdriver.bas
Attribute VB_Name = "ComDriver"
'串口通讯的底层驱动程序
Option Explicit
'全局常量定义区
'Public Const c_CurrentComBitRate = 115200
Public Const c_CurrentComBitRate = 57600
'Public Const c_CurrentComBitRate = 5600
www.eeworm.com/read/337914/12333547
c uart.c
//#include "ML-330.H"
//#define SYSCLK 24500000
#include
#include "c8051F330.h"
//#include "const.h"
#include "uart.h"
//串口读写驱动程序
#define SYSCLK 22118400
#define
www.eeworm.com/read/233203/14163545
h uartwaitfunc.h
/****************************************************************************
* 文件名:UartWaitFunc.h (头文件)
* 功能:串口通讯的等待功能函数,用户调用该类函数,可使读写操作命令立即执行,并且
可立即返回函数执行的结果。
* 说明:
****