Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Help me with converting pulses from seconds to minutes in PIC-based ECG

Status
Not open for further replies.

K.R

Newbie level 4
Joined
Oct 27, 2007
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
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.
 

Pavel_S

Junior Member level 2
Joined
Nov 3, 2007
Messages
22
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,283
Location
Warsaw, Poland
Activity points
1,407
pic based ecg

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.
 

heychel

Newbie level 5
Joined
Nov 12, 2007
Messages
10
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
1,324
pic ecg

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
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top