Replacing TC with TCC - any drawbacks?

I use TC3, in 16 bits mode, to give a regular interrupt. I now have to make the interrupt working MUCH slower than the 16 bits and prescaler cater for. I could go for 32 bits and use TC4. But then I occupy both TC3 and TC4 and 32 bits are not needed to be slow enough. Also if I am to use a library I may run into problems twice as much I can imagine. OK this is always a possibility but the more entities that are involved the higher the likelihood.

However, 24 bits will do the job and has room for even slower interrupts. The TCC is be able to do much more than I need. But are there any drawbacks using a TCC? I can live with a static "over use" of some more clock cycles.

TIA

Hi MikD,

But are there any drawbacks using a TCC?

Not really, the TCC timers have more features than the TC timers. The main drawback is that reading the TCC's COUNT register requires sending a command to the timer's CTRLB register first.

If you require really slow interrupts, there's also the Real Time Counter (RTC) as well.

Thanks MartinL, I'll give it a try.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.