Jack// ani
Advanced Member level 3
Hi all,
What could be wrong with this one, not working at all. And please tell me how to calculate time delay.
#include <AT89S8252.h>
void wait (void)
{
;
}
void main( void )
{
unsigned int i;
P1 = 0;
while(1)
{
P1=1;
for (i=0;i<10000;i++)
{
wait();
}
P1=0;
}
}
Thanks
What could be wrong with this one, not working at all. And please tell me how to calculate time delay.
#include <AT89S8252.h>
void wait (void)
{
;
}
void main( void )
{
unsigned int i;
P1 = 0;
while(1)
{
P1=1;
for (i=0;i<10000;i++)
{
wait();
}
P1=0;
}
}
Thanks