Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

AS7261 Datasheet(PDF) 19 Page - OSRAM GmbH

No. de pieza AS7261
Descripción Electrónicos  XYZ Chromatic White Color Sensor NIR with Electronic Shutter and Smart Interface
PDF  48 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  OSRAM [OSRAM GmbH]
Página de inicio  http://www.osram.com
Logo OSRAM - OSRAM GmbH

AS7261 Datasheet(HTML) 19 Page - OSRAM GmbH

Back Button AS7261 Datasheet HTML 15Page - OSRAM GmbH AS7261 Datasheet HTML 16Page - OSRAM GmbH AS7261 Datasheet HTML 17Page - OSRAM GmbH AS7261 Datasheet HTML 18Page - OSRAM GmbH AS7261 Datasheet HTML 19Page - OSRAM GmbH AS7261 Datasheet HTML 20Page - OSRAM GmbH AS7261 Datasheet HTML 21Page - OSRAM GmbH AS7261 Datasheet HTML 22Page - OSRAM GmbH AS7261 Datasheet HTML 23Page - OSRAM GmbH Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 48 page
background image
Page 18
ams Datasheet
Document Feedback
[v1-00] 2016-Dec-30
AS7261 − Detailed Descriptions
I²C Virtual Register Byte Write
Pseudocode
Poll I²C slave STATUS register;
If TX_VALID bit is 0, a write can be performed on the interface;
Send a virtual register address and set the MSB of the register address to 1 to indicate the pending write;
Poll I²C slave STATUS register;
If TX_VALID bit is 0, the virtual register address for the write has been received and the data may now be written;
Write the data.
Sample Code:
#define I2C_AS72XX_SLAVE_STATUS_REG
0x00
#define I2C_AS72XX_SLAVE_WRITE_REG
0x01
#define I2C_AS72XX_SLAVE_READ_REG
0x02
#define I2C_AS72XX_SLAVE_TX_VALID
0x02
#define I2C_AS72XX_SLAVE_RX_VALID
0x01
void i2cm_AS72xx_write(uint8_t virtualReg, uint8_t d)
{
volatile uint8_t status;
while (1)
{
// Read slave I²C status to see if the write buffer is ready.
status = i2cm_read(I2C_AS72XX_SLAVE_STATUS_REG);
if ((status & I2C_AS72XX_SLAVE_TX_VALID) == 0)
// No inbound TX pending at slave. Okay to write now.
break,
}
// Send the virtual register address (setting bit 7 to indicate a pending write).
i2cm_write(I2C_AS72XX_SLAVE_WRITE_REG, (virtualReg | 0x80)) ;
while (1)
{
// Read the slave I²C status to see if the write buffer is ready.
status = i2cm_read(I2C_AS72XX_SLAVE_STATUS_REG) ;
if ((status & I2C_AS72XX_SLAVE_TX_VALID) == 0)
// No inbound TX pending at slave. Okay to write data now.
break;
}
//Send the data to complete the operation.
i2cm_write(I2C_AS72XX_SLAVE_WRITE_REG, d) ;
}
I²C Virtual Register Read Access
I²C Virtual Register Byte Read, detailed below, shows the
pseudocode necessary to read virtual registers on the AS7261.
Note that in this case, reading a virtual register, the register
address is not modified.



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


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
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