PR29 UART Function Error

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PR29 UART Function Error

Postby PICTRAIL » Thu Jul 07, 2011 12:43 am

Hi,
Can someone help with these two (2) functions in PR29 sample code.
receive_reply_nodisplay();
receive_reply();

It seems there is a problem between the UART and the Fingerprint Reader communication. I am unable to access the reader DSP to store/verify fingerprint.

If i try to add new data, the reader blue light will be ON but no operation will occur.

Kindly highlight any possible error and solution. The function codes are as follows:

CODE: SELECT_ALL_CODE
/function to get reply from UART
void receive_reply(void)                  
{

   unsigned char i;
   for(i=0;i<8;i++)                                 //store the reply in the array
   array_resp[i]=uart_receive();                        //assign values to array
   display_status(array_resp[1],array_resp[3],array_resp[4]);   //retrieve the informations
   delay(1000);
}

//function to get reply from UART but not display the status
void receive_reply_nodisplay(void)
{
   unsigned char i;
   for(i=0;i<8;i++)                     //store the reply in the array
   array_resp[i]=uart_receive();               //assign values to array
}
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: PR29 UART Function Error

Postby joliza » Thu Jul 07, 2011 4:57 pm

Hi,
You can't access the reader DSP before or after you add new data?.When you try to scan your finger (without adding new data), what massage displayed on LCD display?.

Have you try the your finger print reader with GUI example?.
joliza
Novice
 
Posts: 22
Joined: Mon Jun 22, 2009 10:56 am

Re: PR29 UART Function Error

Postby PICTRAIL » Thu Jul 07, 2011 7:17 pm

Thanks Joliza...
I already found solution to it. The problem was from the port setting. I did not set RC7 as Input, because of this i was unable to get feedback from the reader.

Regards...
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 7 guests

cron