meenakshi_r
Newbie level 2
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
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