Discussion in "Project Addition or Changes" started by    vitorloke    Apr 30, 2012.
Sun May 13 2012, 09:55 pm
#11
do you can help me to check the code???
Mon May 14 2012, 03:42 am
#12
Post your code and circuit diagram as attachments.
Mon May 14 2012, 07:13 pm
#13
pls refer the file!!
Tue May 15 2012, 09:19 pm
#14
I dont see the C code, its just hex file.
Wed May 16 2012, 09:05 pm
#15
sorry!pls check again!thank you!
Fri May 18 2012, 01:49 am
#16
make sure you attach only file formats that are supported. if its a c file then better zip it and then attach.
Sat May 19 2012, 08:47 pm
#17
#include<reg51.h>
#define input P1

sbit output = P3^6;


sbit wr= P3^3;
sbit rd= P3^4;
sbit intr= P3^5;

void pwmm(int i);

void delay(unsigned int n )
{
int i ,j ;
for(i=0;i<n;i++)
for(j=0; j<1275; j++);
}


void main()
{
int temp;
input=0xff;
wr=0;
rd=0;
intr=1;

while(1)
{




rd=1;
wr=0;

wr=1;

while(intr==1);
rd=0;

temp=input;

intr=1;



if(input>0&&input<20)

{

output=0;
}


else if(input>20&&input<30)

{

pwmm(6);
}


else

{

pwmm(10);
}



}

}
void pwmm(int i)

{ int j,k;
output=1;
for(j=0;j<i;j++)
delay(5);
k=10-i;
output=0;
for(j=0;j<k;j++)
delay(5);
}


[ Edited Sat May 19 2012, 08:48 pm ]
Sun May 20 2012, 10:40 am
#18
In above code u need to add LCD functions?
Define your LCD port pins as u did for ADC.
Just have look at this tutorial http://www.8051projects.net/lcd-interfacing/
Sun May 20 2012, 07:59 pm
#19
can give me the simple program or detail???thank you!
Sun May 20 2012, 08:57 pm
#20
he already gave you the link. it has all the code you will need.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am