SLAA351A April   2007  – November 2018 MSP430F2232 , MSP430F2232 , MSP430F2234 , MSP430F2234 , MSP430F2252 , MSP430F2252 , MSP430F2254 , MSP430F2254 , MSP430F2272 , MSP430F2272 , MSP430F2274 , MSP430F2274

 

  1.   A Simple Glass-Breakage Detector Using an MSP430™ MCU
    1.     Trademarks
    2. 1 Introduction
    3. 2 Hardware Description
      1. 2.1 Device Specifications
      2. 2.2 Power Supply
      3. 2.3 Microphone
      4. 2.4 LED and Buzzer Alert
      5. 2.5 Interface to CC1100 or CC2500 Devices
      6. 2.6 Operational Amplifiers (OAs)
      7. 2.7 Internal Very-Low-Power Oscillator (VLO)
      8. 2.8 JTAG Interface
      9. 2.9 Current Consumption
    4. 3 Software Description
      1. 3.1 Initialization Routine
      2. 3.2 Timer_A
      3. 3.3 ADC10
      4. 3.4 Signal Analysis
        1. 3.4.1 First Stage of Processing
          1. 3.4.1.1 Signal Averaging, Peak Detection, and Zero Crossings
          2. 3.4.1.2 High-Pass Filtering
        2. 3.4.2 Second Stage of Processing
          1. 3.4.2.1 Frequency Composition Ratio
          2. 3.4.2.2 Peak and Zero-Crossing Count
          3. 3.4.2.3 Glass-Breakage Detect
    5. 4 Hardware Schematic
    6. 5 Test Setup
    7. 6 References
  2.   Revision History

Device Specifications

The MSP430F2274 is a 16-bit microcontroller (MCU) from the 2xx family of the ultra-low-power MSP430™ family of devices from Texas Instruments.[1][2] The supply voltage required for the microcontroller spans a broad range of 1.8 V to 3.6 V. The MCU operates at frequencies up to 16 MHz. The CPU has a 16-bit RISC architecture with a total of 51 instructions (27 core and 24 emulated). It supports a single-cycle shift and single-cycle add and subtract instructions. This enables efficient multiplication in the absence of a hardware multiplier.[4] The MCU also has an internal very-low-power low-frequency oscillator (VLO) that operates at 12 kHz at room temperature. This oscillator eliminates the need for an external onboard crystal for the operation of the device. However, an option has been provided on the board to use extermal crystal/resonators of up to 16 MHz. The MCU has two 16-bit timers (Timer_A and Timer_B), each with three capture/compare registers. An integrated 10-bit analog-to-digital converter (ADC10) supports conversion rates of up to 200 kilo-samples per second (ksps). The ADC10 can be configured to work with to on-chip operational amplifiers (OA0 and OA1) for analog input signal conditioning. The memory model supports up to 32KB of flash memory and 1KB of RAM in addition to 256 bytes of information memory. This device comes with four 8-bit I/O ports that can be used to control external devices. The current consumption of 0.7 µA during standby mode and active mode current of 250 µA at 1 MHz make this device an excellent choice for battery-powered applications.

Figure 1 shows the setup for the glass-breakage detector using this device.

setup_detector_laa351.gifFigure 1. Setup for Glass-Breakage Detector Using MSP430F2274

The microphone captures the analog input, and a buzzer or LED indicates detection of glass breakage. The op amps internal to the MSP430 MCU are connected to a few external passive components as part of the design of active analog filters.