see DocuCompiler.pdf, chapters 4.18.7.1 and 4.18.7.2 !
Gunter
A "SysTimer" is based on the SysTick. So no additional hardware timer is involved.
But think of the resolution and precision of the SysTick. It is not very high and
so not usable for real timing functions.
If you need a more precise one, you can use the "TickTimer" which then needs a
separate 16bit timer.
rolf
bgoolsby
Betreff:
Re: Which timer/counters are used by the compiler in Xmega chips?
With XMegas the SysTick uses the 16bit RTC Timer "RTC".
If this timer is not present any other of the standard timers
can be used. Please read the compiler manual as Gunter wrote.
Also the E5 series have the RTC timer/counter usable for SysTick.
rolf
bgoolsby
Betreff:
Re: Which timer/counters are used by the compiler in Xmega chips?
With XMegas the SysTick uses the 16bit RTC Timer "RTC".
If this timer is not present any other of the standard timers
can be used. Please read the compiler manual as Gunter wrote.
Also the E5 series have the RTC timer/counter usable for SysTick.
rolf
What if the Xmega does have an RTC, like the Xmega256A3U? Can I still use a standard timer if I want to by using the code in the compiler manual, "4.18.7.2 XMega SYSTICK without RTC Timer"?
The RTC timer is 1.024ms, not exactly 1ms. I was thinking of getting more exact timing with one of the conventional TC's. How much adjustment can the "adj" option make to the RTC? Can that make it exactly 1ms?
Hinweis nach EU Cookierichtlinie Diese Seite verwendet Cookies, um den Login und ungelesen Markierungen zu verwalten. Mit dem surfen auf dieser Seite erklärst Du Dich damit einverstanden, dass Cookies gesetzt werden. Mit der Option ganz unten auf der Seite "Cookies von diesem Forum entfernen" kannst Du alle Cookies, die von diesem Forum gesetzt wurden, von Deinem Computer entfernen lassen. Weitere Informationen findest Du in unserer Cookierichtlinie.