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.

TMS320F28027: TMS320F28027:

Part Number: TMS320F28027
Other Parts Discussed in Thread: C2000WARE, LAUNCHXL-F28027

sir, I am using TMS320F2802X, for giving PWM pulses to the polyphase boost converter,
now I want to implement current controlled switching method so I have to use ADC block.
I am facing the following problem
1. IN ADC block one option is soc trigger number how will decide that number and we will select these option
SOCx acquisition window,SOCx trigger source,ADCINT will trigger SOCx.

2.i am sensing my current using LA55-P and it converted my current to 0.8 volts. Is it possible to use this volt for ADC pin?

3.how I will able to bring the pulses from the pin2(J1, J5 of TMS320F28027) to Matlab block ADC (plz tell me the whole procedure )and Is it possible to make some mathematical operation like derivation to the output of ADC block?

4.how can check my output of ADC channel output in Matlab that I am getting from the pin2 (J1, J5)?

  • Nitish,
    Just to confirm, are you doing all coding using The Mathworks tools for C2000, or is the code in C using Code Composer as the IDE, then porting to MATLAB?

    Best,
    Matthew
  • sir,

    i am using code composer studio6 (ccs6.1.1  ).

  • Nitish,

    Thanks, just wanted to be sure, here are my answers:

    1. IN ADC block one option is soc trigger number how will decide that number and we will select these option
    SOCx acquisition window,SOCx trigger source,ADCINT will trigger SOCx.

    A1)I would start with the ADC example here C:\ti\c2000\C2000Ware_1_00_04_00\device_support\f2802x\examples\structs\adc_soc\

    Also the ADC UG will have the bit definitions of all the above: http://www.ti.com/lit/ug/spruge5f/spruge5f.pdf

    The acquisition window is the time the sample and hold capacitor will be given to "see" the voltage on the ADC Input pin.  The min value is "6" which will give 7 ADC Clocks of time for which to sample the voltage.  Things like source impedance/noise, etc will determine if you can accurately sample the voltage in this time, or you need to increase it to let the cap settle more.

    The trigger source is exactly that, where the ADC gets the signal to start.  If you have multiple ADC samples that you want to kick off with the same trigger, then you just give them all the same trigger source and the state machine will arbitrate accordingly.  The trigger definitions can be found in the ADC UG mentioned above.

    The ADCINT I assume you mean the ADCINT triggers, this would be if you want to start a series or one conversion based another ADCSOC finishing.  This is not necessary if you just want to start multiple SOCs(see above), but is useful if you want to stagger the start of conversion based on the ADC loading.

    2.i am sensing my current using LA55-P and it converted my current to 0.8 volts. Is it possible to use this volt for ADC pin?

    A2), Yes, by default with the internal reference the ADC input range is 0V - 3.3V  

    3.how I will able to bring the pulses from the pin2(J1, J5 of TMS320F28027) to Matlab block ADC (plz tell me the whole procedure )and Is it possible to make some mathematical operation like derivation to the output of ADC block?

    4.how can check my output of ADC channel output in Matlab that I am getting from the pin2 (J1, J5)?

    A3/4) I believe you are referring to the LAUNCHXL-F28027 PCB as shown below, pin2 is ADCINA6.  So you would program the ADC to sample ADCINA6(channel 6).  Once done with all the samples and stores in SRAM you can export that with CCS, with a save from the memory browser and then import to MATLAB.  I'm not exactly sure I'm answering your question on this one, if you could define if there is some interface with MATLAB you have I can see if I know about it.

    Best,

    Matthew