background image

TOWER SYSTEM

33. Wait for signal stabilization (about 10 

seconds), avoiding movements and with 

relaxed respiration. The heart rate is  

shown in the red highlighted box below. 

The EKG signal should be similar to the  

one shown below.

NOTE:

 The MED-EKG connector to the TWR-

S08MM128 is not very secure and the electrode is 
very sensitive. Very little movement can yield lot of 
noise. The ideal way is to connect a three-lead cable 
(two electrodes and one ground) via J12 header and 
use external electrodes. Freescale does not provide 
this lead due to regulations in different countries, 
therefore the user must purchase it separately. This 

lab was tested with Welch Allyn ECG Lead Wires for 

Atlas Monitor, three-lead AHA. 

34. If the signal varies, try different finger 

positions, but wait for stabilization time 

(usually 10 seconds). Experiment with this 

step until the GUI is drawing a 

similar

 EKG 

signal to the image at left.

35. If the graphed signal amplitude is too small 

or too big, press and release SW4 to reduce 

the gain or SW2 to increase the gain from 

the TWR-S08MM128 module. SW4 will 

have no effect once OPAMP2 reaches the 

smallest gain of 2. SW2 will have no effect 

once OPAMP2 reaches the highest gain of 

17. The signal amplitude (in peaks) must 

be between 8000 and 20000 units (shown 

in the vertical axis) for correct heart rate 

calculation. Increase the gain if your EKG 

signal is not within that range.

NOTE: 

On the TWR-S08MM128, LED2 (silk-screened 

label D10) will blink as you press SW2. Once you 

reach the OPAMP2 maximum gain, LED2 becomes 
solid. LED1 (silk-screened label D9) behaves similarly 

as you press SW4 to reduce the OPAMP2 gain. The 

heart rate may not be accurate when there is noise.

Summary of Contents for Freescale MC9S08MM128

Page 1: ...TOWER SYSTEM Lab Tutorial for TWR S08MM128 KIT MC9S08MM128 Electrocardiogram EKG with Freescale USB stack LAB 1 ...

Page 2: ...the Freescale MED EKG graphical user interface GUI NOTE The official marking for S08MM devices is MC9S08MM In this document the MC9 prefix is omitted for simple referencing NOTE Please refer to the MED EKG schematic for circuit detail The schematic is included in the DVD Stages 6 and 7 may not be necessary in your own EKG application They are included in the MED EKG to allow you to use off chip de...

Page 3: ...rolled by the S08MM128 pin PTE7 To turn on the MED EKG module in your software set the PTE7 pin to low output active low To turn the module off set the PTE7 to high output This has already been done in the demo code of this lab Right Electrodes Place right hand fingers here for EKG reading See lab guide below Another way to sample the user EKG is by using Welch Allyn ECG Lead Wires for Atlas Monit...

Page 4: ...elects the USB port to support device class transmission which is required for printing the EKG signal to the MED EKG GUI 3 Set the default jumpers for MED EKG as shown in Step 2 of the QSG or Figure 1 in this lab Note the J2 setting there are two silk screened labels indicating pin 1 around J2 Set J2 as indicated in Figure 1 MED EKG module in this lab 4 On the TWR S08MM128 module remove the jumpe...

Page 5: ...M driver Freescale OSBDM is used to program and debug the main MCU S08MM128 The first time the TWR S08MM128 mini USB connects to the PC Windows will ask to load the driver If the OSBDM has already been used on your PC Windows will not ask for the driver and you can skip to Step 12 9 On the screen shown here select No not at this time and click Next 10 At the next screen select Install the software...

Page 6: ...rect CodeWarrior product and version Multiple CodeWarrior programs can be installed on the same computer 14 In the CodeWarrior menu select File Open Then browse to the following path and file d work LAB1 MEDEKGSW SW for MM devices ECG for S08MM Ecg for S08MM mcp 15 Ensure that the selected target is HCS08 FSL Open Source BDM Click the Debug button as shown below NOTE You may encounter compiler war...

Page 7: ...l NET 2 0 or 3 5 19 Double click on file MED_EKG_GUI exe to start the GUI installation It is located in the folder d work LAB1 MEDEKGSW MED_EKG_GUI exe 20 In the installation popup windows leave the default settings and keep clicking the Next button to start the installation 21 During installation the window below will pop up Click OK to continue 22 When installation is complete click the Finish b...

Page 8: ...a list or specific location 26 In the next window click Browse and select the following folder c Program Files Freescale MED EKG Driver Then click Next 27 If you see the following dialog box click Install this driver software anyway 28 When the installation is complete click Finish ...

Page 9: ...he figure below NOTE COM10 is just an example Each computer may assign a different Virtual Com Port number 30 Open the Graphical User Interface from Start All Programs Freescale MED EKG 31 Select the COM port number found in Step 29 Then click the Start button You will see the GUI start to display a random waveform NOTE Program S08MM128 with LAB1 source code and connect the USB to TWR SER before o...

Page 10: ...ferent finger positions but wait for stabilization time usually 10 seconds Experiment with this step until the GUI is drawing a similar EKG signal to the image at left 35 If the graphed signal amplitude is too small or too big press and release SW4 to reduce the gain or SW2 to increase the gain from the TWR S08MM128 module SW4 will have no effect once OPAMP2 reaches the smallest gain of 2 SW2 will...

Page 11: ...e steps Open the Ecg h file from the following path d work LAB1 MEDEKGSW SW for MM devices app ekg Med EKG In the Ecg h file comment out define ECG_DSC to define ECG_DSC Reprogram the S08MM128 repeat step 13 to 17 Reconnect the mini USB cable to TWR SER USB port Repeat steps 29 to 36 You will notice the EKG amplitude will be much smaller This is because you are no longer reading the results amplif...

Page 12: ... others Freescale Semiconductor products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur Should Buyer purchase or use Free...

Reviews: