How to create a 38 Khz pulse with arduino using timer or PWM?

There is a lot of useful info in this thread so I thought I should add to the confusion!

OC2A is pin 11 on an Uno and pin 10 on a Mega2560 (in both cases using the Arduino pin notation).

...R