Question.6
What will be the output of the following code after execution in Arduino UNO?
Code
void setup(){ pinMode(3,OUTPUT); TCCR2B = 0; // Stop Timer2 } void loop(){ analogWrite(3,100); // generate PWM signal delay(1000); }
Select Answer
It will generate a signal of duty cycle 39.21%
It will generate a PWM signal of 100% duty cycle.
It will generate a PWM signal of 60.78%.
It will generate a PWM signal of 0% duty cycle.