85. Timer Calculations

Question.3

After executing the following code, what frequency is generated on digital Pin 10 of Arduino UNO with a clock frequency of 16MHz?

Code

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

  TCCR1A = (1 << COM1B0);                             // Toggle OC1B ( digital pin 10) on compare match
  TCCR1B = (1 << WGM12) | (1 << CS12) | (1 << CS10);  // select CTC mode, prescaler 1024, strat the timer

  OCR1A = 1;
  OCR1B = 0;
}

void loop() {
}

 

Select Answer