85. Timer Calculations

Question.2

What will be the output of the following code when digital pin 9 is connected to the DSO?

Note: CPU clock 16MHz.

Code

void setup() {                                                               
  TCCR1A = (1 << COM1A0); // Toggle OC1A on compare match
  TCCR1B = (1 << WGM12) | (1 << CS10); // CTC mode, prescaler = 1
  OCR1A = 32000;        // Set compare value
  DDRB |=  (1 << PB1); // D9 (PB1) as outputs
                                                                
}

void loop()
{
}

Select Answer