pwm with output 1 Mhz

excuse me sir , I had difficulty in setting program pwm output with a frequency of 1 MHz . Please help.
:sob:

You have supplied no information on what processor your using, what you have tried to get PWM frequency increased or details of the PWM signal you require (simple square wave or adjustable duty)
Might be worth looking at the Timer1 or Timer3 libraries.

Sirajuddin_Idris:
excuse me sir , I had difficulty in setting program pwm output with a frequency of 1 MHz . Please help.

Maximum PWM frequencies for 8-bit PWM output using 16 MHz AVR/Atmega based boards like "Arduino UNO" or "Arduino MEGA2560" are 62500 Hz in8-bit fastPWM mode and 31250 Hz in 8-bit phase-correct PWM mode.

Which Arduino board / microcontroller are you referring to?
And you don't mean just plain square wave output, don't you?