Hi,
Dose AM5708 have timer capture function? Or how to realize that function? Any driver or document?
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.
Hi,
Dose AM5708 have timer capture function? Or how to realize that function? Any driver or document?
The customer used timer to capture the A and B phase outputs of encoder to test the speed.
Hi Nancy,
Yes, AM570x device support Timer capture mode. For more details refer to:
AM570x DM - section 5.10.6.9 Timers
AM570x TRM - sections 22.1 Timers Overview and 22.2 General-Purpose Timers
For event capture support, you might also explore AM570x PWMSS ECAP module and PRU-ICSS ECAP module.
Regarding SW driver support guides, I need to know if you are planning to use Linux, RTOS or else?
Regards,
Pavel
Hi,
Thanks for reply.
It is plan to use linux. Are there any drivers which related to timer capture mode are provided to refer to?
Nancy,
From what I am able to find, capture mode is not supported in timer driver. We have something in below files, you can check if that will be in help for a starting point.
linux-4.19.38/drivers/clocksource/timer-ti-dm.c
linux-4.19.38/include/clocksource/timer-ti-dm.h
linux-4.19.38/drivers/net/ethernet/ti/cpts.c
Check also below e2e threads:
Regards,
Pavel