space vector inverter

is there any difference between arudino mege and mega adk??? can i use same ide??
how should i program a loop which should end in .02ms ??
say
for(int i;i>.02 ms;i++)
{

}
am using uno board now but am not able to find how to set that loop running in .02 ms..

You can take a look at the function delayMicroseconds() function. Or for a non-blocking approach (do stuff while waiting) you can read up on using timers for the AVR.

...
uint32_t start = micros();
int i = 0;

while (micros() - start <= 20)
{
  ...
  i++;
}

as the micros() call will already take 4 uSec the loop will run max 5 times.
Think you have to investigate into hardware timers as these are way faster.