You are on page 1of 6

Applied Programming 1 – Practical Course

FH Oberösterreich - Campus Linz - Medizintechnik


1
Medical Engineering: Applied Programming - Low Level Programming 2

Introduction

Winter semester:
- Application:
real time ECG generator → DAC → ADC (sampling ECG-signal) → data transmission →
→ data reception → R-peak detection → calculation and display of beats per minutes

- Programming language: Matlab, C

Paper: ieeetbe50p289.pdf

LED
Low level programming
Programming language C
differential equation
𝑧ሶ = … ECG-value-dependent light intensity

TG12864B

Matlab

• Preparation of the signal z • ECG-Generator • ADC • receive data via - UART


- use linear approximation • DAC • send data via - UART - TWI
- 𝑥 𝑡0 + 𝑇𝐴 = 𝑥 𝑡0 + 𝑥ሶ ∙ 𝑇𝐴 - TWI - SPI
- 𝑦 𝑡0 + 𝑇𝐴 = 𝑧 𝑡0 + 𝑦ሶ ∙ 𝑇𝐴 - SPI • Watchdog for receiving data • display of bpm
- 𝑧 𝑡0 + 𝑇𝐴 = 𝑧 𝑡0 + 𝑧ሶ ∙ 𝑇𝐴 • DAC → check ECG-signal • R-peak detector
• ECG-Generator • bpm-calculation
• visualization • DAC → check ECG-signal
Medical Engineering: Applied Programming - Low Level Programming 3

Introduction
Medical Engineering: Applied Programming - Low Level Programming 4

Introduction
Medical Engineering: Applied Programming - Low Level Programming 5

Introduction

Required Documents:
- ieeetbe50p289.pdf (ECG model description)
- APR1-Introduction-Microcontroller.pdf
- Datasheet_ATmega32.pdf
- Datasheet_TG12864B-13 (Grey Display from Pollin).pdf
- Programming-Guidelines.pdf

Required Files:
- Display-Files (font4x8.c, font4x8.h, font5x8.c, font5x8.h, font6x8.c, font6x8.h
graphics.c, graphics.h, mylcd.c, mylcd.h)

Required Software:
- Matlab x, Atmel Studio 7.x (IDE)
- MyAVRProgTool 1.xx (GUI for programming (flashing) the microcontroller)
Medical Engineering: Applied Programming - Low Level Programming 6

Introduction

Evaluation of the Practical Course:

- Evaluation of the work during the practical course (immanent evaluation, compulsory attendance)

- Every task is examined verbally

- Minimum requirements for a positive evaluation:


• Matlab Code + Code for µC1
• positive immanent evaluation (80 % mandatory attendance)
• positive examination

You might also like