<aside> <img src="/icons/map-pin_gray.svg" alt="/icons/map-pin_gray.svg" width="40px" /> Relevant Notes/Resources:
Registers (Page 1 - 2)
</aside>
The first half of the problem is setting and clearing the bits according to the given settings listed above for the following registers.
TEN = 1
: The timer needs to be turned on to actually use the timer counter.TFFCA = 1
: To enable timer fast flag clear.TOI = 0
: To disable timer overflow interrupt.TCRE = 0
: To disable counter reset a successful OC4 — counter free runs.PR2...PR0 = 100
: To set the TCNT prescaler to 16.IOS4 = 1
: To select channel 4 and configure as an output-compare channel; the number at the end of the bit indicates the channel.IOS7...IOS5 = 0
and IOS3...IOS0 = 0
: By default, at reset, it is set to 0
.OM4 OL4 = 01
: To select toggle PT4 pin.OM7...OL5 = 0
: By default, at reset, it is set to 0
.