MPC5643L Dual Conversion mode question.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5643L Dual Conversion mode question.

ソリューションへジャンプ
887件の閲覧回数
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 解決策
788件の閲覧回数
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 返信
789件の閲覧回数
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