Hello
There aren't any examples for Timer Capture and Compare functionality.
Can you point to any resource / exiting APIs that can be used to measure external signal and generate PWM signal using Timer module ( not EPWM)?
Thanks
Amey
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.
Hello
There aren't any examples for Timer Capture and Compare functionality.
Can you point to any resource / exiting APIs that can be used to measure external signal and generate PWM signal using Timer module ( not EPWM)?
Thanks
Amey
Hello Amey,
Which core are you looking at using, and what OS is running on that core?
Regards,
Nick
Hello Nick
I was testing on R5_0_0 core and non rtos based example
Thanks
Amey
Hello Amey,
Is there a specific reason that you want to generate a PWM signal using the Timer module, and NOT the EPWM module?
Please keep in mind that there are also other ways to send a PWM output signal:
ECAP peripheral: https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/09_01_00_41/exports/docs/api_guide_am64x/DRIVERS_ECAP_PAGE.html
PRU PWM instances (used in our motor control examples, I'm not sure if there are specific drivers for controlling PWMs directly from R5F core)
PRU software implementation (PRU can manually toggle output signals high or low)
I am sending your thread to our subject owner for MCU+ SDK timer module. I am not sure whether we actually have MCU+ SDK drivers for implementing a PWM with the timer peripheral.
Regards,
Nick
Hello Nick
I was going through the timer module (in Tech Ref doc) and understood that the module can generate PWM signal and measure external signal. There is no specific use case, as of now but just part of understanding the timer module. I did not find any example for the same nor any previous references in the forum
I would also like to see an example for Timer Capture function (i.e. measuring an external signal time period )
Yes I understand the EPWM module can be used. Will go through it as well
Thanks
Amey
Hello Amey,
Thanks for your response.
I would also like to see an example for Timer Capture function
Allow me sometime to get back to your requirement for the Timer Capture example.
Regards,
Vaibhav
Hello Amey,
I am reading through the TRM and trying to make the code up and working as per the instructions given to demonstrate Timer Capture.
I will keep you updated with any progress.
Thanks for your patience.
Regards,
Vaibhav
Hello Amey,
Apologies in delayed responses as I was involved in some escalations.
Yes I understand the EPWM module can be used. Will go through it as well
As mentioned earlier as well we would suggest you to use EPWM.
As far as Timer Capture is concerned, I had a chance to go through the TRM and make a block diagram for a basic flow and the registers that will be involved for the Timer Capture implementation. Its shown below.

I will keep you updated with the progress on this.
Regards,
Vaibhav