user58817: As the title says, I need 1khz frequency signal with 10-bit resolution. But I am not good with uControllers and complicated programming.
I need a simple code for this task.
I tried using this Interactive PWM from arduinoslovakia.eu but I dont know what the frequency is at 10-bit resolution and how to set frequency in this code.

user10794: I see you are talking about using the 16-bit timer, which is Timer 1 on the Uno.
Assuming you are using a Uno this code will do it:
// Clock frequency divided by 1 kHz frequency desired
const long timer1_OCR1A_Setting = F_CPU / 1000;

const byte outputPin = 10;  // Timer 1 "B" output: OC1B

void setup() 
 {
  pinMode (outputPin, OUTPUT);

  // set up Timer 1
  // Fast PWM top at OCR1A
  TCCR1A = bit (WGM10) | bit (WGM11) | bit (COM1B1); // fast PWM, clear OC1B on compare
  TCCR1B = bit (WGM12) | bit (WGM13) | bit (CS10);   // fast PWM, no prescaler
  OCR1A =  timer1_OCR1A_Setting - 1;                 // zero relative
  OCR1B =  (timer1_OCR1A_Setting / 2) - 1;           // 50 % duty cycle
  }  // end of setup

void loop()
  {
  }

You can change the 1000 in the calculation for timer1_OCR1A_Setting, within reason, to get other frequencies.
See my page about timers for more background information.

58817: <p>As the title says, I need 1khz frequency signal with 10-bit resolution. But I am not good with uControllers and complicated programming.</p>

<p>I need a simple code for this task.</p>

<p>I tried using this <a href="https://www.arduinoslovakia.eu/blog/2017/7/16-bitove-rozlisenie-pwm-pre-arduino?lang=en" rel="nofollow noreferrer">Interactive PWM</a> from arduinoslovakia.eu but I dont know what the frequency is at 10-bit resolution and how to set frequency in this code.</p>
 10794: <p>I see you are talking about using the 16-bit timer, which is Timer 1 on the Uno.</p>

<p>Assuming you are using a Uno this code will do it:</p>

<pre class="lang-c++ prettyprint-override"><code>// Clock frequency divided by 1 kHz frequency desired
const long timer1_OCR1A_Setting = F_CPU / 1000;

const byte outputPin = 10;  // Timer 1 "B" output: OC1B

void setup() 
 {
  pinMode (outputPin, OUTPUT);

  // set up Timer 1
  // Fast PWM top at OCR1A
  TCCR1A = bit (WGM10) | bit (WGM11) | bit (COM1B1); // fast PWM, clear OC1B on compare
  TCCR1B = bit (WGM12) | bit (WGM13) | bit (CS10);   // fast PWM, no prescaler
  OCR1A =  timer1_OCR1A_Setting - 1;                 // zero relative
  OCR1B =  (timer1_OCR1A_Setting / 2) - 1;           // 50 % duty cycle
  }  // end of setup

void loop()
  {
  }
</code></pre>

<p>You can change the 1000 in the calculation for timer1_OCR1A_Setting, within reason, to get other frequencies.</p>

<p>See <a href="http://www.gammon.com.au/timers" rel="nofollow noreferrer">my page about timers</a> for more background information.</p>
