CMOS IC implementation of heart rate detection hardware