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.

CCS/TMS320F28054F: Reading ADC registers

Part Number: TMS320F28054F
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I'm trying to read the values that certain ADC pins are receiving. I see that the struct ADC_RESULT_REGS in F2805x_Adc.h contains 16 ints (0-15) seemingly described as "conversion result buffers". Is this what I'm looking for, and how do they correspond to the different input pins of the ADC?

I'm new to CCS and fairly new to embedded programming in general, so any thorough explanations are very much appreciated.

Thanks

  • Braden,

    Yes, you are looking at the correct registers.  The technical details for the ADC are contained in the device's TRM.

    You can also find ADC examples in C2000Ware: ~\C2000Ware_XXXX\device_support\f2805x\examples\c28\

    In case you are not committed to F2805x specifically, I would recommend looking at F28004x as well.  It has most of the same high-level features as F2805x, but implemented using a newer generation of design.  The C2000 Peripheral Guide is useful for comparing devices from this perspective.

    These workshops will help with getting started on specific C2000 platforms, but most of the information applies across devices.  There is not an F2805x workshop -- the closest would be F2803x or F2806x.  But again, if you are starting from a blank slate, F28004x is a good starting point.

    -Tommy