Datasheet: Understanding the AVR Timer/Counter
The control register of the timer/counter is TCCR1A and TCCR1B since the register is 16-bit, two 8-bit register designations are made. Each bit of the register is like a switch to turn on or off to control some aspect of the timer/counter.
TCCR1A has these switches: COM1A1, COM1A0, COM1B1, COM1B0, FOC1A, FOC1B, WGM11, WGM10.
To start the times, we will use the Clock Select CS12, CS11 and CS10. These control the prescaling of the clock source (i.e. how many actual clock ticks to ignore when counting). Setting only CS10 to 1 or high, this will set the timer/count to count with the clock source with no prescaling.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.