串口发送数据
#include <REGX52.H>
#include "Delay.h"
unsigned char Sec;
void main()
{
UART_Init();
while(1)
{
UART_SendByte(Sec);
Sec++;
Delay(500);
}
}
#include <REGX52.H>
#include "Delay.h"
unsigned char Sec;
void main()
{
UART_Init();
while(1)
{
UART_SendByte(Sec);
Sec++;
Delay(500);
}
}