Generate a High Frequency PWM

Show us what you tried, the entire sketch, in code tags please...

By the way, this thread is not about electronics, please send a mod a message to request a move to the programming forum.