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: Create a table

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Dear Sir.

I have work on

C:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x

ı want create a table for Kp of PI controller.

For example: 

when the output current is 1A, then Kp should be 0.5

when the output current is 2A, then Kp should be 0.4

when the output current is 3A, then Kp should be 0.3

when the output current is 4A, then Kp should be 0.2

Current of İnverter Kp
1A 0.5
2A 0.4
3A 0.3
4A 0.2

// Initialize the PI module for Iq
pi_id.Kp=_IQ(1.0);

how can ı change the code for create a table.

Other question.

I want read voltage of output of inverter by ADC.

Phase R voltage= adc channel 4

Phase S voltage= adc channel 5

Phase T voltage= adc channel 6

how can ı edit the code.

  • user5307035,

    I believe the technique you wish to use is called Gain Scheduling. Below is a post which summarizes some of the related examples using c2000.

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/579995/2129291#2129291  

    To answer

    user5307035 said:
    I want read voltage of output of inverter by ADC.
    Are you using the TMDSHVMTRPFCKIT kit or are you just trying to modify the software or other hardware? I am not very familiar with this exact software, but I suspect it is already using these channels for current or voltage sensing. None the less if you would like an example of how to configure the ADC look at the examples in C2000Ware.(C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2833x\examples\adc_soc)


    Regards,
    Cody