Nov 01, 2020
05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 01, 2020
05:10 AM
Hello,
I am having trouble calculating EVADC conversion time, how can I know the frequency used by adc, in the clocking system chapter it is mentioned that fadc = fsource1, is fsource1 same as fpll1? if so I have fpll1 =300Mhz, so is fadc now 300MHZ and fadci = fadc/(DIVA+1)?
it seems something in my understanding is incorrect so please correct me.
I am having trouble calculating EVADC conversion time, how can I know the frequency used by adc, in the clocking system chapter it is mentioned that fadc = fsource1, is fsource1 same as fpll1? if so I have fpll1 =300Mhz, so is fadc now 300MHZ and fadci = fadc/(DIVA+1)?
it seems something in my understanding is incorrect so please correct me.
- Tags:
- IFX
4 Replies
Nov 02, 2020
05:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 02, 2020
05:20 AM
I would expect that you would configure PLL1 to be set to 320MHz and then bit CCUCON1.PLL1DIVDIS=0 so you would get a divide by 2 for fSOURCE1 (160MHz). The maximum input clock frequency for the EVADC is 160MHz
Nov 02, 2020
06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 02, 2020
06:03 AM
and what is NCR in the conversion time formula, how can I get this configured value?
Nov 02, 2020
09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 02, 2020
09:56 AM
TC37xx wrote:
and what is NCR in the conversion time formula, how can I get this configured value?
I am not sure where NCR is coming from. Looking at the users manual under section 32.9.2 Standard Convert Channels Timing:
tC12 = [(2 + STC) × tADCI] + [13 × tADCI] + [NRS × tNR] + [tPC] + [3 × tADC]
with:
tNR = 4 × tADCI + 3 × tADC per conversion step
tPC = (4 + 2×CALSTC) × tADCI + 5 × tADC if enabled, otherwise 0
Dec 01, 2020
06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 01, 2020
06:53 AM
I am having some trouble with calculating the conversion time, I have now derived all the required parameters to substitute in the conversion time formula, however the result I am getting is far from what I observe if I calculate the conversion time with STM.
Fosc is configured to be 20Mhz. NDIV+1 and PDIV+1 in PERPLLCON as 28 and 1, KDIV2+1 is 5. so I derived from the following Fpll1 = 112Mhz, and from CCUCON1.PLL1DIVDIS=1 and CLKSEL =01, Fsource1=fpl11, so Fsource1= Fadc =112 MHz, is there something wrong here ?
Step 2
STC=256
FadcI=Fadc/DIVA = 112/32 = 3.5 MHz
NRS=7
CALSTC=3
so from the following and the equation @cwunder mentioned I calculated the conversion time to be 88544 usec, is there something I need to multiply or add to Tc12 or is this the total conversion time? What I am getting from the STM is around 99192 usec consistently.
Fosc is configured to be 20Mhz. NDIV+1 and PDIV+1 in PERPLLCON as 28 and 1, KDIV2+1 is 5. so I derived from the following Fpll1 = 112Mhz, and from CCUCON1.PLL1DIVDIS=1 and CLKSEL =01, Fsource1=fpl11, so Fsource1= Fadc =112 MHz, is there something wrong here ?
Step 2
STC=256
FadcI=Fadc/DIVA = 112/32 = 3.5 MHz
NRS=7
CALSTC=3
so from the following and the equation @cwunder mentioned I calculated the conversion time to be 88544 usec, is there something I need to multiply or add to Tc12 or is this the total conversion time? What I am getting from the STM is around 99192 usec consistently.
This widget could not be displayed.