BCTU List Items

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

BCTU List Items

跳至解决方案
1,512 次查看
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 项奖励
回复
1 解答
1,461 次查看
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

在原帖中查看解决方案

2 回复数
1,462 次查看
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,444 次查看
PINKMAN
Contributor III

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

0 项奖励
回复