BCTU List Items

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BCTU List Items

Jump to solution
1,400 Views
PINKMAN
Contributor III

hi experts:

I used two ADC instances ,ADC0 has  4 channel p0 p1 p2 S9 ADC1 has 2channels P0 S8. i want to use PIT-->TRGMUX--> BCTU-->ADC0&ADC1.

my confusion is that ,how to config the BCTU List Items.i know that ADC target mask should be 0b11 standfor ADC0&ADC1

but what is hard to understand is that BCTU List Items, i have 6 channels , when the watermark nofify ,

the BctuDmaFifo[0] is ADC0_P0? 

the BctuDmaFifo[1] is ADC0_P1?

the BctuDmaFifo[2] is ADC0_P2?

the BctuDmaFifo[3] is ADC0_S9?

the BctuDmaFifo[4] is ADC1_P0?

the BctuDmaFifo[5] is ADC1_S8?

 

OR 

the BctuDmaFifo[0] is ADC0_P0? 

the BctuDmaFifo[1] is ADC1_P0?

the BctuDmaFifo[2] is ADC0_P1?

the BctuDmaFifo[3] is ADC1_S8?

if so ,what about the channels left, it make no sense,it's hard to underdstand

 

there is a demo picture, i still can't understnd

PINKMAN_0-1750513383552.png

 

 

 

 

0 Kudos
Reply
1 Solution
1,349 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you do multiple parallel conversions, then the items in BCTU list are taken in pairs (triples), so if demo picture shows parallel conversion on ADC0&ADC1 (mask=3) then the meaning of list on picture is correct.

For your desired conversions you need to add two dummy samples for ADC1, for example repeat previous two. In the BCTU list you will have 8 items
p0  ... ADC0
p0  ... ADC1
p1   ... ADC0
s8  ... ADC1
p2   ... ADC0
p0  ... ADC1
s9   ... ADC0
s8  ... ADC1

Mark last channels properly and set watermark = 7

BR, Petr

View solution in original post

2 Replies
1,350 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you do multiple parallel conversions, then the items in BCTU list are taken in pairs (triples), so if demo picture shows parallel conversion on ADC0&ADC1 (mask=3) then the meaning of list on picture is correct.

For your desired conversions you need to add two dummy samples for ADC1, for example repeat previous two. In the BCTU list you will have 8 items
p0  ... ADC0
p0  ... ADC1
p1   ... ADC0
s8  ... ADC1
p2   ... ADC0
p0  ... ADC1
s9   ... ADC0
s8  ... ADC1

Mark last channels properly and set watermark = 7

BR, Petr

1,332 Views
PINKMAN
Contributor III

I got it. Your explanation has very accurately resolved my confusion, and "dummy sample"  is quite interesting.

0 Kudos
Reply