To generate 2MHz frequency from aurdino due

yea i understand

but can you tell me the code how to write
i ain't getting it
thank you