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.

TMS320F28P550SJ: arc detect on multi channel

Part Number: TMS320F28P550SJ

Tool/software:

Customer develop Arc Detection base on TI P55 solution, totally 3 independence channel and select the different channel by using switch-case as below code.

The channel 1 could run well, however channel 2 also report arc result when channel 1 happen arc condition, even st_ArcInfo.uwArcChannelNumber=2 or st_ArcInfo.uwArcChannelNumber=3, could you help review customer code if anything usage wrong?

  • Hello Terry 

    Could you please ask customer to test each channel separately first. Lets see if each channel works as expected. If yes, there may be something wrong in the channel switching.

    Can you also tell if customer is using DPSDK version of Arc fault firmware and AFE board?

    Thank you

    Amir Hussain

  • Hi Amir

    Customer is using DPSDK of Arc Fault firmware and AFE board, they could run well for each channel separately in same firmware, only happen issue while enable 2 or 3 channel instead of only 1 channel.

    As you may see in the code capture, they store each channel ADC data by independence buff like ADC_INPUT_A[], ADC_INPUT_B[], ADC_INPUT_C[]; however do analyze for each channel by using common variable like model_input_top[], result.buf0[], fftwindow[], what I want to double confirm if they need clear these common variable before using in each channel analyze?  

  • Hello Terry

    In the original code, the ADC data of the selected channel goes to buff[A]. When buff[A] is full, this data gets processed for ARC detection. In the mean time buff[B] is filled with the data of same channel. When customer switches the channel, does he make sure that the buff[A] and buff[B] will take the data from the other channel? What I want to convey is that both buff[A] and buff[B] takes data from the selected channel. These buffers are not meant to take data from two different channels.

    Thank you 

    Amir Hussain

  • Hi Amir

    We solve this issue by create three buff for model_input_top[], and use it independence for each channel.

  • Happy that it got resolved.

    Thank you 

    Amir Hussain