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.

TMS320F28377D: TMS320F28377D A DC module not working

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hello,

I am working on the  TMS320F28377D microcontroller and I try to configure ADC module using SOC triggering by software only option selected ( AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 0).

But unfortunately the adc module properly working and result register not found any values while debugging. Please help me.

Kindly share the exact adc configuration procedure. 

  • Shiju,

    The software-triggered ADC examples in C2000Ware would be good references for the configuration:

    • ~\C2000Ware_XXXX\device_support\f2837xd\examples\cpu1\adc_soc_software
    • ~\C2000Ware_XXXX\driverlib\f2837xd\examples\cpu1\adc\adc_ex1_soc_software

    -Tommy

  • Thanks for your response,

    I checked the example code, 

    As of my understanding  AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 0;  bit for software-triggered ADC operations. But unfortunately I didn't see this bit operation in the sample code. 

    Could you please help me

    Regards,

    Shiju

  • Shiju,

    Did the C2000Ware example run as expected for you?

    The TRIGSEL field selects a hardware-based background trigger for initiating the ADC SOC. The value of zero will disable hardware triggering, which is why it is the recommended setting for software triggering. The reset value for the TRIGSEL field is zero so it is technically not necessary to re-clear the field when initializing the ADC out of reset. I would personally recommend re-clearing to zero as a best practice for improved code readability and portability.

    -Tommy

  • Hi,

    Worked with C2000Ware example, I have provided 3.3v as adc input and the result register shows 0x47E (1150) not showing exact result.

    secondly my workaround result registers shows converted result value and assigned to one result variable. But unfortunately the result variable not showing the the result register value, its value is zero. Any configuration problem?

  • Shiju,

    Something does not seem right with your observations. An input of 3.3V should produce a digitized value around full-scale (4095).

    I assume that you are working with a custom board design based on the part number. Is this exercise a part of verifying the ADC functionality on the board? Would you happen to have a TI EVM available for comparison?

    -Tommy