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/TMS320F28335: TMS320F28335 TMDSHVMTRPFCKIT Current ADC measurement

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi All, Happy new year.

I have some questions during the study of Sensor less FOC control, hope any expert here can help on this.

1. Current feedback circuit. 

With TI provide sensor less FOC control code, inside the code of current ADC function taken reading of ADCRESULT 1 AND 2 for phase current a, b.(See pic 1) But in the provided hardware diagram shows the phase current was not using ADC 1, 2 as current feedback. (See pic 2). I had searched and read through the ADC library but quite confuse on the sequence method they state. Anyone can tell where is this ADCRESULT 1 and ADCRESULT 2 taken from which ADC?

2. Voltage feedback circuit

With the function of sensorless FOC control, why the diagram shows phase voltage measurement?  The macro of Phase voltage calculation able to calculate the phase voltages based on DC bus voltage and switching Ta,Tb,Tc. Seems this voltage feedback not used in the sample code. Are these used for optional development purpose?

Pic 1

Pic 2

  • 1. ADCRESULT 1 and 2 doesn't mean ADC channel 1 and 2. The result register number is the converted order, for example, ADCRESULT1 is for AdcRegs.ADCCHSELSEQ1.bit.CONV01, ADCRESULT2 is for AdcRegs.ADCCHSELSEQ1.bit.CONV02. The sampling ADC channel is set in ADCCHSELSEQ1 register also. So the real adc channels for phase U and V are ADCA1 and ADCB1, and then set AdcRegs.ADCCHSELSEQ1.bit.CONV01 = 1, AdcRegs.ADCCHSELSEQ1.bit.CONV02 = 9 that you might find below code in the project.

    // Initialize ADC for DMC Kit Rev 1.1
    ChSel[0]=1; // Dummy meas. avoid 1st sample issue Rev0 Picollo*/
    ChSel[1]=1; // ChSelect: ADC A1-> Phase A Current
    ChSel[2]=9; // ChSelect: ADC B1-> Phase B Current
    ChSel[3]=3; // ChSelect: ADC A3-> Phase C Current
    ChSel[4]=15; // ChSelect: ADC B7-> Phase A Voltage
    ChSel[5]=14; // ChSelect: ADC B6-> Phase B Voltage
    ChSel[6]=12; // ChSelect: ADC B4-> Phase C Voltage
    ChSel[7]=7; // ChSelect: ADC A7-> DC Bus Voltage

    // Initialize ADC module
    ADC_MACRO_INIT(ChSel,TrigSel,ACQPS)

    More detailed description, you might have a look at the technical reference manual of ADC of F28335. (www.ti.com/.../spru812a.pdf)

    2. Right, the sensorless-FOC in controlSUITE calculates the phase voltage according to the PWM duty and dc bus voltage. But the hv-kit can support instaSPIN-FOC algorithm which needs phase voltage sampling to estimate the BEMF.
  • Hi YanMing Luo. Thanks for your proper reply. You have answered my questions clearly. Have a nice weekend.