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.

TMS320F280041C: ADC problem

Part Number: TMS320F280041C
Other Parts Discussed in Thread: MOTORWARE,

Tool/software:

Greetings! I have a working PCB using your TMS320F280041C. It is a frequency inverter. So I made a second pcb absolutely the same as the first one(they came together 5 pcs). But this time only one of the selected ADC channels is responding. I am using A2(pin 2), A6(pin 6), A8(pin 37), A10(pin 40), B2(pin 7), B4(pin 39), C1(pin 29). I haven`t made any changes in the hal.c of the motorware library form the working vertion. The PGA init is total empty. 

But only 1 or 2 pins seems to respond and actually calculate the voltage value. Any suggestions what can cause this?

I changed the uC with brand new(all the same it wasn`t demaged)...

  • Update on the case. I made test to the both boards. On the working one I`ve noticed that if there isn`t anything connected to the ADC pin as a result I receive a small value. On the second there are only "0". I`ve noticed that ADCEVTSTAT reg is set to 0x1111 on the working one. I checked the ADCPPBxCONFIG regs and they are all set to 0 for both PCBs.

    I tested the not working PCB with adc_ex2_soc_epwm and It seems the channels are working 1 by 1. It has to be some setting....

    Can you help me?

    Thanks!

  • HI,

    I am reviewing this thread. I will get back to you shortly.

    Thanks,

    Susmitha

  • Hi Pavlin,

    Did you run adc_ex2_soc_epwm example on both working and non-working boards? What does ADC results say?

    What package of F280041x are you using? can you confirm if example also support that package?

    Thanks,

    Susmitha

  • Yes! It is working on both pcbs. I added all neccessary ADC pins and everything is fine. The problem is only with motorControl SDK. I`ve noticed that I receive an error on the non-working pcb->

    Trouble Reading Register PC:
    (Error -1142 @ 0x0)
    Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
    (Emulation package 20.0.0.3178)

    I am not sure if this has something in common with the problem.

    I am preparing a third pcb and tomorrow I will have information about that...

  • Hi! I was my fault! I have made a small mistake by omiting the connection between GND and pins 26,27. So the adc worked, but not correctly. Like it was in a comparison mode. And this fulled me that everything works fine in the example. But when I added a potenciometer on the ADC pins I menaged see truely the problem.

    Thanks!