Why does the 4809 datasheet (page191) refer to TCAn while the compiler does not accept anything else than TCA0?
TCAn implies that n can be anything?
Does TCA0.CTRLA actually refer to the timer control register A for the timer A?
TCAn means “timer type A”, instance “n”
The 4809 used on the every only has a single type-a timer, but some other chips have more than one, and the second will be TCA1, and etc.
(Hopefully the rest of the details of a type-a timer remain the same, even on different chips. Unlike “timer0” on older chips…)
I thought so but intuitively I would expect that the compiler would know, since I have selected the Arduino Nano every, that there is only one instance of timerA and that if i used the construct TCA.SINGLE.CTRLA=0x1; it will be ok.
Thanks anyhow.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.