S32kx ADC bctu list configuration

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

S32kx ADC bctu list configuration

581 Views
Dev15
Contributor III

Hi Team,

I'm trying to configure ADC BCTU list configuration for hardware trigger. I need some clarification on the configuring channels in ADC0 and ADC1 instances.

For Example,

ADC0 - P0 ChanNum0

ADC1 - P0 ChanNum0

Both instances ADC0 and ADC1 has P0 ChanNum0. Please help to configure both instances with same channel number in the BCTU list.

 

Dev15_0-1710093213696.png

Dev15_1-1710093502173.png

 

Labels (1)
0 Kudos
8 Replies

553 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Dev15

yes, you can refer to "not_a_duck's reply",

As your requirement:

ADC0-P0 ChanNum0

ADC1-P0 ChanNum0

Senlent_0-1710125647552.png

 

0 Kudos

563 Views
not_a_duck
Contributor III

your ADC target mask is correct.
but you need an entry for each channel you want to to sample for each adc.
so if you have adc 0 and 1. you target mask is 0b11 or 0x3.
if you wanted to sample ch0 ch2 and ch3. you bctu list should be.
-ch0
-ch0
-ch2
-ch2
-ch3
-ch3

0 Kudos

537 Views
Dev15
Contributor III

@not_a_duck  and @Senlent 

Thank you for clarifying on the BCTU list configuration for two instances.

Can list configuration be in any order, please confirm?

For example,

if we have adc 0 and 1 and  wanted to sample ch0 ch2 and ch3.

-ch0
-ch3
-ch2
-ch0
-ch2
-ch3

 

0 Kudos

533 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Dev15

The sequence is:

ADC0_P0->P3->P2

ADC1_P0->P2->P3

Senlent_0-1710136194166.png

 

490 Views
Dev15
Contributor III

@Senlent ,

Can you please help me by providing sequence for below ADC 0 & ADC 1 instances

ADC0 - P0
ADC0 - P1
ADC0 - P3
ADC0 - P4
ADC0 - P5
ADC0 - P6
ADC0 - S8
ADC0 - S9
ADC0 - S10
ADC0 - S11
ADC0 - S12
ADC0 - S13
ADC0 - S14
ADC0 - S15
ADC0 - S16
ADC0 - S18
ADC0 - S19

======================

ADC1 - P0
ADC1 - P1
ADC1 - P2
ADC1 - P4
ADC1 - P5
ADC1 - P6
ADC1 - P7
ADC1 - S13
ADC1 - S16
ADC1 - S17
ADC1 - S18
ADC1 - S19

 

0 Kudos

466 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Dev15

It's too much to list them all, below is similar as your needs.

ADC0->P0,P1,P2,P3,P4,P5,P6,P7

ADC1->P0,P1,P2,P3,P4,P5

Senlent_0-1710396627113.png

 

0 Kudos

461 Views
Dev15
Contributor III

@Senlent , 

Thank you for sharing the bctu list sequence. 

I see P0 is again configured in the list with P6 and P7. Please confirm on this

0 Kudos

459 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Dev15

yes, please have a test first ,the ADC1-P0 will be sampled twice.

0 Kudos