Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

code for SM630 fingerprint module

Status
Not open for further replies.

rajbabu

Junior Member level 3
Joined
Apr 2, 2010
Messages
29
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
indo
Activity points
1,459
what is problem in this code.

My problem is that when i debuggind it then first time ( serial int comes ) it execute properly but when second time serial int comes then it jumps abruplty.
IT JUMPS TO LINE NO. 19 THIS CONDITION IS FULL FILLED SO IT JUMPS TO 20
AGAIN CONDITION IS TRUE SO IT JUMP 21 BUT THEN IT JUMPS TO DIRECTLY 25 AND THEN 44.



1. void IRQ_UartGet () interrupt 4
2. {
3. unsigned char i;
4. if(RI==1)
5. {
6. RI=0;
7. i=SBUF;
8. if(!ReceiveOK)
9. {
10. if(0==Rx_Cnt)
11. {
12. if(PKG_MARK1==i)
13. {
14. Timer=UART_OUT_TIME;
15. CommBuf[Rx_Cnt++]=i;
16. SCC=i;
17. }
18. }
19. else if(1==Rx_Cnt)
20. {
21 if(PKG_MARK2==i)
22. {
23. CommBuf[Rx_Cnt++]=i;
24. SCC+=i;
25. }
26. else
27. {
28. Rx_Cnt=0;
29. }
30. }
31. else if(Rx_Cnt<4)
32. {
33. CommBuf[Rx_Cnt++]=i;
34. SCC+=i;
35. }
36. else if(Rx_Cnt<CommBuf[3]+4)
37. {
38. CommBuf[Rx_Cnt++]=i;
39. SCC+=i;
40. }
41. else if(Rx_Cnt<CommBuf[3]+4)
42. {
43. CommBuf[Rx_Cnt++]=i;
44. SCC+=i;
45. }
46. }
47. }
48. }
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top