| ??? 01/27/12 14:31 Read: times |
#185699 - ,sometimes you have to be VERY specific Responding to: ???'s previous message |
clearly sometimes you have to be VERY specific, I smiled when I saw this great example of that need.
void delay(int num) // timer
{
int i;
for(i=0;i<num;i++)
{
TH0=0xfc;
TL0=0x67;
}
}
many many times it has been posted "for delays use a timer" the above is a great example of the difference between "following the letter of the law" and "following the intent of the law" Erik |



