Part Number: TMS570_SAFETY_MCU_DEMOS
Looking to use the N2HET to read the duty cycle of a PWM signal.
I dont have the HET idE (although I tried to download it, but the TI page with the supposed link does nothing)
Firstly, I was able to use Halcogen to create a PWM out...then I was able to vary the duty cycle and period dynamiclly using the HET functions
(i.e. pwmSetDuty(hetRAM2, 0, 75);)
the minimum frequency of the PWM I will be measuring is 100Hz....max will be most likly be under 1KHz
I tried to set up the "Capture" block in Halcogen....and then use the void capGetSignal(hetRAMBASE_t * hetRAM, uint32 cap, hetSIGNAL_t *signal) function
......to no avail unfortunately...
just looking for a piece of example code, or "direction from an expert" on how I can do this..?
(with the capGetSignal function: set up Halcogen to use Capture 0 directed to N2HET2-14,
I then created a variable "TempPWMA"....and in the code I call: capGetSignal(hetRAM2, 14, TempPWMA) ;
???
one more thing....I'm not the best coder...just trying to do some simple things for testing hardware.
Per usual I appreciate any help/response.