This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fingerprint sensor error for 8051

i am trying to develop my own project based on 8051. i am using Fingerprint sensor(R305) , AT89S52 and relay for basic relay on/off. given code is not completed i mean i have not included the relay function because it gives error at initial phase.

i am getting too much errors and actually i am new for this platform so please help mehttps://www.rhydolabz.com/wiki/?p=15770

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define _XTAL_FREQ 18432000
#include <REGX51.h>
//#include <xc.h>
//#include<pic.h>
#include <stdio.h>
#include <stdlib.h>
void interrupt SerialRxPinInterrupt(void);
void serialwrite(char ch);
void serialprint(char *str);
int sendcmd2fp(char *pack, int len);
void matchFinger();
void serialFlush();
// BEGIN CONFIG
#pragma config FOSC = HS // Oscillator Selection bits (HS oscillator)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT enabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config BOREN = ON // Brown-out Reset Enable bit (BOR enabled)
#pragma config LVP = OFF // Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit (RB3 is digital I/O, HV on MCLR must be used for programming)
#pragma config CPD = OFF // datas EEPROM Memory Code Protection bit (datas EEPROM code protection off)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0