MPC5643L Dual Conversion mode question.

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

MPC5643L Dual Conversion mode question.

跳至解决方案
709 次查看
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

标签 (1)
标记 (1)
0 项奖励
1 解答
610 次查看
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

在原帖中查看解决方案

1 回复
611 次查看
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