Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: SYS/BIOS system tick timer accuracy

$
0
0

Hi Prad,

[quote user="Prad1"]

1>What is the accuracy of this system tick?

[/quote]

I would recommend asking this question on the devices forum i.e. Sitara processors forum for AM335x.

[quote user="Prad1"]

2>And which clock source will be selected by default?

We are using SYS/BIOS(v6.4) with default Clock settings as shown below
the tick period is 1ms, but the Timer ID is mentioned as "ANY",
I would like to know which timer and which clock source will be selected in this case.

[/quote]

When the Clock.timerId is set to "ANY", SYS/BIOS can use any of the available (or unused) timers. For AM335x, the available DMTimers are 2-7 (Timer id 0-5). If you look at the timer mapping table (link in DM Timer module's cdoc), you can look at all available timers for a particular device along with their corresponding timer id, interrupt number and default frequency.

Timer mapping table -> http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sysbios/6_40_02_27/exports/bios_6_40_02_27/docs/cdoc/ti/sysbios/timers/dmtimer/doc-files/TimerTables.html

As far as the clock source for the DM Timer goes, SYS/BIOS does not program the CLKSEL_TIMERx_SEL register. It is most likely being programmed by the gel files you are using. I believe the gel files change the clock source to the 32KHz clock and therefore SYS/BIOS uses 32KHz as the default timer frequency for AM335x DM Timers.

In case you plan to change the timer clock source, please also configure the timer frequency in the DM Timer module. Depending on the version of SYS/BIOS this can either be done using Timer.intFreq (deprecated now) or Timer.intFreqs (preferable).

Timer.intFreq -> http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sysbios/6_40_02_27/exports/bios_6_40_02_27/docs/cdoc/index.html#ti/sysbios/timers/dmtimer/Timer.html#int.Freqs

Best,

Ashish


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>