By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,462 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,462 IT Pros & Developers. It's quick & easy.

home security system using microcntroller at89c51

P: 5
1. #include <AT89X51.H>
2. #define EE_SCL P1_0
3. #define EE_SDA P1_1
4. #define LCD_E P1_7
5. #define LCD_RW P1_6
6. #define LCD_RS P1_5
7. #define LCD_DATA P3
8. #define buzz P0_3
9. #define led P1_2
10. void cmnwrt(int);
...
302. i=i; //delay
303. EE_SCL=0;
304. return shi;
305. }
out put
syntax error near 1
missing ; before <
target not created
Apr 27 '16 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 2,398
The problem might be inside AT89X51.H.
Make another source that includes AT89X51.H and that then goes on to declare one global variable. See if that file gets the same error message.
Apr 28 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.