thannara123
Advanced Member level 4

- Joined
- Jan 7, 2010
- Messages
- 1,477
- Helped
- 121
- Reputation
- 242
- Reaction score
- 111
- Trophy points
- 1,353
- Location
- God's Own country India, Kerala
- Activity points
- 9,598
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++)
}