This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Using PWM as A Clock for Periodic Taks

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hello, 

thanks in advance for your help.

I am quite new to the environment so I apologise in advance for any lack of knowledge.

I am currently working on a communication software (university project) that is based on periodic notifications(5ms) and the consequent actions afterward which due to an overload of the computing power of the board does not permit me to refine my clock to less than 1ms. So I turned to the HET and thus the PWM as a possible hardware clock independent from the software. I am able to generate several pwms through HALCoGen and they correctly run on my board. What I am having issues with now is to use the edge counter on the pwm I generated so that I can have a proper timer to use as clock with the precision I need. In particular i need some advice on maybe some specs on HALCoGen that I may have missed.

Moreover I would like to know if you could help on how to implement an edge notification if I set my period to 1ms that will trigger a task for example.

I am attaching my HALCoGen configurations so that you may check them (the period of 5 seconds was purely for trials).

Last but not least: is there a HALCoGen manual on which I could find some insight on all its functions (on the pin setup tab all is quite new to me for example)

Thank you again to anyone who is able to help