I followed the "Counting edges" section and got it working - very happy.
I'd like to capture 3 inputs using this method. Is this possible using more channels on TIM1? Am not clear how pin A8 gets associated with TIM1 CH1 and how I'd do this for other pins. Any pointers would be appreciated.
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.
Hi, I read this page with interest: http://www.espruino.com/STM32+Peripherals.
I followed the "Counting edges" section and got it working - very happy.
I'd like to capture 3 inputs using this method. Is this possible using more channels on TIM1? Am not clear how pin A8 gets associated with TIM1 CH1 and how I'd do this for other pins. Any pointers would be appreciated.
EDIT: TL;DR
Completed project write up here: https://github.com/jugglingcats/pulse-counter
Thanks,
Alfie.