上传者: 36422902
|
上传时间: 2021-10-10 20:58:05
|
文件大小: 835KB
|
文件类型: -
unsigned char LCD_ID_11[16] = {" Huan Ying "};
unsigned char LCD_ID_22[16] = {" Shi Bai "};
unsigned char LCD_ID_33[16] = {" Qing Shi Yong "};
void FPMXX_Check_Module()
{
unsigned int i=0;
FPMXX_Cmd_Check();
for(i=0;i<12;i++)
{
FPMXX_RECEICE_BUFFER[i] = UART_Receive_Byte();//UART Receive a byteg
}
if(FPMXX_RECEICE_BUFFER[8]==0x03)
{
for(i=0;i<556;i++)
{
switch(i)
{
case 37:FPMXX_RECEICE_BUFFER[1] = UART_Receive_Byte();break;
case 38:FPMXX_RECEICE_BUFFER[2] = UART_Receive_Byte();break;
case 39:FPMXX_RECEICE_BUFFER[3] = UART_Receive_Byte();break;
case 40:FPMXX_RECEICE_BUFFER[4] = UART_Receive_Byte();break;
case 41:FPMXX_RECEICE_BUFFER[5] = UART_Receive_Byte();break;
default:FPMXX_RECEICE_BUFFER[0] = UART_Receive_Byte();
}
}
//判断指纹识别模块型号
if(FPMXX_RECEICE_BUFFER[1] == 0x46 && +
FPMXX_RECEICE_BUFFER[2] == 0x50 && +
FPMXX_RECEICE_BUFFER[3] == 0x4D && +
FPMXX_RECEICE_BUFFER[4] == 0x31 && +
FPMXX_RECEICE_BUFFER[5] == 0x30)
{
L1602_string(1,1,LCD_ID_11);
while(1)
{
if(KEY0 == 0)
{
Delay_Ms(10);
while(KEY0 == 0);
Delay_Ms(100);
break;
}
Delay_Ms(100);
}
}
}
}