Other Parts Discussed in Thread: TMS320F28027, CONTROLSUITE
Hi, I am taking a digital control class and have a project in which I have to control the yaw rotation of a RC helicopter through motor-speed control utilizing a C2000 MCU with the TMS320F28027 LaunchPad XL. I am having difficulties while coding the C2000, it's my first time coding a MCU and many of the examples are a bit tough to figure out. For example(this is from the EPwmDCEventTripCompare):
// Global variables used in this example
uint32_t EPwm1TZIntCount;
uint32_t EPwm2TZIntCount;
In here, are the variables EPwm21TZIntCount and EPwm2TZIntCount specific names that refer to specific pins in the MCU or are they chosen arbitrarily.
Next question: When variables are initialized I see something like:
CLK_Handle myClk;
there are a couple more like COMP_Handle, Gpio_Handle, and so on. What is the XXX_Handle thing? Each variable made(myClk, myGpio, and so on) is later initialized as a handle with a line as follows:
myClk = CLK_init((void *)CLK_BASE_ADDR, sizeof(CLK_Obj));
What does initializing a handle mean? Finally(for now), where can I find a list of general commands to use? I see so many in the program example that I have never seen before and that are directly related for the C2000, is there a guide for really new people? I have tried figuring out the examples and watched the tutorials of the one-day workshop in youtube and I'm still having a really difficult time.
Thank you for all and any help in advance.
