Part Number:TMS320F28069
Tool/software: Code Composer Studio
Hello,
For my project, I am using a custom board with TMS320F28069 and DRV8305 with 6 FETs to control an ACIM. I have verified all parameters using Lab 2c. V18 Motorware is not working for me, the left pane is never in, but I am able to run the labs using CCS v9.
I want to control the RPM of this motor by a duty cycle signal. This would be done using a square-wave duty cycle generator, going as input to the TMS320F28069. I found out on the: http://www.ti.com/lit/ug/tiduak1/tiduak1.pdf (BLDC Reference design for ESC control) how the TMS320F28027F communicates with a flight controller interface using the eCAP modules which go as Speed reference to the controller. For the TMS320F28069, how do I do this? I know that there are 3 eCAP modules available for the F28069, but it mentions that I have to configure the pin. Can someone please explain, where in the Hal.c file, do I do the configuration? Is it in ' void HAL_setupGpios(HAL_Handle handle) ' ? Will it help if I use HRCAP (High ResolutionCAP) rather than eCAP (enhancedCAP) to read the duty cycle input? I am using the 100pin PZP package for the 28069, where Pin # 64 is the eCAP pin, if I have the signal going in here, it should work right? I am still learning about the InstaSPIN control and getting used to CCS. I have a LaunchXL-F28069 launchpad and BoostXL-DRV8305 booster pack to do my testing and evaluation. It should be the same code that goes in this combination that would eventually go in my custom board. So I am trying to have a board that, once it is powered-on, it goes into motor control and according to the DutyCycle input, it varies the motor speed. I've narrowed it down to the following 3 steps that I would be following:
- Use the launchpad and booster pack combo to identify motor parameters and do current and speed tuning of the controller to maximize torque using the labs.
- Somehow, get this tuned control to work with external duty input to control motor RPM.
- Export the code to the custom board.
If I could get some clarity on my doubts (step 2), that would be great.
Thanks!