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 <[email protected] > <javascript:>> 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 I'm not sure it that would be > appropriate for this use case. > > > If you know it is a square wave input, the eCAP pulse counting would work > well. > > > > For reference, the question comes from this github issue: > > https://github.com/adafruit/adafruit-beaglebone-io-python/issues/204#issuecomment-347415768 > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/5045e3af-ac56-4d54-9cd2-2188059b55d8%40googlegroups.com > > <https://groups.google.com/d/msgid/beagleboard/5045e3af-ac56-4d54-9cd2-2188059b55d8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fed48dc1-cb53-4371-9794-b0ea15b86c5d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
