// 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
Solved! Go to Solution.
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
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