background image

Freescale Semiconductor

Document Number: MMA865xFCSTUG

User’s Guide

Rev. 0, 10/2012

© 2012 Freescale Semiconductor, Inc. All rights reserved.

Contents

MMA865xFC Sensor Toolbox 
User’s Guide

1

Introduction

The Freescale MMA865xFC sensor toolbox 
accelerometer kit provides hardware and software for the 
demonstration and evaluation of the Xtrinsic 
MMA865xFC accelerometers (MMA8652FC, 
MMA8653FC). This user’s guide shows you how to use 
this kit.

The MMA865xFC kit includes the following:

MMA865x interface board

MMA8652FC accelerometer daughter board

MMA8653FC accelerometer daughter board

The kit requires a USB-interface board to attach the kit 
to a personal computer. Both items can be purchased on 
the 

Freescale website

.

MMA865xFC kit, part number LFSTBEB865x

MMA865x USB-interface board, part number 
LFSTBUSB 

Optional 9V battery board (for non-volatile 
memory datalogging), part number LFSTBBAT9

1

Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2

About the MMA865x Accelerometers  . . . . . . . . . . . . . . . 2

3

Getting Started  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.1 Connecting the kit . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.2 Installing the sensor toolbox software . . . . . . . . . . . 4

4

Understanding the Accelerometer Demonstrations . . . . . 8
4.1 Opening the sensor toolbox software  . . . . . . . . . . . 8
4.2 Directional Flick application . . . . . . . . . . . . . . . . . . 10
4.3 Tilt Detection application . . . . . . . . . . . . . . . . . . . . 14
4.4 Orientation application. . . . . . . . . . . . . . . . . . . . . . 17
4.5 Graphical Datalogger application  . . . . . . . . . . . . . 21
4.6 NVM Datalogger application . . . . . . . . . . . . . . . . . 26
4.7 Configuration screen . . . . . . . . . . . . . . . . . . . . . . . 29
4.8 Directional Tap with FIFO application . . . . . . . . . . 31
4.9 Directional Shake with FIFO application . . . . . . . . 36
4.10 Full-System Evaluation application . . . . . . . . . . . . 41

5

Running the Accelerometer Demonstrations. . . . . . . . . 62
5.1 Directional Flick application . . . . . . . . . . . . . . . . . . 62
5.2 Orientation (Portrait/Landscape) application . . . . . 62
5.3 Graphical Datalogger application  . . . . . . . . . . . . . 62
5.4 Non-Volatile Memory Datalogger application  . . . . 63
5.5 Directional Tap with FIFO application . . . . . . . . . . 63
5.6 Directional Shake with FIFO application . . . . . . . . 63

6

Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Summary of Contents for MMA8652FC

Page 1: ...ptional 9V battery board for non volatile memory datalogging part number LFSTBBAT9 1 Introduction 1 2 About the MMA865x Accelerometers 2 3 Getting Started 3 3 1 Connecting the kit 3 3 2 Installing the sensor toolbox software 4 4 Understanding the Accelerometer Demonstrations 8 4 1 Opening the sensor toolbox software 8 4 2 Directional Flick application 10 4 3 Tilt Detection application 14 4 4 Orien...

Page 2: ...Buffer with Watermark Freefall and Motion Detection Transient Detection i e fast motion jolt Enhanced Orientation with Hysteresis and Z lockout Single Double Auto WAKE Auto SLEEP Configurable with debounce counter and multiple motion interrupts for control VDD Directional Tap Detection INT1 INT2 BYP Interface MUX Voltage Regulator Gain AAF Anti Aliasing Filter C to V Converter SDA SCL I2 C Embedde...

Page 3: ...g the sensor toolbox software 3 1 Connecting the kit Select one of the two daughter boards and attach it to the USB interface board as directed in the LFSTBEB8491 Quick Start Guide included with the boards When assembled the device detection axes are as shown in Figure 3 Figure 3 Board assemblies Figure 4 shows how the boards of the MMA865xFC kit fit together How the 3 axes are mapped to the MMA86...

Page 4: ...talling the sensor toolbox software Perform the following procedure to install the software Near the end of this process you will be asked if you want to install a serial to USB driver included with the sensor toolbox If you have been previously used Freescale s sensor toolbox software these drivers already are installed on your PC 1 To download the sensor toolbox software click the following link...

Page 5: ...t button 4 Save the software s installation executable file SensorToolboxInstaller exe to your PC 5 If you have not already connected the toolkit to your PC perform the procedure in Section 3 1 Connecting the kit 6 Locate the installation file on your PC and double click on it 7 Proceed through the setup wizard s series of dialog boxes During the process you will be asked if you want a Sensor Tool...

Page 6: ...le Semiconductor Inc 8 When the Ready to Install dialog box shown below appears review the installation configuration and click the Install button A progress bar displays the status of the software installation and the final dialog box shown below appears ...

Page 7: ...e Future Technology Devices International FTDI serial to USB communications driver enable the Install FTDI Driver checkbox To launch the toolbox software upon completion of the setup leave the Run Sensor Toolbox checkbox enabled If you chose to install the FTDI driver a command line window briefly appears The application is now ready for use ...

Page 8: ... allows you to evaluate the sensor at the register level 4 1 Opening the sensor toolbox software To launch the toolbox software either double click on the application s desktop icon or choose Start Programs Sensor Toolbox Sensor Toolbox This displays the sensor toolbox s hardware detection dialog box shown below If the LFSTBUSB USB interface board is connected properly then the software will detec...

Page 9: ...mo box in the launcher menu which remains in the background as long as the application is running Full System Evaluation page 41 Directional Flick page 10 Hi Resolution Tilt Detection page 14 MMA8652 only Low Resolution Portrait Landscape page 17 Graphical Datalogger page 21 NVM Datalogger page 26 Directional Shake Low Power with FIFO page 36 MMA8652 only Directional Tap Low Power with FIFO page 3...

Page 10: ... those settings to tailor a demonstration to your target application Launching the demo displays the Active screen 4 2 1 Active screen The Active screen contains a Direction Event Detected indicator with a direction text display a picture showing how to hold the device and some pictures that can be manipulated by flicking the device The flick must be done in the direction indicated by the red arro...

Page 11: ...ameters for detecting transient events NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings with the device The screen contains the following menu frames Standby Active Operation Mode Dynamic Range Transient Settings Note To modify the default configurati...

Page 12: ... device to Active mode Standby Mode Wake Mode Sleep Mode Indicates the device s status Read only Note The device will never enter Sleep mode during this demo Transient Settings Default Transient Settings Sets the parameters for detecting flicks to their working values as defined at the factory Bypass HPF High Pass Filter Directs the application to use the raw accelerometer data before it has been ...

Page 13: ...ceed this time will not trigger an interrupt To move the slider the Reset button must be clicked After the selection is made click the Set button to change the setting Decrement Debounce Selecting this option causes the Debounce timer to be decremented each time an event fails to reach the debounce time Clear Debounce Selecting this option causes the timer set by the Debounce slider to reset each ...

Page 14: ...eading is the fractional angle also known as arcminutes 4 3 1 Active screen The Active screen enables you to evaluate the built in algorithm for detecting the device s tilt in conjunction with the device s resolution mode coarse or fine You can evaluate the default configuration and modify the settings to tailor the demonstration to your target application Note Before changing any of the Active sc...

Page 15: ...any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings with the device Table 2 Tilt Detection Active Standby screens Screen frame Field or option Description Tilt Angle Degree Coarse Indicates the angle the device is being held at along the X and Y axes degrees Fine Shows the A...

Page 16: ...ounting for any error in measurements For maximum resolution the calibration is done with a dynamic range of 8g and a sample rate of 1 563 Hz Note Before enabling Auto Calibrate mode place the device on a flat and stationary surface Note Before returning to active mode it is necessary to set the Sample Rate back to a usable value because running Auto Calibrate sets the device to the 1 563 Hz Sampl...

Page 17: ... tailor the demonstration to your target application 4 4 1 Active screen The Active screen contains a Portrait Landscape gauge and a Back Front gauge The Portrait Landscape gauge has 5 options UP DOWN LEFT RIGHT and Lockout The Back Front gauge shows 2 options BACK FRONT The image below the gauge is a simulated mobile phone that displays the same orientation indicated by the gauges The information...

Page 18: ...er sampling setting Change the parameters for detecting orientation changes NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings with the device Each menu frame s fields and options are described in Table 3 Note Before changing the Orientation Detection v...

Page 19: ...Options for Data Normal Mode Normal operation Hi Res Mode The device gives more accurate readings but draws more current Low Power Mode The device draws less current than Normal mode does but at the expense of accuracy Low Noise Low Power The device draws more current than Normal mode does but less current than Low Power mode does and reduces noise Auto Calibrate Directs the device to calculate th...

Page 20: ...change from portrait to landscape orientation or vice versa For changing to right the angle is measured down from the positive X axis For changing to the left landscape orientation the angle is measured up from the X axis Hysteresis Angle Changes the distance from the midpoint of the angle at which the device will change from portrait to landscape orientation or vice versa The actual trip angle fo...

Page 21: ...ed location The data is saved as a Comma Separated Values csv file which can be viewed with any text based or spreadsheet application Select File New to discard all of the previous data points Registers Opens the Registers section Acceleration graph Displays the data acquired by the accelerometer The data is acceleration g value or counts vs time seconds Start Stop a New Datalog button Starts logg...

Page 22: ...this toggle down graphs the accelerometer s reading in counts Number of points The number of points in the current graph Configuration status bar Configuration Active with MMA8652FC ID The device ID HW 3005 The kit s hardware revision number SW 4003 The kit s Sensor Toolbox software revision number BL 4002 The kit s MCU boot loader firmware revision number at COM3 The communications port that the ...

Page 23: ...MMA865xFC Sensor Toolbox User s Guide Rev 0 Freescale Semiconductor Inc 23 4 5 2 Configuration screen The Configuration screen gives you access to advanced options ...

Page 24: ...lectable in this application Operation Mode Enable Low Noise Enables the device s Low Noise Mode for more accurate readings Note In Enable Low Noise mode any g force greater than 4g will not be read Over Sampling Options for Data Normal Mode Normal operation Hi Res Mode The device gives more accurate readings but draws more current Low Power Mode The device draws less current than Normal mode does...

Page 25: ...ster tab commands Command Description Read all registers Click the button read all registers to read all The register address and their values will be listed in the text box below Read an individual register Select register address from the drop down box Click the button read The register value will show under the text value Write an individual register Select register address from the drop down b...

Page 26: ...atalogger for your data collection needs NOTE The datalog is not erased when the device is powered off and on When the NVM datalogger is started a new piece of firmware is loaded onto the device to enable its use you may see a Loader screen When a new application is next opened the firmware will be returned to normal you will see the same screen again The application can collect the data using eit...

Page 27: ...that the device is ready to start a new datalog If red the text NVM is not erased is displayed indicating that the device has stored a new datalog to memory Pressing the Erase NVM memory button deletes all data currently stored in NVM and returns the indicator to the green state Progress indicator Shows the progress of the Erase NVM memory or Download to Excel operation Erase NVM memory button Era...

Page 28: ... Configuration screen on page 29 5 To download the data reconnect the device to the computer and re open the NVM Datalogger demo Datalog Options Tethered Datalog Collects data with the NVM while the device is still connected to the computer The device will begin taking data as soon as the Start a New Datalog button is clicked Untethered Datalog Enables an external source to power the device while ...

Page 29: ...t option causes the program to read only the 8 bits stored in the X Y and Z MSB registers Selecting 12 bits for the MMA8652FC reads the 8 MSB bits and the 4 bits stored in the X Y and Z LSB registers Selecting 10 bits for the MMA8653FC reads the 8 MSB bits and the 2 bits stored in the X Y and Z LSB registers Sensor Rate This drop down list enables you to select the rate at which the accelerometer ...

Page 30: ...lbox User s Guide Rev 0 30 Freescale Semiconductor Inc Dynamic Range 2g 4g 8g Sets the range over which the accelerometer acquires data Table 7 NVW Datalogger Configuration screen Continued Screen frame Element Description ...

Page 31: ...nstration for your target application This demo includes MCU status and estimated current displays which enable you to demonstrate the device s power saving sleep mode feature 4 8 1 Active screen The Active screen contains a set of indicators that change to green when a tap is detected It also has a graph displaying the data stored in the FIFO displays that show the MCU status an estimate of used ...

Page 32: ...n indicates that a tap has been detected along any axis FIFO Algorithm Direction Direction Indicates the direction of the last tap the device detected For example z negative indicates a tap on the top of the device FIFO Data Acceleration Display Shows the data collected and stored in the FIFO from the last tap MCU Status Green indicates that the host MCU has been awakened from Sleep by event inter...

Page 33: ...tive mode Set the dynamic range Change the sample rate Set the over sampling setting Change the orientation detection parameters NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings with the device ...

Page 34: ...tion is done with a dynamic range of 8g and a sample rate of 1 563 Hz Note Before enabling Auto Calibrate mode place the device on a flat and stationary surface Dynamic Range 2g 4g 8g Sets the range over which the accelerometer acquires data Standby Active Standby Sets the device to Standby mode Active Sets the device to Active mode Standby Mode Wake Mode Sleep Mode Indicates the device s status N...

Page 35: ...these axes to trigger the Event Detected Indicator on the Demo Screen Pulse Time Limit Sets the maximum time that a pulse can last before it the pulse is ignored as a non tap event Before using the Pulse Time Limit slider you must click the Reset Time Limits button After using the Pulse Time Limit slider click the Set Time Limits button to change the setting Default Single Tap Sets the parameters ...

Page 36: ... which enable you to demonstrate the device s power saving sleep mode feature 4 9 1 Active screen The Active screen contains a set of indicators that change to green when a transient event shake is detected In the middle of the application window a graph displays the data that is stored in the FIFO triggered by the shake event The detected shake directions are indicated by the left radio LEDs Gree...

Page 37: ...en when a shake event is detected along any axis Software Direction Direction Displays the direction of the last shake that the device detected For example the display z negative indicates the device was shaken downward FIFO Data Acceleration Display Shows the data collected and stored in the FIFO from the last shake MCU Status Green indicates that the host MCU has been awakened from Sleep by even...

Page 38: ...ynamic range Change the sample rate of the device Change the over sampling options Calibrate the device Change the parameters for detecting the transient events NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings with the device ...

Page 39: ...rmal mode does but less current than Low Power mode does and reduces noise Note In Low Noise mode any g force greater than 4g will not be read Auto Calibrate Directs the device to calculate the offsets for each axis accounting for any error in measurements For maximum resolution the calibration is done with a dynamic range of 8g and a sample rate of 1 563 Hz Note Before enabling Auto Calibrate mod...

Page 40: ...ick the Set button to change the setting Enable X SP Enable Y SP Enable Z SP Enable Single Pulse Allows flicks along these axes to trigger the Event Detected Indicator on the Demo Screen Note Only the Y axis will move the pictures and correctly trigger the direction indicator If enabled the X and Z axes will trigger only the Event Detected indicator on the Demo screen Enable Latch Causes any trigg...

Page 41: ...on for your target application 4 10 1 Operation Mode frame An Operation Mode frame appears at the top of each screen with tabs below that frame enabling you to quickly navigate among the different demos NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings...

Page 42: ...Sleep Mode Indicates the device s status Read only Over Sampling Options for Data Normal Mode Normal operation Hi Res Mode The device gives more accurate readings but draws more current Low Power Mode The device draws less current than Normal mode does but at the expense of accuracy Low Noise Low Power The device draws more current than Normal mode does but less current than Low Power mode does an...

Page 43: ...es more time and power Selecting the 8 bit option causes the program to read only the 8 bits stored in the X Y and Z MSB registers Selecting 10 bits for the MMA8653FC reads the 8 MSB bits and the 2 bits stored in the X Y and Z LSB registers Selecting 12 bits for the MMA8652FC reads the 8 MSB bits and the 4 bits stored in the X Y and Z LSB registers View Check the check box in front of the axis to ...

Page 44: ...ide the number by 2 before storing it in the register In the above situation you would place 21 2 10 5 either 10 or 11 in the XCal field 8g No correction is required Write Writes the values in the XCal YCal and ZCal text boxes into the calibration register Auto Calibrate Makes the device calculate the necessary values for the X Y and ZCal fields The calibration is done with an 8g Dynamic Range and...

Page 45: ...wer while the device is sleeping Sleep Timer Slider Determines how long a period of inactivity must pass before the device enters Sleep mode Reset Before changing any setting in the Auto Sleep Settings screen group click Reset to enable using a new configuration Set After changing any settings in the Auto Sleep Settings screen group click Set to ensure that all of the settings are registered with ...

Page 46: ...46 Freescale Semiconductor Inc 4 10 3 Registers screen The Registers screen enables you to read from or write to any of the device s registers For information about the functions and values of each register see the MMA8652FC MMA8653FC data sheets ...

Page 47: ...rrupt Settings Reg 0x2C INT Polarity Active Low INT Polarity Active High Active Low the interrupt pins to sit at a logical high level 1 and to go to logical low 0 when they are triggered Active High the interrupt pins to sit at a logical low level 0 and to go to logical high 1 when they are triggered INT Push Pull INT Open Drain Push Pull Activates two transistors on the interrupt pins that push u...

Page 48: ...ad in the output register for the respective axis or axes X Y or Z Data Ready FCNT3 Shifts from red to green if any axis has a new reading waiting to be read If there is no data then the indicator remains red X Overwrite FCNT4 Overwrite FCNT5 Overwrite Watermark These indicators shift from red to green if a new measurement has replaced a measurement that previously triggered the Data Ready indicat...

Page 49: ...10 5 Motion Freefall M FF screen This screen enables you to configure the motion detection and the freefall detection applications in the left section The detection result is shown at the left bottom section The accelerometer axes data can be selected to plot on the right graph ...

Page 50: ...riggered by an event to remain until the Status register is read If the Enable Latch checkbox is not enabled then the interrupt will last only as long as the event does and the Status register represents the most recent event Threshold Sets the threshold for events to be detected Events at a smaller g force than this value are filtered out Before using the Threshold slider click Reset After using ...

Page 51: ...bel displays Low Pass Filter Data Out or High Pass Filter Data Out depending on whether the HP Filter option button has been enabled on the Full System Evaluation demo s Operation Mode screen Real Time Output X Axis Y Axis Z Axis Each checkbox enables the collection of data along the selected axis or axes Graph Displays the data acquired by the accelerometer Acceleration in Gs is plotted against t...

Page 52: ...x User s Guide Rev 0 52 Freescale Semiconductor Inc 4 10 6 Orientation screen This screen enables you to configure the orientation detection applications in the left section The detection result is shown at the right section ...

Page 53: ...ip Angle is measured down from the x axis for changing to the right landscape orientation and up from the x axis for changing to left landscape orientation Hysteresis Angle Sets the distance from the midpoint of the angle at which the device changes from portrait to landscape orientation The actual trip angle for changing orientation is the P L Angle this angle Decrement Debounce Causes the Deboun...

Page 54: ...pe Position Indicator switches from red to green when there is an orientation change Lockout Indicator switches from red to green to display which parameter of the configured orientation parameters has been tripped Front Back Up Down Left Right Table 16 Full System Evaluation Orientation screen Continued Screen Frame Element Description ...

Page 55: ...n enables you to configure the transient detection applications in the left section The detection result is shown at the left bottom part The accelerometer axes data can be selected to plot on the right graph Note For best results in detecting transient events the HPF Data Out box in the Operation Mode Frame should be checked ...

Page 56: ...e the Threshold slider the Reset button must be clicked After moving the Threshold slider click the Set button to change the setting Debounce slider Sets the minimum time that a shake must last for a shake event to be detected Set After changing the Debounce slider click Set to register the new settings with the device Reset Before configuring the Debounce slider click Reset to enable the new conf...

Page 57: ...to configure the pulse detection applications in the left section The detection result is shown at the right section NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new settings with the device ...

Page 58: ...se Allows taps along these axes to trigger the Event Detected Indicator on the Tap Status frame For example to see only taps on the top of the device clear the X and Y SP boxes Enable Latch Causes any triggered event to remain until the Status register is read If the Enable Latch checkbox is not enabled then the interrupt will only last as long as the event and the Status register will represent t...

Page 59: ...fter using the Pulse or Second Pulse Latency slider click Set Time Limits to change the setting Second Pulse Latency slider Sets the amount of time that the device will wait to reset after receiving an initial pulse A pulse detected after the set time will be considered a new first pulse Set Time Limits Click Set to register the new settings with the device Reset Time Limits Click Reset to enable ...

Page 60: ...e top left section The FIFO events and status indicators are located at the left bottom part of the screen The FIFO data is displayed on the right section This data can be copied to the clipboard desired NOTE Before changing any settings enable Standby mode because the settings cannot be changed in Active mode After changing any configuration settings enable Active mode to register the new setting...

Page 61: ...e option button is selected choose one of these trigger sources to trigger the FIFO to store accelerometer data Transient shake LP landscape portrait Tap MFF Motion Freefall FIFO status indicator Read only Trigger event indicator Transient LP Tap MFF The indicators switch from red to green to indicate that the following events have been detected Transient shake LP landscape portrait Tap MFF Motion...

Page 62: ...entation Detection demonstration from the main launcher menu 3 Hold the device flat with the USB connection on the right 4 Rotate the device clockwise so that the USB connector is pointing down The Portrait Landscape gauge on the left should read Right The phone displayed in the middle should be facing you while laying on its side with the buttons on the left The Front Back gauge should read Front...

Page 63: ...ccelerometer connected to the evaluation board 2 Select the Directional Tap Low Power with FIFO demonstration from the main launcher menu 3 Hold the device flat with the USB connection on the left 4 Tap the top of the device The z axis indicator should switch to green and the Directional Tap window should display Z Negative 5 To demonstrate the device s ability to detect taps tap other sides of th...

Page 64: ...MMA865xFC Sensor Toolbox User s Guide Rev 0 64 Freescale Semiconductor Inc 6 Revision History Table 20 Revision history Revision number Revision date Description of changes 0 10 2012 Initial release ...

Page 65: ...e data sheets and or specifications can and do vary in different applications and actual performance may vary over time All operating parameters including typicals must be validated for each customer application by customer s technical experts Freescale does not convey any license under its patent rights nor the rights of others Freescale sells products pursuant to standard terms and conditions of...

Reviews: