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.

Configure ADC Channels

Other Parts Discussed in Thread: TMDSHVMTRINSPIN, MOTORWARE

Hi, I have the TMDSHVMTRINSPIN for testing. Now I try to integrate the ControlCard to existing PCB therefor I have to configure the ADC Channels in Software. I guess I have to do it in the drv file, but how? And where is assignment IV -> ADC-B5 taking place?

Thank you!

  • sw\drivers\drv\boards\hvkit_rev1p1\f28x\f2806x\src\

    drv.c

    DRV_setupAdcs

    This is the link between the pin and the Channel

    drv.h

    DRV_readAdcData

    this is the link between the Channel and the variable in the structure

    I would create your own "board" here, coping over the hvkit_rev1p1 files and modifying as needed

  • Hi, okay I think I the ADC is done now.

    But some Questions are left.

    The PWM4 is connected to PFC on my own board PWM4 is used for the Inverter. Unfortunately I can’t find anything about the PFC in the lab which I try to configure for my own board.

     Do you have any hints how I can disable the PFC?

    For what is CLR-FAULT on GPIO_9? I can’t find it in the Schematic.

    Thanks in advance!

  • the CLR-FAULT is connected to the below circuit, bottom of page 1

     

    Not sure I understand your PFC questions.

    PFC is not enabled in the MotorWare projects, we don't use at all. If you need to use PWM4 just set-up your pwc.c /.h files as required.