Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/08/02 09:02
Read: times


 
#30382 - RE: 89c51 behave..


Shahzad Aslam wrote:
-------------------------------
eric its the program i write in C is not working .... compiler is okey and i think the hardware is also okey


shahzad

try using a longer waiting period for the LED to lit up, in lorder to find out if the hardware is ok.
a waiting loop,instead of in interrupt, like this might help to detect the right functioning:
void wait()
{
char i,j,k;

for(i=0;i<3;i++)
for(j=0;i<255;j++)
for(k=0;k<255;k++);

}

main()
{
while (1){
litup();
wait()
litoff();
wait()
};
};

the wait func should be enough slow


List of 20 messages in thread
TopicAuthorDate
89c51 behave strange            01/01/70 00:00      
correct statement ....            01/01/70 00:00      
RE: correct statement ....            01/01/70 00:00      
RE: correct statement ....            01/01/70 00:00      
RE: correct statement ....            01/01/70 00:00      
RE: correct statement ....            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      
RE: again confusing            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      
RE: again confusing            01/01/70 00:00      
RE: again confusing            01/01/70 00:00      
RE: correct statement ....            01/01/70 00:00      
RE: again confusing            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      
RE: eric            01/01/70 00:00      
RE: 89c51 behave..            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      
RE: 89c51 behave strange            01/01/70 00:00      

Back to Subject List