serial.h

来自「51单片机中」· C头文件 代码 · 共 16 行

H
16
字号
//serial.h
#ifndef _SERIAL_H
#define _SERIAL_H
#include <reg51.h>
#include <intrins.h>

//引脚定义
sbit SER_SID = P1^1;	//数据
sbit SER_SCLK = P1^4;	//时钟

//Funcitons
void Ser_Delay(unsigned char uchDly);
void Ser_SendByte(unsigned char uchValue);

#endif //_SERIAL_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?