These are chat archives for machinekit/machinekit

28th
Sep 2016
zhivko
@zhivko
Sep 28 2016 22:04
Hello guys and gals!
What would be apropriate hal component to get frequency of AD board (http://store.mesanet.com/index.php?route=product/product&product_id=128) on BeagleBone?
Is it PRU generic? The THCAD has a frequency output range of approximately 100 KHz to 1 MHz and it could be divided by 128 at most (to adapt for BBB speed).
I am looking at hal_pru_generic.encoder, but it seems main objective for encoder is holding count and position - but I need frequency - so number of counts in time period. Should I go with copy change this code (hal_pru_generic) or anybody has any better idea? maybe just resetting counter to 0 at certain periods could be additional functionality of hal_pru_generic for BBB ? Thoughts?