This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: ADC trigger

Part Number: TMS320F28069

Hi,

I have setup an ADC SOC event on the falling edge of PWMB, and I enabled interrupt1, as below:


    EALLOW;
    AdcRegs.INTSEL1N2.bit.INT1E = 1;       /* Enabled ADCINT1 */
    AdcRegs.INTSEL1N2.bit.INT1CONT = 0;    /* Disable ADCINT1 Continuous mode */
    AdcRegs.INTSEL1N2.bit.INT1SEL = 0;     /* setup EOC0 to trigger ADCINT1 to fire */
    AdcRegs.ADCSOC0CTL.bit.CHSEL = 0x8;    /* Set SOC0 channel select to ADCINB0 */
    AdcRegs.ADCSOC0CTL.bit.TRIGSEL = ADCTRIG_EPWM1_SOCB; //6;    /* Set SOC0 start trigger on EPWM1B, due to round-robin SOC0 converts first then SOC1 */
    AdcRegs.ADCSOC0CTL.bit.ACQPS = 6;      /* Set SOC0 S/H Window to 7 ADC Clock Cycles, (6 ACQPS plus 1) */
    AdcRegs.ADCCTL1.bit.INTPULSEPOS = 0;   /* Configure early interrupts */
    EDIS;

Can  I start more than one conversion using ADCINT1 and PWMB, for example by adding this configuration?

    EALLOW;
    AdcRegs.INTSEL1N2.bit.INT1E = 1;       /* Enabled ADCINT1 */
    AdcRegs.INTSEL1N2.bit.INT1CONT = 0;    /* Disable ADCINT1 Continuous mode */
    AdcRegs.INTSEL1N2.bit.INT1SEL = 1;     /* setup EOC1 to trigger ADCINT1 to fire */
    AdcRegs.ADCSOC1CTL.bit.CHSEL = 0xA;    /* Set SOC1 channel select to ADCINB2 */
    AdcRegs.ADCSOC1CTL.bit.TRIGSEL = ADCTRIG_EPWM1_SOCB;
    AdcRegs.ADCSOC1CTL.bit.ACQPS = 6;      /* Set SOC1 S/H Window to 7 ADC Clock Cycles, (6 ACQPS plus 1) */
    AdcRegs.ADCCTL1.bit.INTPULSEPOS = 0;   /* Configure early interrupts */
    EDIS;