STC89C52单片机串口调试(http://blog.sina.com.cn/s/blog_7cae472801015idp.html)
来源:互联网 发布:java循环读取txt文件 编辑:程序博客网 时间:2024/06/11 11:50
/////////////////////////////////////////////////////////////////////////
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
uchar cReceive_Data[35],cNumber=0,cFlag=0;
/////////////////////////////////////////////////////////////////////////
函数名称:毫秒延时函数
函数功能:实现毫秒级的延时
参数介绍:Delay_MS: 定义需要延时的毫秒的数值
返回值:
注意事项:本实验是在所用晶振为12M的前提下实现的毫秒延时,本函数是通过循环的形
/////////////////////////////////////////////////////////////////////////
void DelayMs(unsigned int Delay_MS)
{
}
//////////////////////////////////////////////////////////////////////////
函数名称:Init_UART
函数功能:完成对串口初始化
参数介绍:无
返回值:
注意事项:实验板上所用的晶振为11.0592M的,配置的波特率为9600
/////////////////////////////////////////////////////////////////////////
void Init_UART()
{
}
/////////////////////////////////////////////////////////////////////////
函数名称:Send_char
函数功能:向串口发送一个字符
参数介绍:cCharacter:要发送到电脑上的字符
返回值:
注意事项:SBUF是单片机中的串口寄存器
/////////////////////////////////////////////////////////////////////////
void Send_char(unsigned char cCharacter)
{
}
/////////////////////////////////////////////////////////////////////////
函数名称:Send_string
函数功能:向串口发送一个字符串
参数介绍:*string:要发送到电脑上的字符串
返回值:
注意事项:无
/////////////////////////////////////////////////////////////////////////
void Send_string(unsigned char *string)
{
}
/////////////////////////////////////////////////////////////////////////
函数名称:main
函数功能:把从电脑串口调试助手上发送到实验板上的字符串,原样发送到串口调试助
参数介绍:无
返回值:
注意事项:无
/////////////////////////////////////////////////////////////////////////
void main()
{
}
/////////////////////////////////////////////////////////////////////////
函数名称:UART_Routine
函数功能:串口接收中断函数,把数据放入全局变量cReceive_Data里,并让相应的标志位
参数介绍:无
返回值:
注意事项:无
/////////////////////////////////////////////////////////////////////////
void UART_Routine() interrupt 4
{
}
- STC89C52单片机串口调试(http://blog.sina.com.cn/s/blog_7cae472801015idp.html)
- http://blog.sina.com.cn/s/blog_5f8817250100g1dj.html
- http://blog.sina.com.cn/s/blog_5dfb7f4d0100j5e6.html
- http://blog.sina.com.cn/s/articlelist_1587621077_0_1.html
- http://blog.sina.com.cn/s/blog_8820018a0100w7t7.html
- http://blog.sina.com.cn/s/articlelist_1973273451_0_1.html
- http://blog.sina.com.cn/s/articlelist_1454293451_0_1.html
- http://blog.sina.com.cn/s/articlelist_1229508141_0_1.html
- http://blog.sina.com.cn/s/blog_4e6dffee0100hid1.html
- http://blog.sina.com.cn/s/blog_4ac0a0d30100cp9d.html
- http://blog.sina.com.cn/s/blog_77dd2fd20100y9vc.html
- http://blog.sina.com.cn/s/blog_61d8dfdb0100fti3.html
- http://blog.sina.com.cn/s/blog_65e943e70101est7.html
- http://blog.sina.com.cn/s/blog_8337d0c50100xn1p.html
- http://blog.sina.com.cn/s/blog_43eb83b90102dyl3.html
- http://blog.sina.com.cn/s/blog_3fe961ae01012tid.html
- http://blog.sina.com.cn/s/blog_53828e460100mv0d.html
- http://blog.sina.com.cn/s/blog_49867dc00100zj7t.html
- HDU4763 Theme Section KMP-next应用
- Apache Cordova开发环境搭建(一)-Visual Studio
- 初学Redis(2)——用Redis作为Mysql数据库的缓存
- 自定义dialog
- 大数乘法
- STC89C52单片机串口调试(http://blog.sina.com.cn/s/blog_7cae472801015idp.html)
- [C#]第30位数字是多少
- 16年腾讯笔试模拟题
- 互动投影系统
- 《C++计时器》
- PAT (Advanced Level) Practise 1101 Quick Sort (25)
- 教育技术菅若琳
- HTML5本地存储localStorage、sessionStorage基本用法、遍历操作、异常处理等
- Fragment实现底部栏