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.

error in program warning c318:cant open file

Status
Not open for further replies.

Sudarshan Bole

Newbie level 2
Newbie level 2
Joined
Mar 9, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
26
plz i require ur help in solving my program i hve attached my program along with it can u help
 

Attachments

  • PROGRAM.txt
    2.2 KB · Views: 66

plz i require ur help in solving my program i hve attached my program along with it can u help


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#include <stdio.h>
#include "89C51.h"
#include "Delay.h"
#include "LCD.h"
#define RED     P0_0
#define GREEN   P0_1
#define YELLOW  P0_2
#define SWR     P0_5    
#define SWG     P0_6
#define SWY     P0_7
#define IR      P3_2
#define RFPort  P2
#define Buzzer  P3_7
void Beep(unsigned char No,unsigned int Delay);
void main(void)
{
    Beep(3,30000);
    SetLCD();
    LCD(1);printf("    On Panel    ");
    LCD(2);printf("Signaling System");
    DelayL(60000);
 
    LCD(1);printf("Project Done by.");
    LCD(2);printf("****************");
    DelayL(60000);
    LCD(1);printf("Sudarshan Bole  ");
    LCD(2);printf("Sagar B.      ");
    DelayL(60000);
    LCD(1);printf("Rohan D     ");
    DelayL(60000);
    LCD(1);printf("Under Guidance..");
    LCD(2);printf("Prof.S.N.Patil  ");
    DelayL(60000);
    LCD(1);printf("System Started..");
    LCD(2);printf("****************");
    DelayL(40000);
    while(1)
    {
        if((SWR==1)&&(SWG==1)&&(SWY==1))//no signal selected
        {
            RED=1;GREEN=1;YELLOW=1;
            RFPort=15;  //Send Code
            LCD(1);printf(" Please Select  ");
            LCD(2);printf("     Signal     ");
            continue;
        }
    
        //Signal Transmission
        if(SWR==0)  //RED Signal
        {
            RED=0;GREEN=1;YELLOW=1;
            RFPort=1;   //Send Code
            LCD(1);printf("Signal RED !!!  ");
            LCD(2);printf("    Must Stop   ");
            while(SWR==0)
            {
                if(IR==1)   //monitor for train-only for red signal
                {
                    RFPort=5;
                    LCD(1);printf("Train Detected .");
                    LCD(2);printf("Sending STOP CMD");
                    Beep(3,10000);
                }
            }
        }
        if(SWG==0)  //Green Signal
        {
            RED=1;GREEN=0;YELLOW=1;
            RFPort=2;   //Send Code
            LCD(1);printf("Signal GREEN....");
            LCD(2);printf("     Pass       ");
            Beep(1,20000);
            continue;
        }
        if(SWY==0)  //Yellow Signal
        {
            RED=1;GREEN=1;YELLOW=0;
            RFPort=3;   //Send Code
            LCD(1);printf("Signal YELLOW !!");
            LCD(2);printf("    GO Slow     ");
            Beep(1,20000);
            continue;
        }
    }
}
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
void Beep(unsigned char No,unsigned int Delay)
{
    unsigned char tNo;
    for(tNo=1;tNo<=No;tNo++)    
    {
        Buzzer=0;
        DelayI(Delay);
        Buzzer=1;
        DelayI(Delay);
    }
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top