Hi everyone. I need to measure the frequency with a BeagleBone (400 kHz) and for this I would like to use the BeagleBone timers (F = 1/((timer1+timer2)/2)). The beaglebone has four timers (TIMER4, TIMER5, TIMER6, TIMER7). But I can’t find how to read the timer value. I found how to do this only for the 3.8 kernel, and the osp.3 file is missing in the fourth kernel (GitHub - ddrown/pps-gmtimer: Linux kernel module PPS Client Driver using OMAP Timer hardware).
PS: I would like to measure the frequency using timers without installing any additional libraries. But if it is not possible to do this with the help of timers, then please tell me how can such a frequency be measured at all?
@RobertCNelson , wow, I found little information on the Internet, how to measure the frequency using a timer4-7 (https://github.com/ddrown/pps-gmtimer). If no one here knows how to do it… Then I will collect kernel 3.8 or look for another way (without use beaglebone, mabe). Thanks for the answer.
P.S.: Beaglebon can measure such a frequency?(400KHz). Are there built-in tools for this (maby not timer, maybe something else)?
Hardware-supported frequency measurement is also available in the CAP and QEP modules in the PWM subsystems. That’s on P8_12, P8_35, P8_41, P9_28, P9_42 (and SD_10), so six channels in total.
@DTJF , as I understand it, these actions are performed using a non-built-in libpruio library. But I’m interested in solving this problem using the built-in beaglebone development tools. Anyway, thanks for the answer.
@DTJF it’s the master branch of this repo right https://github.com/DTJF/libpruio ? at this point it should just be installed by default… Today’s looking busy so it wouldn’t be till later tonight…
@DTJF , nothing wrong. This is good documentation. But still, I would like to clarify what is “Ball The CPU ball number to configure”.
Your links also do not provide a concrete answer to my question.
For beginners a ball is a header pin. That’s explained in the first section on that page. For experts ‘ball’ indicates that libpruio can also control internal lines, ie the user LEDs or pins at the JT header/in the SD card slot. That terminology is from the CPU docs, read there for further information.
Who can provide concrete answers without knowing the programming language you’re refering to? The parameters vary depending on the API (C, FreeBASIC or Python).
Since you’re refering to an OOP member function, I guess you don’t use C. In that case you need two parameters
Ball: The pin to wire the frequency signal (P9_28, P9_42, SD_10 → see table).
FLow: The smallest frequency (timeout in case of no input).