MPC5643L Dual Conversion mode question.

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

MPC5643L Dual Conversion mode question.

Jump to solution
697 Views
jungwoojin
Contributor I
There was a problem using dual conversion mode using CTU.
I understand that when using dual conversion mode, two ADC channels(ex. ADC0_0, ADC1_0) are sampling at the same time when trigger signal occurs.
By the way, in fact, it seems that ADC0_0 is sampling and then ADC1_0 is sampling .
Is this right to be sampling ?
Can't two ADCs (ADC0_0, ADC1_0) be sampling at the same timing?
Register settings are as follows.

 // Trigger Generator subunit Input Selection Register
 CTU_0.TGSISR.R = 0x00040000;  // PWMX[0] rising edge trigger; I9_RE

 // Trigger 0 Compare Register
    CTU_0.TCR[0].R = 0x0000;   // Dealy 0

 // TGS Counter Compare Register : TGS Counter Max.
 CTU_0.TGSCCR.R = 0x1000;
 
 // TGS Counter Reload Register : TGS Counter Min.
 CTU_0.TGSCRR.R = 0x0000;
 
 // Commands List Control Register
 CTU_0.CLCR1.B.T0INDEX = 0;
 
 // TGS Control Register
 CTU_0.TGSCR.R = 0x0000;    // Trigger Mode, Prescaler 1
 
 // Trigger handler control registers
 CTU_0.THCR1.B.T0_ETE = 1;
 CTU_0.THCR1.B.T0_ADCE = 1;
 CTU_0.THCR1.B.T0_E = 1;
 
 // Command list register
 CTU_0.CLR[0].R = CTU_CLR_DUAL_CONV
       | CTU_CLR_CH_A(0)
       | CTU_CLR_CH_B(0);


 CTU_0.CLR[1].R = CTU_CLR_INT_REQ
       | CTU_CLR_DUAL_CONV
       | CTU_CLR_CH_A(8)
       | CTU_CLR_CH_B(8);
      
 CTU_0.CLR[2].R = CTU_CLR_LAST_CMD; // Dummy command to stop command sequence

 // CTU Control Register
 CTU_0.CTUCR.R = 0x0003;    // General reload and TGS input selection reload

Labels (1)
Tags (1)
0 Kudos
1 Solution
598 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Can't two ADCs (ADC0_0, ADC1_0) be sampling at the same timing?

Yes, 2 ADC modules can be sampling in the same time. This device contains 2 independent ADC modules which can be started in dual conversion mode from one CTU command.

regards,

Peter

View solution in original post

1 Reply
599 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Can't two ADCs (ADC0_0, ADC1_0) be sampling at the same timing?

Yes, 2 ADC modules can be sampling in the same time. This device contains 2 independent ADC modules which can be started in dual conversion mode from one CTU command.

regards,

Peter