⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 89S52上实现51单片机的串口FIFO功能。即串口的收和发均采用了FIFO作为缓冲。相信这个程序有助于单片机的新手编写串口操作
💻 C
字号:
#include <reg52.h>
#include <stdio.h>
#include <serial.h>
#include <stdlib.h>
#include <menu.h>
void main()
{
	int i=0;
	char temp;
//	char test[10]="haha\n";
	UartInit(19200);
	while(1)
	{
//		printf("%s",test);
		temp = getchar();
//		printf("temp = %c ***\n\n",temp);
		Display(temp,0);
	}
}

⌨️ 快捷键说明

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