I want to thank toni1000 and jingxizhang for a great project in ECGPrimer1.1.
I have built a simple ECG monitoring system using the Primer1 and their ECG program and modified the code to allow it to work in real-time for my application. This required removing the digital filtering code and replacing it with an analog filter on the input of the DAC. I know it's a terrible thing to replace digital with analog but I needed speed. The display is only required while the unit is acquiring the ECG signal, about 5-10 beats. Then the code turns it off and displays only critical data once per beat. The ADC AWD (analog watchdog) is used to detect the R wave. The SysTick is set to 5msec. On each interrupt the code looks at the AWD to determine if R wave has begun.
I want to port the code to a Primer2. Do you have any suggestions on what kind of problems I may face? Are there any examples I could look at?
Thanks
Rob