> If you multiply it by 400, result is 8000000 or 8MHz (hint: read the comment). For it to be 8MHz, each increment of CounterValue must take 1/20000th second. Does loading 5000 into TA0CCR0 make each interrupt trigger every 1/5000th second? If so, for the purpose of the original code, could TA0CCR0 have been loaded with 5000, or even 1000?
↧