Due controlling ESC with PWM.

Why not just use the servo library, its standard, well supported, means you can port code from the 8-bit Arduino's etc ?

This example outputs 8 servo signals and reads them back in using interrupts -

Duane B

rcarduino.blogspot.com