Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Greetings TI team,
I am using TMS320F28335 experimenter kit. I want to input sine signal (0-3V) from a function generator into the ADC pin A0 and obtain SPWM from ePWM block . As per the calulation in the manual http://www.ti.com/lit/ug/spru812a/spru812a.pdf,
Digital Value= 0, when input ≤ 0 V
Digital Value =4096 *(( Input Analog Voltage* ADCLO)/ 3) , when 0 V < input < 3 V
Digital Value = 4095, when input ≥ 3 V
Input parameters
Sine signal 0-3V .
Freq = 50Hz
offset = +1.5V
ePWM Block
Timer period = 7500 i.e Switching Freq of 10KHz
up-down counting mode
CCS V5 and Matlab 2015a. Thanks in advance for your help.
Simulink model
The PWM output is as follows:
SPWM output is not continous.