I am currently building a Heart rate monitor based on an optical sensor attached on the Index finger and i am using PIC16F84A microcontroller for counting the beats per minute and drive 3 7-segnebt Displays. I ve designed the first part of the circuit for amplification and filtering but i am having some problems for programming the PIC. I am using Flowcode for programming the PIC but there are not a lot of tutorials or helpful articles about how to use Flowcode. Actually what i need to do is to program the PIc to count the time between two peaks(digital pulses in its input RB0) and do that for about 10 seconds and after to give an average result (Heart Rate) in beats per minute (Heart Rate=60/Time). If somone can help me and knows how to use Flowcode please reply to me and i will supply you with the Schematic Diagram and ask more specific questions. Actually at the moment i am having problems with the interrupt which is running all the time and the program doesnt return back to the main. I hope somebody can help me.
Thanks
Thanks