下载

Freescale Semiconductor Document Number: AN4460
Application Note Rev. 1, 04/2013
© 2012-2013 Freescale Semiconductor, Inc. All rights reserved.
Contents
Using the Xtrinsic FXOS8700CQ
Command Line Interface
Software
by: Talat Ozyagcilar
Systems and Applications Engineer
1 Introduction
The FXOS8700CQ command line interface driver
provides an easy way to communicate with the
FXOS8700CQ using the RD4247FXOS8700 sensor
toolbox platform. Once the sensor toolbox board is
programmed with this firmware, the user can
• modify and read registers,
• view details of the operating mode of the device,
• and stream/view data as signed counts or in
signed units
using a generic terminal program via a virtual serial port
over USB.
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Programming the Sensor Toolbox Hardware . . . . . . . . . 2
3 Setup of Terminal Program . . . . . . . . . . . . . . . . . . . . . . . 5
4 List of Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.1 Register Read (RR). . . . . . . . . . . . . . . . . . . . . . . . . 7
4.2 Register Write (RW) . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3 Report Configuration (RF). . . . . . . . . . . . . . . . . . . 10
4.4 Display XYZ Data as Signed Counts (CN) . . . . . . 11
4.5 Display XYZ Data as Signed Counts,
with HPF Enabled (CH). . . . . . . . . . . . . . . . . . . . . 12
4.6 Display XYZ Data in Signed Units (GN) . . . . . . . . 13
4.7 Display XYZ Data in Signed Units,
with HPF Enabled (GH). . . . . . . . . . . . . . . . . . . . . 14
4.8 Stream XYZ Data by Polling (S) . . . . . . . . . . . . . . 15
4.9 Stream XYZ Data via Interrupts (I) . . . . . . . . . . . . 16
4.10 Stream XYZ Data via the FIFO Buffer (F) . . . . . . . 17
5 Recovering the Bootloader for Sensor Toolbox. . . . . . . 19