Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 1 변철민.

Similar presentations


Presentation on theme: "Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 1 변철민."— Presentation transcript:

1 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 1 변철민

2 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 2 변철민 1. 디지털 신호 처리 2.C 프로그래밍 3.QRS detection Contents

3 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 3 변철민 심전도의 출력과 QRS 검출 + - Am p AD C Micro proce ss LCD Analog Signal Processing( 기판 ) 12bit fs=200Hz Digital Signal Processing( 프로그램 ) Key pad 데이터 통신 5ms Output 80 BPM 전극 떨어지거 나 이상있는 경우 표시 위한 버튼 과 다른 소리 설 정

4 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 4 변철민 마이크로프로세서에서 작동되는 것 H/W 를 제어하는 C language Firm ware

5 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 5 변철민 #..... main() { Initialize(); while(1) { d=GetECGData(); l=GetContactData(); QRSDetection(); UpdateDisplay(); RespondToUser(); Alarm(); SendData(); } 간단한 예 내장된 시스 템 Embedded system

6 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 6 변철민 sequence Sampling H(Z) 1.FIR Filter (Difference Equation) 0 Row data 1.IIR Filter B 가 하나라도 있으면 IIR 없으면 FIR

7 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 7 변철민 예)예) ( 코딩 ) int MyFirstDF(int d) { Static int x1, x2, y1, y2; int y; y=d+(x1 >2)-((y2+y2+y2)>>3); x2=x1; x1=d; y2=y1; y1=y; return(y); }

8 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 8 변철민 LPF int QRS_LPF(int d) { Static int y1=0, y2=0, x[26], n=12; int y; x[n]=x[n+13]=d; y=x[n]- (x[n+6]<<1)+x[n+12]+(y<<1)-y2; y2=y1; y1=y; if(--n<0) n=12; return(y); } Integer Filter Ring Buffer Digital Filter (real time, sample interval 간격 ) 13 개 최근 두 개의 buffer 에 동시에 data 를 써준다 처음에 가지는 시간들은 관련이 없지만 버퍼에 내용이 다 차면 정상적으로 동작한다. 최근 전 전 제일 old 한 데이터에 덮 어쓴다.

9 Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 9 변철민


Download ppt "Dept. of Biomed. Eng.BME302: Medical InstrumentationKyung Hee Univ. 1 변철민."

Similar presentations


Ads by Google