Hello dear community,
I´m currently investigating on AM335x using a beaglebone board.
From datahsheet of the device I know that the eCAP module can function either in PWM mode or Capture mode with :
Dedicated external pin, 32 bit Time Base counter, 4 x 32 bit Time-stamp Capture registers (CAP1-CAP4), Input Capture signal pre-scaling and Interrupt capabilities on any of the 4 capture events.
In the TI guide http://processors.wiki.ti.com/index.php/AM335x_PWM_Driver%27s_Guide it is quite well described how to use for PWM from Linux shell level, but no glue on using ecap for event capturing.
Looking on the Linux filesystem ( using Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2012.11.22.img.xz distribution), I see ecap supported :
root@beaglebone:/sys/class/pwm/ecap.0# ls
device duty_percent period_ns power run tick_hz
duty_ns period_freq polarity request subsystem uevent
Everything seems to be promising , using ecap from Lunix shell.
Do anybody know how to use ecap for event capturing from Linux shell ?
Many thanks in advance
BRgds
Thomas