Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
I am new to CCS. I downloaded CCS 8.0 and want to develop a code to run a buck converter using TMS320F28335 developers kit. Can someone provide me a sample code and header files that I need to read the data of the ADC pins, compare those and generate a PWM output on ePWM pins?
Control logic I am trying to develop:
Generate error signal from comparing the values across two ADC inputs (reference and feedback) if the error is positive (i.e. reference > feedback) increase the duty cycle of ePWM output else decrease the duty cycle of ePWM.
Also if I want to read the corresponding digital value for input voltage on the ADC pin how do I do that?