arduino nano pwm

Hi all
I want use nano generate pwm to uno but I start in electronic and arduino.Please guide me for circuit and program.
Thank you.

Nano has 6 PWM pins, just like an Uno. 3,5,6,9,10,11.
Minimal amount of code is needed:

byte pinOut = 3;  // pins may be 3,5,6,9,10,11
byte pwmValue = 127; // value may be 0 to 255
setup(){
pinMode (pinOut, OUTPUT);  
analogWrite (pinOut, pwmValue); 
}
void loop(){
}

CrossRoads:
Nano has 6 PWM pins, just like an Uno. 3,5,6,9,10,11.
Minimal amount of code is needed:

byte pinOut = 3;  // pins may be 3,5,6,9,10,11

byte pwmValue = 127; // value may be 0 to 255
setup(){
pinMode (pinOut, OUTPUT); 
analogWrite (pinOut, pwmValue);
}
void loop(){
}

Please show circuit for this.

Circuit? You connect pin 3 and Gnd from the Nano to Gnd and whatever input pin you are using on the Uno.

CrossRoads:
Circuit? You connect pin 3 and Gnd from the Nano to Gnd and whatever input pin you are using on the Uno.

Thank you.