nitinpatil
Member level 1
- Joined
- Oct 29, 2012
- Messages
- 41
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Pune, Maharashtra, India
- Activity points
- 1,557
Hi Jayant,
I run this code in Keil but get the errors, I resolve them, but I think to tell u
Error on OV its not take this variable so I change this to HV, error solve,
again got error on
so I change it to
Here I corrected this code and got the hex file
I run this code in Keil but get the errors, I resolve them, but I think to tell u
Error on OV its not take this variable so I change this to HV, error solve,
again got error on
Code:
elseif((UV == 0) || (OV == 0)pump = 0;
Code:
else pump = 0;
Code:
#include<stdio.h>
#include<reg51.h>
sbit low = P2^0;
sbit mid = P2^1;
sbit high = P2^2;
sbit UV = P2^3;
sbit HV = P2^4;
sbit pump = P3^4;
void main()
{
while(1)
{
if((UV) && (HV))
{
if(low)
pump = 1;
if(high)
pump = 0;
}
else pump = 0;
}
}