| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
TSL2568CS bảng dữ liệu(PDF) 32 Page - OSRAM GmbH |
|
|
|||||||||||||||||||||||||||||
TSL2568CS bảng dữ liệu(HTML) 32 Page - OSRAM GmbH |
|
32 / 56 page ![]() ams Datasheet Page 31 [v1-00] 2016-Apr-12 Document Feedback TSL2568, TSL2569 − Application Information: Software Basic Operation After applying VDD, the device will initially be in the power-down state. To operate the device, issue a command to access the Control Register followed by the data value 03h to power up the device. At this point, both ADC channels will begin a conversion at the default integration time of 400ms. After 400ms, the conversion results will be available in the DATA0 and DATA1 registers. Use the following pseudo code to read the data registers: // Read ADC Channels Using Read Word Protocol − RECOMMENDED Address = 0x39 //Slave addr – also 0x29 or 0x49 //Address the Ch0 lower data register and configure for Read Word Command = 0xAC //Set Command bit and Word bit //Reads two bytes from sequential registers 0x0C and 0x0D //Results are returned in DataLow and DataHigh variables ReadWord (Address, Command, DataLow, DataHigh) Channel0 = 256 * DataHigh + DataLow //Address the Ch1 lower data register and configure for Read Word Command = 0xAE //Set bit fields 7 and 5 //Reads two bytes from sequential registers 0x0E and 0x0F //Results are returned in DataLow and DataHigh variables ReadWord (Address, Command, DataLow, DataHigh) Channel1 = 256 * DataHigh + DataLow //Shift DataHigh to upper byte // Read ADC Channels Using Read Byte Protocol Address = 0x39 //Slave addr − also 0x29 or 0x49 Command = 0x8C //Address the Ch0 lower data register ReadByte (Address, Command, DataLow) //Result returned in DataLow Command = 0x8D //Address the Ch0 upper data register ReadByte (Address, Command, DataHigh) //Result returned in DataHigh Channel0 = 256 * DataHigh + DataLow //Shift DataHigh to upper byte Command = 0x8E //Address the Ch1 lower data register ReadByte (Address, Command, DataLow) //Result returned in DataLow Command = 0x8F //Address the Ch1 upper data register ReadByte (Address, Command, DataHigh) //Result returned in DataHigh Channel1 = 256 * DataHigh + DataLow //Shift DataHigh to upper byte Application Information: Software |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| 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 |