As far as using timers is concerned, there is a timer method that I've yet to implement, Input Capture. This would allow 4 signals per timer to be measured. In Input Capture mode the timer is clocked by the internal clock. When one of the 4 input channels sees a signal on it's pin the counter value is copied into a separate register that a peek command can access. Hopefully within a week or so I'll get to the input capture modes part of the project. p382 RM0008 Reference manual 15.3.5 Input capture mode http://www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171190.pdf/files/CD00171190.pdf/jcr:content/translations/en.CD00171190.pdf
@ClearMemory041063 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As far as using timers is concerned, there is a timer method that I've yet to implement, Input Capture. This would allow 4 signals per timer to be measured. In Input Capture mode the timer is clocked by the internal clock. When one of the 4 input channels sees a signal on it's pin the counter value is copied into a separate register that a peek command can access. Hopefully within a week or so I'll get to the input capture modes part of the project.
p382 RM0008 Reference manual 15.3.5 Input capture mode
http://www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171190.pdf/files/CD00171190.pdf/jcr:content/translations/en.CD00171190.pdf