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.

LAUNCHXL-F28379D: F28379D

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hi there,

How could ADC PPB Block (F28379D) be used together with F28379D ADC Modelling Block in MATLAB Embedded Coder Support Package for Texas Instruments C2000 Processors for modelling?

Regards,

Dimitar

  • Hi Dimitar,

    I'm not very familiar with the PPB. What do you want to do with the PPB that you cant do prior to sending out the ADC value from Simulink (so pre-processes the ADC value)?

    ---

    Doc for the MathWorks ADC block is here: 

    https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ref/c2802xc2803xc2805xc2806xf28m3xf2807xf2837xdf2837xsf28004xadc.html

    ---

    Thinking about this a bit more, if you were required to use the PPB, then I think you may need to change your workflow. Right now I think you use MathWorks custom C2000 Support Package to generate code for you algorithm + your IO interface, and MathWorks tools download and start the code running on your device. [Note we actually use tools from CCS to do the download and running, under the-hood]. You can set up a workflow to just generate code for the algorithm piece, and import that code into CCS. Then use all the tools in CCS to configure the IO + PPB, then download and start the code running. The MathWorks + CCS workflow is commonly used by commercial companies as they often have specific SW architecture and multiple people contributing to the overall embedded system. The MathWorks-only workflow is ideal for quick prototyping at your desk, but it has limitations - and this might be one of them.

    Cheers,

    -Brian

  • Hi Brian,

    Thank you very much for your reply.
    My main purpose of asking specific question is to get advice from people experienced with F28379D.

    What I would like to achieve is measurement of damping voltage with maximum amplitude 1000V and frequency less than 20kHz. The frequency and amplitude will vary. Maximum expecting frequency is around 12kHz.

    I need to measure the frequency of this voltage and depending of the result to generate a control signal with expected frequency around 8kHz.

    The control signal depends from the frequency of the measured damping voltage.

    Another important function of the whole system is when the damping voltage reaches certain level at around 800V the output control signal (Up-Down PWM with constant 50% duty cycle and varying frequency – depending from the frequency of the measured damping voltage) has to change its frequency slightly to a lower frequency.

    I am trying to find the quickest development path with F28379D and I thought that MathWorks C2000 Support Package may help in that development.

    From your reply I am more targeted now to use CCS only.

    I will highly appreciate any advice from TI experts.

    Regards,

    Dimitar
  • Hi Dimitar,

    If you are going to use CCS there are a variety of PPB examples in C2000ware.

    For sensing the frequency you can examine/process the ADC samples, but you may also want to look at using the CMPSS to generate a square wave and then feed this to the eCAP module.

    When sensing the HV signal you will probably want to use an op amp to buffer the signal after you attenuate it (if you just use a voltage divider, the input impedance to the ADC will probably be too high).