TIDUF17 November 2022 TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1
Run the code by going to Run → Resume or clicking the Resume button in the tool bar. Check the following:
#define USER_MOTOR1_FREQ_LOW_Hz (10.0f) // Hz
#define USER_MOTOR1_FREQ_HIGH_Hz (200.0f) // Hz
#define USER_MOTOR1_VOLT_MIN_V (10.0f) // Volt
#define USER_MOTOR1_VOLT_MAX_V (200.0f) // VoltAfter that, the motor spins with a setting speed in the variable motorVars_M1.speedRef_Hz, check the value of motorVars_M1.speed_Hz in Expressions window, the values of these two variables should be very close as shown in Figure 3-10.
// set datalog parameters
datalogObj->iptr[0] = &motorVars_M1.adcData.I_A.value[0];
datalogObj->iptr[1] = &motorVars_M1.adcData.I_A.value[1];
Figure 3-10 Build Level 2 Variables in the
Expressions ViewThe Graph tool can be used to display the DATALOG buffers.
Figure 3-11 Build Level 2 Data Logged
Current Readings in the CCS Graph ToolThe over current fault will trip the PWM output and also be reflected in the fault flag variables.
Figure 3-12 Build Level 2 Over Current
Protection Check in the Expressions View