Hello,
I got the RM42 launchpad and I am planning to use a lmd18200 or drv8848 to drive a dc motor. I connected the N2HET00 and N2HET02 to the Ain1 and Ain2 for the DRV and N2HET04 for the PWM in the LMD with a GIO pin for direction. I got Code Composer 6 and Halcogen and did project 0 where I make the LED blink. But I still don't understand how Halcogen works, especially when we generate the het.h and het.c file. I tried doing similar steps for the blinking LED to the DC motor but realized that I need to have varying duty cycles and frequency. I look through the het.c files and saw pwmStart() and other functions like PWMSetSignal(). I am confused on the implementation of these functions like the parameters and how to use them. If someone can point me in the right direction on using Halcogen and CCS for motor control, I would appreciate it.
Thank you,
Robert Lee