Model Based PacemakerImplemented a Pacemaker using MATLAB Simulink with hardware code generation for NXP FRDM-K64F