Page 1 of 1

Period of a square wave

PostPosted: 20 Oct 2016, 00:52
by arthuki
Hello you all!

I need to calculate hot much time it takes for an input to go from LOW to HIGH and then to LOW again. Basically, I want to know the period of a square wave generated by the LM555 timer.

I am using Qt Creator and programming in C++.

I am having trouble at programming this code in C++ for the beaglebone.

Do you guys have any piece of code in C++ that may help me?

Than you very much