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.

TMS320F28335: oversampling ADC values

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

Hi,

Good day. I hope you are doing well.

Our customer is using the TMS320F28335 and they have this question:

""I am programming in CCS v9, I want to oversample ADC value. I tried to reset the sequencer with RST_SEQ1 in ADCRTL2. But I check in debugging, the ADCTRL2 did not change anymore.

AdcRegs.ADCTRL2.bit.RST_SEQ1 = 1; After this instruction, the ADCRTL2 has to be 0x4xxx, right? But it is still 0x0xxx

I have checked with example ADC_SOC in ControlSuite, and run debug and check the ADCTRL2, after reset sequencer instruction the ADCRTL2 is not changed

I would like to take oversampling ADC values in F28335. In particular, I use ADCINA0 for analog input: CONV00 is 0x0, CONV01 is 0x0, too. The 2 trigger events are made from PWM module when CNTR=0. The first SOC is in the first zero of Counter, the second SOC is the second zero of Counter PWM. When the second SOC is done I should reset the sequence with RST_SEQ1=1 to go back to CONV00. But when debugging, the ADCRTL2 does not change after the RST_SEQ1=1. That means the instruction RST_SEQ1=1 is not working. And that is why the next SOC will be is CONV02 (ADCRESULT2) changes,...""

I hope you could help us with this inquiry. Looking forward to your inputs. Thank you.


Regards,

Cedrick

  • Cedrick,

    The RST_SEQ1 bit is an auto-clear type register, i.e. the act of writing a 1 will reset the sequencer and this bit will be autocleared by the internal logic.  Customer can verify that this worked by looking at the state of the sequencer in the ADCASEQSR register. All this to say, the bit will never read back a logic 1 based on what I know of its function.

    Best,
    Matthew