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.

Compiler/F28M35H52C: C2000

Part Number: F28M35H52C
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: TI C/C++ Compiler

Hi, I'm trying to set up ADC sampling for the first time, for this I'm reading the Concerto F28M35x Technical Reference Manual SPRUH22H Revised November 2016. pages 858 and 859. From what I understand the selected trigger on the first example is TRIG1 set as : TRIGSEL=5 . In the second example (pg 899) they write:

 "

Another application may require 3 different signals to be sampled from the same trigger. This can be done
by simply changing the CHSEL field for SOC0-SOC2 while leaving the TRIGSEL field and TRIG1SEL
register unchanged.
ADCSOC0CTL = 4846h; // (ACQPS=6, CHSEL=1, TRIGSEL=9)
ADCSOC1CTL = 4886h; // (ACQPS=6, CHSEL=2, TRIGSEL=9)
ADCSOC2CTL = 48C6h; // (ACQPS=6, CHSEL=3, TRIGSEL=9)
TRIG1SEL = 000Bh // (TRIG1SEL=11)                    

 "

They say to leave TRIGSEL unchanged but they change it to 9 (in red). I see that the actual setting has not been changed (4846h) but I am setting bit by bit because I don't know how to set up all these together.  

So the main question is: Is that nine (in red) a mistake in the manual and should it be a five? If not then could you explain. Thank you. 

  • Vianey,

    The code comments are correct. It's just poor writing where the descriptive text in the paragraph above does not match the example code.

    If you are learning to program the ADC, I would recommend starting with a working ADC example in ControlSUITE.

    -Tommy