Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

FXLS8471Q Datasheet(PDF) 10 Page - Freescale Semiconductor, Inc

Part # FXLS8471Q
Description  Linear Accelerometer
PDF  75 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

FXLS8471Q Datasheet(HTML) 10 Page - Freescale Semiconductor, Inc

Back Button FXLS8471Q Datasheet HTML 6Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 7Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 8Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 9Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 10Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 11Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 12Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 13Page - Freescale Semiconductor, Inc FXLS8471Q Datasheet HTML 14Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 75 page
background image
FXLS8471Q
Sensors
10
Freescale Semiconductor, Inc.
3.4
FXLS8471Q Configuration function
This function configures the FXLS8471Q for a 200-Hz ODR
. The code is self-explanatory and can be easily customized for
different settings.
Example 5.
// function configures FXLS8471Q accelerometer sensor
static _mqx_int s_FXLS8471Q_start(MQX_FILE_PTR aFP)
{
uint8_t databyte;
// read and check the FXLS8471Q WHOAMI register
if (s_i2c_read_regs(aFP, FXLS8471Q_SLAVE_ADDR, FXLS8471Q_WHOAMI, &databyte,
(uint8_t) 1) != 1)
{
return (I2C_ERROR);
}
if (databyte != FXLS8471Q_WHOAMI_VAL)
{
return (I2C_ERROR);
}
// write 0000 0000 = 0x00 to accelerometer control register 1 to place FXLS8471Q into
// standby
// [7-1] = 0000 000
// [0]: active=0
databyte = 0x00;
if (s_i2c_write_regs(aFP, FXLS8471Q_SLAVE_ADDR, FXLS8471Q_CTRL_REG1, &databyte,
(uint8_t) 1) != 1)
{
return (I2C_ERROR);
}
// write 0000 0001= 0x01 to XYZ_DATA_CFG register
// [7]: reserved
// [6]: reserved
// [5]: reserved
// [4]: hpf_out=0
// [3]: reserved
// [2]: reserved
// [1-0]: fs=01 for accelerometer range of +/-4g with 0.488mg/LSB
databyte = 0x01;
if (s_i2c_write_regs(aFP, FXLS8471Q_SLAVE_ADDR, FXLS8471Q_XYZ_DATA_CFG,
&databyte, (uint8_t) 1) != 1)
{
return (I2C_ERROR);
}
// write 0001 0101b = 0x15 to accelerometer control register 1
// [7-6]: aslp_rate=00
// [5-3]: dr=010 for 200Hz data rate
// [2]: lnoise=1 for low noise mode
// [1]: f_read=0 for normal 16 bit reads
// [0]: active=1 to take the part out of standby and enable sampling
databyte = 0x15;
if (s_i2c_write_regs(aFP, FXLS8471Q_SLAVE_ADDR, FXLS8471Q_CTRL_REG1, &databyte,
(uint8_t) 1) != 1)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com