SLAA486B January   2011  – June 2019 MSP430G2452

 

  1.   EKG-Based Heart-Rate Monitor Implementation Using the MSP430G2xx LaunchPad™ Development Kit
    1.     Trademarks
    2. 1 Introduction
    3. 2 Hardware Description
      1. 2.1 Hand Detection Circuit
      2. 2.2 Analog Front End (AFE)
      3. 2.3 Pin Functionality Mapping on the LaunchPad Kit
      4. 2.4 eZ430 RF Target Header
      5. 2.5 Power Supply Setup
    4. 3 Software
    5. 4 References
  2.   A Amplifier Options
    1.     A.1 Instrumentation Amplifier Options
    2.     A.2 Operational Amplifier Options
  3.   B Wired USB Demo With Back-Channel UART
  4.   C Wireless UART Demo With the eZ430 RF Target Board
  5.   D Hardware Schematic Diagrams
  6.   Revision History

Wired USB Demo With Back-Channel UART

The default setup for the heart-rate monitor uses the onboard emulator circuit on the LaunchPad kit to send data from the MSP430G2xx MCU UART through the USB to the PC. Virtual COM port drivers should be installed on the PC so that the USB connection appears as the MSP430 application UART. These drivers should be on the system by default when either IAR Embedded Workbench or Code Composer Studio IDE are installed. If a system is devoid of any MSP430 development tools, the drivers can be installed by referring to the executable file in reference link [8].

To setup the system with USB:

  1. Populate all of the jumpers on the LaunchPad kit (VCC, RXD, TXD, TEST, RST).
  2. Remove the jumper JP1 on the daughterboard.
  3. Attach the daughterboard to the LaunchPad kit.
  4. Connect the mini-USB cable from the LaunchPad kit to the PC.

The zip file associated with this application report has two folders that contain source code and project files for IAR Embedded Workbench™ IDE v5.10 and Code Composer Studio™ IDE v4.2.1.

To download the source code in IAR Embedded Workbench, see the folder: Software/Heart Rate Monitor/IAR.

  1. Open the Project: File → Open Workspace and select HRM.eww. If needed, select Project → Add Existing Project and select HRM.ewp.
  2. Compile the project: Project → Make.
  3. Download the code: Project → Download and Debug.
  4. Run the code: Debug → Go.

To download the source code in Code Composer Studio, see the folder: Software/Heart Rate Monitor/CCS.

  1. Import the Project: Project → Import Existing CCS/CCE Eclipse Project and select the Code Composer Studio folder as the search directory. Select HRM to import the project and source code.
  2. Compile the project: Project → Rebuild All.
  3. Download the code: Target → Debug Active Project.
  4. Run the code: Target → Run.

The UART output from the MCU can be viewed on the PC with HyperTerminal.

  1. Go to Start Menu → Accessories → Communications → HyperTerminal.
  2. Enter a name for the connection and select the virtual COM port for the MSP430 Application UART applicable to the LaunchPad development kit. To find the appropriate COM port number, open up Device Manager → Ports (COM & LPT) and select the COM port titled MSP430 Application UART.
  3. Change the bits per second to 9600 baud and click OK. If necessary, select Call → Call.