Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Dear Sir


Dear Team,
I am currently working on pulse capture using the TMS570LC4357 microcontroller, and I am using HET2_0 and HET2_2 as capture pins. My goal is to capture a pulse with a period of 1000 µs.
I have configured the capture functionality in HALCoGen, and I have attached the relevant configuration screenshots for your reference.
However, I am observing the following issues during runtime:
-
The measured period value fluctuates slightly — sometimes it reads as 1049 µs.
-
When the input pulse is turned off or disconnected, the last measured period value remains unchanged, instead of being reset or updated.
I would appreciate your guidance on:
-
How to handle the case where the pulse input is no longer present — i.e., how to reset or detect the absence of signal?
-
Any suggestions to improve the accuracy of the period measurement or filtering techniques to avoid noise or fluctuations?
The Function Which i was called in the loop
capGetSignal(hetRAM2,cap0,&tz_Chopper1_Feedback);
capGetSignal(hetRAM2,cap2,&tz_Chopper2_Feedback);