TI C2000 Delfino Multichannel ADC read using Simulink
8 次查看（过去 30 天）
I'm trying to read different ADC values from two different channels of ADC-A using Simulink, however, one channel always seems to "copy" the value of the other. I'm using the F28377S Delfino Launchpad with a simple Simulink model: ADC-A1 and ADC-A2 each connected to a display block, 12 bit resolution, with all parameters same for both channels except for the SOC sources. I have a potentiometer connected to each pin. Both the ADCs are outputting the value from one of the potentiometers while the other potentiometer does not seem to have any affect on the ADCs.
I'm supposing I'll have to use ePWM blocks to trigger the two channels at different times, but I do not know how to execute this. Any help would be much appreciated.
Adnan Ishtay 2017-7-25
OHHHH, finally... I have solved the problem, after understanding the basic structure and the operation of ADC module (go to:https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/configuring-acquisition-window-width-for-adc-blocks.html), the default settings of ADC block in simulink library is set to the maximum ADC-sampling speed, which is trade-off with number of scanned channels for each port (ADC-A or ADC-B), by increasing the access-time of ADC conversion, this is done by the following settings: 1- as stated above by "Nail on 23 Dec 2016", go to Model [Configuration Parameters -> ADC_A -> ADC clock prescaler (ADCCLK)], I have put it to 8. 2- double click on "ADC-F2837xS" block in simulink file, and put the "SOCx acquisition window" to large value (I have put it to 64).
I have changed ADCCLK value from 1.0 to 4.0 from
Model Configuration Parameters -> ADC_A -> ADC clock prescaler (ADCCLK)
and it worked.
nasimullah khattak 2017-6-9
Hello every body.I want to run ADCIN2 and synchronize it with Epwm2 of TI launchpad F20377S in the simulink environment. It seems that the ADC block collects only one sample and then it stops working. Can any body share a demo ,on how to configure it. Thanks