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.

ADC output issue on F28335

Other Parts Discussed in Thread: TMDSDOCK28335

Hi there, I've been having troubles with the ADC module on the F28335 microcontroller. I've run the adc_soc example and the output values from the ADC have no sense at all. The input signal is a 50 HZ, 2.8 Vpp sine wave. The output values looks like that (both channels converting the same input):

 

Voltage1 = 0x0000C240@Data
    [0] = 104
    [1] = 168
    [2] = 257
    [3] = 257
    [4] = 288
    [5] = 309
    [6] = 208
    [7] = 136
    [8] = 40
    [9] = 1784
    [10] = 2296
    [11] = 2080
    [12] = 2048
    [13] = 8
    [14] = 3117
    [15] = 8
    [16] = 3114
    [17] = 2056
    [18] = 2064
    [19] = 2096
    [20] = 2076
    [21] = 1552
    [22] = 40
    [23] = 96
    [24] = 204
    [25] = 313
    [26] = 288
    [27] = 257
    [28] = 256
    [29] = 152
    [30] = 64
    [31] = 40
    [32] = 1540
    [33] = 2048
    [35] = 2048
    [36] = 2056
    [37] = 2062
    [38] = 16
    [39] = 2060
    [40] = 2056
    [41] = 2968
    [42] = 2096
    [43] = 0
    [44] = 0
    [45] = 40
    [54] = 60
    [55] = 1828
    [125] = 2108
    [126] = 2480
    [127] = 2056
    [128] = 3100
    [157] = 2084
    [158] = 1572
    [220] = 2060
    [236] = 72
    [260] = 0
    [275] = 180
    [276] = 242
    [277] = 280
    [278] = 288
    [279] = 264
    [280] = 209
    [281] = 136
    [282] = 40
    [283] = 516
    [284] = 0
    [285] = 2096
    [286] = 2432
    [347] = 8
    [505] = 40
Voltage2 = 0x0000C040@Data
    [15] = 72
    [23] = 41
    [24] = 45
    [25] = 49
    [26] = 33
    [27] = 55
    [28] = 33
    [29] = 4
    [30] = 40
    [31] = 40
    [32] = 9
    [33] = 33
    [39] = 2124
    [40] = 2120
    [284] = 40
    [300] = 54
    [301] = 53
    [302] = 49
    [303] = 43
    [304] = 41
    [305] = 40
    [306] = 48
    [307] = 49
    [308] = 40
    [309] = 72
    [310] = 2120
    [311] = 2120
    [434] = 2172
    [489] = 0
    [505] = 80
    [506] = 2120
    [507] = 2120
    [508] = 2172
    [509] = 2120
    [510] = 32
    [511] = 44

  • Alex,

    can you give a little bit more details about your setup? From your input is is difficult to say, what's wrong.

    I am sure that you know that the analogue input must be between 0V and 3.3V, so I guess the voltage range that you mentioned ("Vpp = 2,8V") means 0V to 2,8V, am I right?

    Regards

     

  • My hardware is an Experimenter Kit USB Docking Station (TMDSDOCK28335). The input signal comes from a signal generator and its range is 0->2.8V. I'm using CCS 4 as ide (fully updated). I have to sample a 50 Hz sine wave with 10 KHz sampling rate so I'm going to build my application over the adc_soc example included in the "Header files and periphereal examples". I've tried the example as it cames and the outputs logged in the tables have no sense at all. I've checked another example, adc_seqmode_test, and it works just fine.

    Thanks for your answer.