|

楼主 |
发表于 2023-3-1 21:22:29
|
显示全部楼层
有点儿懵逼,我好像看不懂
#include <REGX52.H>
#include "Buzzer.h"
#include "LCD1602.h"
#include "UART.h"
#include "Delay.h"
//unsigned char Password;
void main()
{
UART_Init();
while(1)
{
}
// LCD_Init();
// LCD_ShowString(1,1,"Password:");
// UART_Init();
// while(1)
// {
// if(Password==1108)
// {
// P2_0=0xFF;
// LCD_ShowString(1,1,"Welcome");
// }
// else{
// LCD_ShowString(1,1,"Please Try Again");
// Delay(3);
// Password=0;
// LCD_ShowNum(1,1,Password,4);
// }
//}
}
void UART_Routine() interrupt 4
{
if(RI==1);
{
P2=~SBUF;
UART_SendByte(SBUF);
RI=0;
}
}
//ÖжϺ¯ÊýÄ£°å
//void UART_Routine() interrupt 4
//{
// if(RI==1);
// {
// RI=0;
// }
//
//} |
|