| Author |
Message |
K.R
Joined: 27 Oct 2007 Posts: 4
|
27 Oct 2007 18:15 ECG PIC |
|
|
|
Hello guys
I've designed a circuit based on PIC16F628 that counts the heart beat of humen in beat per minut bpm, with a bad luck I've stucked in the conversion of pulses from secondes to minutes as the heart beat must be in minut.
Note: I'm using assembly language.
Could any body help or provide a full codes please.
Regards.
|
|
| Back to top |
|
 |
Pavel_S
Joined: 04 Nov 2007 Posts: 20 Helped: 3 Location: Warsaw, Poland
|
04 Nov 2007 2:18 Re: ECG PIC |
|
|
|
If you have time between pulses in miliseconds, you can convert it into bpm according to formula:
x=60000/T_ms
T - heartbeat period in ms
but try to average time from more than one pulse to avoid disturbances.
|
|
| Back to top |
|
 |
heychel
Joined: 12 Nov 2007 Posts: 10 Helped: 1
|
12 Nov 2007 21:23 Re: ECG PIC |
|
|
|
| Count the time in tens of seconds between two input pulses and use a table to convert the value into puls/minits (retlw p/m) so you have no mathematical problem
|
|
| Back to top |
|
 |