数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AS7262 数据表(PDF) 21 Page - OSRAM GmbH

部件名 AS7262
功能描述  6-Channel Visible Spectral_ID Device with Electronic Shutter and Smart Interface
PDF  48 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  OSRAM [OSRAM GmbH]
网页  http://www.osram.com
标志 OSRAM - OSRAM GmbH

AS7262 数据表(HTML) 21 Page - OSRAM GmbH

Back Button AS7262 Datasheet HTML 17Page - OSRAM GmbH AS7262 Datasheet HTML 18Page - OSRAM GmbH AS7262 Datasheet HTML 19Page - OSRAM GmbH AS7262 Datasheet HTML 20Page - OSRAM GmbH AS7262 Datasheet HTML 21Page - OSRAM GmbH AS7262 Datasheet HTML 22Page - OSRAM GmbH AS7262 Datasheet HTML 23Page - OSRAM GmbH AS7262 Datasheet HTML 24Page - OSRAM GmbH AS7262 Datasheet HTML 25Page - OSRAM GmbH Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 48 page
background image
Page 20
Datasheet, Public
Document Feedback
[v4-00] 2022-Nov-30
AS7262 − Detailed Description
I²C Virtual Register Read Access
I²C Virtual Register Byte Read shows the pseudocode necessary
to read virtual registers on the AS7262. Note that in this case,
reading a virtual register, the register address is not modified.
I²C Virtual Register Byte Read
Pseudocode
Poll I²C slave STATUS register;
If TX_VALID bit is 0, the virtual register address for the read may be written;
Send a virtual register address;
Poll I²C slave STATUS register;
If RX_VALID bit is 1, the read data is ready;
Read the data.
Sample Code:
uint8_t i2cm_AS72xx_read(uint8_t virtualReg)
{
volatile uint8_t status, d;
while (1)
{
// Read slave I²C status to see if the read 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);
while (1)
{
// Read the slave I²C status to see if our read data is available.
status = i2cm_read(I2C_AS72XX_SLAVE_STATUS_REG);
if ((status & I2C_AS72XX_SLAVE_RX_VALID) != 0)
// Read data is ready.
break;
}
// Read the data to complete the operation.
d = i2cm_read(I2C_AS72XX_SLAVE_READ_REG);
return d; s
}
The details of the
i2cm_read() and i2cm_write()
functions in previous Figures are dependent upon the nature
and implementation of the external I²C master device.



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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