thannara123
Advanced Member level 5
Hello ,
How to calculate the time used for each setup of the program as following program (example program) If Crystal frequency 12MHz
How to calculate the time used for each setup of the program as following program (example program) If Crystal frequency 12MHz
Code:
while (1)
{
P0 = 0x55; // what time take here ?
P2 = 0X55; // what time take here ?
delay(250); // what time take here ? etc ?
P0 = 0x55;
P2 = 0X55;
}
void delay (unsigned int a)
{
Unsigned int i ,j;
for(i=0; i<a; i++)
for(j=0; j<1275; j++)
}