Part Number: TMS320F28379D
Tool/software: Code Composer Studio
Hi,
I am trying to run the C2000 example "adc_soc_software_cpu01" in continuous mode. I have removed the software breakpoint command "asm(" ESTOP0");" from the main loop. I am using ADC Channel0
This is the main While loop
AdcaRegs.ADCSOCFRC1.bit.SOC0 = 1; //SOC0
//wait for ADCA0 to complete, then acknowledge flag
//
while(AdcaRegs.ADCINTFLG.bit.ADCINT1 == 0);
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
//
//store results
//
AdcaResult0 = AdcaResultRegs.ADCRESULT0;
Settings for ADC Software other than acquisition window is below:
EALLOW;
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 0; //SOC0 will convert pin A0
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is acqps +
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 1; //end of SOC1 will set INT1 flag
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag //1 SYSCLK cycles
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
EDIS;
I run this code but it only executes once. I want to run this code continuously. Can't figure out what wrong i am doing.
