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.

The problem with reading the ADC

Dear all,

I am begginer with F28335 eZdsp. Actually, i test ADC and RS232 on the Matlab simulink (Matlab2009b) (with toolbox TC2) and CCS3.3, but it did not work.

First, i use a block ADC with some parameters for ADC control: Module: A; Conversion mode: Sequential; Start of conversion: Software; Sample time: 0.00005; Data type: int16/ and for the input chanel: Number of conversion:1; Conversion no. 1: ADCINA0.

Then i connected this ADC to the input of SCI-transfer Block.

Then i compile from matlab simulink, i obtained a project in CCS 3.3, like (just see the part of ADC and SCI):

 

*ES+*E

It means RS232-SCI-transfer work well, even i change the character S by other character (for example : S -> SS).

 

I don not understand why i change the input of ADC, i never see the data of ADC from computer (use SCI, RS232)

I do not understand well the code : byteswap_L8exp(txString, (char *)&BC_V5_B.ADC, 1, 2); maybe it means for reading data from ADC to variable txString?

 

Could you show me some examples for reading ADC in Code composer studio 3.3?