We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I was thinking whether its feasible to use a 8-bit counter with auto-reload to capture the number of peaks detected within 100ms.
The 1120ms is the average time of the time between 2 heartbeats for 5 cycles?
If so, how can i use programming to measure the time between the 2 heartbeats?
You will need to set up one time to generate your "base" clock (1 millisecond ticks). Then you use either an interrupt or polling (heart rates are slow enough to allow this) to wait for the heartbeats.