[beagleboard] Measure frequency of a square wave input without PRU?

2017-11-27 Thread Drew Fustini
Any suggestion on how to measure the frequency of a square wave input? Signal would be 3kHz or less. The goal is to use the appropriate AM3358 peripherals from the ARM core, not the PRU. The eCAP peripheral comes to mind but I'm not sure it that would be appropriate for this use case. For re

Re: [beagleboard] Measure frequency of a square wave input without PRU?

2017-11-28 Thread Jason Kridner
> On Nov 28, 2017, at 12:50 AM, Drew Fustini wrote: > > Any suggestion on how to measure the frequency of a square wave input? > > Signal would be 3kHz or less. The goal is to use the appropriate AM3358 > peripherals from the ARM core, not the PRU. > > The eCAP peripheral comes to mind but

Re: [beagleboard] Measure frequency of a square wave input without PRU?

2017-12-20 Thread thomaslolson63
As far as I can tell there is no support in the Debian kernel for the eCAP feature. You can use eCAP to output a PWM signal but I can't find anything that supports the eCAP capture feature. On Tuesday, November 28, 2017 at 8:44:53 AM UTC-6, Jason Kridner wrote: > > > > On Nov 28, 2017, at 12:50

Re: [beagleboard] Measure frequency of a square wave input without PRU?

2017-12-20 Thread thomaslolson63
I wrote a C program that uses inotify to watch the gpioxx/value file. It can see changes up to 20kHz, so 3kHz should be no problem at all. On Tuesday, November 28, 2017 at 8:44:53 AM UTC-6, Jason Kridner wrote: > > > > On Nov 28, 2017, at 12:50 AM, Drew Fustini > wrote: > > Any suggestion on ho