Hi,
I am operating the ADC in Following modes.
1.Continuous mode
2.Sequential Mode
3.Dual sequence Mode.
Then SEQ1 is working and SEQ2 is not working in continous mode, in start-stop mode it is working. Please tell me the reason.
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.
Hi,
I am operating the ADC in Following modes.
1.Continuous mode
2.Sequential Mode
3.Dual sequence Mode.
Then SEQ1 is working and SEQ2 is not working in continous mode, in start-stop mode it is working. Please tell me the reason.
Hi Sri,
Try this out: works for me!
AdcRegs.ADCMAXCONV.all = 0x0005; // Setup 3 conv's on SEQ1
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0x0; // Setup ADCINA0 as 1st SEQ1 conv. : PANEL VOLTAGE
AdcRegs.ADCCHSELSEQ1.bit.CONV01 = 0x1; // Setup ADCINA1 as 2nd SEQ1 conv. : CHARGING VOLTAGE
AdcRegs.ADCCHSELSEQ1.bit.CONV02 = 0x2; // Setup ADCINA2 as 3rd SEQ1 conv. : BATTERY VOLTAGE
AdcRegs.ADCCHSELSEQ1.bit.CONV03 = 0x3; // Setup ADCINA3 as 4th SEQ1 conv. : PANEL CURRENT
AdcRegs.ADCCHSELSEQ2.bit.CONV04 = 0x4; // Setup ADCINA4 as 1st SEQ2 conv. : BATTERY CURRENT
AdcRegs.ADCCHSELSEQ2.bit.CONV05 = 0x5; // Setup ADCINA5 as 2nd SEQ2 conv. : HEAT SINK TEMPARATURE
AdcRegs.ADCCHSELSEQ2.bit.CONV06 = 0x6; // Setup ADCINA6 as 2nd SEQ2 conv. : BATTERY TEMPARATURE
AdcRegs.ADCTRL2.bit.EPWM_SOCA_SEQ1 = 1;// Enable SOCA from ePWM to start SEQ1
AdcRegs.ADCTRL2.bit.INT_ENA_SEQ1 = 1; // Enable SEQ1 interrupt (every EOS)
AdcRegs.ADCTRL2.bit.EPWM_SOCB_SEQ2 = 1;// Enable SOCB from ePWM to start SEQ2
AdcRegs.ADCTRL2.bit.INT_ENA_SEQ2 = 1; // Enable SEQ2 interrupt (every EOS)
Regards,
Gautam