поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

MPL3115A2 датащи(PDF) 10 Page - Freescale Semiconductor, Inc

номер детали MPL3115A2
подробное описание детали  I2C Precision Altimeter
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  FREESCALE [Freescale Semiconductor, Inc]
домашняя страница  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MPL3115A2 датащи(HTML) 10 Page - Freescale Semiconductor, Inc

Back Button MPL3115A2 Datasheet HTML 6Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 7Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 8Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 9Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 10Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 11Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 12Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 13Page - Freescale Semiconductor, Inc MPL3115A2 Datasheet HTML 14Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 44 page
background image
MPL3115A2
Sensors
10
Freescale Semiconductor, Inc.
4
Quick Start Quick Setup Guide
The quick setup guide shows how to put the part in Altimeter mode with an OSR of 128. You may then select your data retrieval
method between polling, interrupt or FIFO. The following routines are used:
/*********************************************************\
* IIC Write Register
\*********************************************************/
void IIC_RegWrite(byte address, byte reg,byte val)
{
IICC_TX = 1;
// Transmit Mode
IIC_Start();
// Send Start
IIC_CycleWrite(address);
// Send IIC "Write" Address
IIC_CycleWrite(reg);
// Send Register
IIC_CycleWrite(val);
// Send Value
IIC_Stop();
// Send Stop
}
/*********************************************************\
* IIC Read Register
\*********************************************************/
byte IIC_RegRead(byte address, byte reg)
{
byte b;
IICC_TX = 1;
// Transmit Mode
IIC_Start();
// Send Start
IIC_CycleWrite(address);
// Send IIC "Write" Address
IIC_CycleWrite(reg);
// Send Register
IIC_RepeatStart();
// Send Repeat Start
IIC_CycleWrite(address+1);
// Send IIC "Read" Address
b = IIC_CycleRead(1);
// *** Dummy read: reads
// "IIC_ReadAddress" value ***
b = IIC_StopRead();
// Send Stop Read Command IICD
return b;
}
/*********************************************************\
* IIC Read Multiple Registers
\*********************************************************/
void IIC_RegReadN(byte address, byte reg1,byte N,byte *array)
{
byte b;
IICC_TX = 1;
// Transmit Mode
IIC_Start();
// Send Start
IIC_CycleWrite(address);
// Send IIC "Write" Address
IIC_CycleWrite(reg1);
// Send Register
IIC_RepeatStart();
// Send Repeat Start
IIC_CycleWrite(address+1);
// Send IIC "Read" Address
b = IIC_CycleRead(N);
// *** Dummy read: reads
// "IIC_ReadAddress" value ***



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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