Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

PIC program to calculate heart rate

Status
Not open for further replies.

meenakshi_r

Newbie level 2
Joined
Dec 13, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
hii
i m new to the world of PIC. I have gone through the datasheets of PIC. Now i need to calculate the heart rate using PIC. My analog circuit gives pulsed output and i need a PIC to calculate the pulse rate. The algorithm can be as follows :
1.Start
2.Set up timer1 as internal timer
3.Enable the internal interrupt int_RTCC
4.Enable external and global interrupts
5.Initialize the timer to start counting from the value 0
6.Set the timer for time interval 66ms
7.Repeat the step 225 times(15 seconds)
8.count the no. of external pulses in the external subroutine
9.Multiply the value by 4 to get the pulse rate.

M doubt lies in how to use the timer .How can we initialize the timer with 66 ms???

Added after 3 minutes:

i would like to use PIC16F877A
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top