Electronic Components Datasheet Search
  English  ▼

X  

ADUX1020 Datasheet(PDF) 17 Page - Analog Devices

Part # ADUX1020
Description  Photometric Sensor for Gesture and Proximity
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  AD [Analog Devices]
Direct Link  http://www.analog.com
Logo AD - Analog Devices

ADUX1020 Datasheet(HTML) 17 Page - Analog Devices

Back Button ADUX1020 Datasheet HTML 13Page - Analog Devices ADUX1020 Datasheet HTML 14Page - Analog Devices ADUX1020 Datasheet HTML 15Page - Analog Devices ADUX1020 Datasheet HTML 16Page - Analog Devices ADUX1020 Datasheet HTML 17Page - Analog Devices ADUX1020 Datasheet HTML 18Page - Analog Devices ADUX1020 Datasheet HTML 19Page - Analog Devices ADUX1020 Datasheet HTML 20Page - Analog Devices ADUX1020 Datasheet HTML 21Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 32 page
background image
ADUX1020
Data Sheet
Rev. A | Page 16 of 31
Use the following steps to calibrate the 32 kHz clock by referencing
the timer of the controlling microprocessor. Do not set the I2C
output rate to a speed that overloads the I2C FIFO. If the micro-
processor is fully available for handling clock calibration operation
at this time, and its I2C speed is set to 400 kHz, the I2C throughput
will be more than 2 kHz.
1. Set the projected output rate to 820 Hz by writing 0x1C to
Register 0x44.
2. Set up and run the device in sample mode by writing 0x8
to Register 0x45, Bits[3:0].
3. Flush the I2C FIFO by writing Register 0x49, Bit 15.
4. Poll data from I2C FIFO for 0.5 sec by repeatedly reading
Register 0x60. Count the number of sample sets for 1 sec.
5. Calculate the actual output rate equal to the sample set
count divided by 0.5.
6. Adjust the 32 kHz oscillator trim value by writing to
Register 0x18, Bits[3:0] with the appropriate value.
7. Repeat Step 1 through Step 5 until the actual measured
output data rate is as close to 820 Hz as possible. If the
output data rate is below 820 Hz, increment the trim value,
and if it is above 820 Hz, decrement the trim value.
Calibrating the 32 MHz Clock
The 32 MHz oscillator on the ADUX1020 may also have up to
30% variation in frequency due to the variation of on-chip RC
components. Use the following steps to calibrate the 32 MHz
clock by comparing it with the 32 kHz clock.
1. Enable the 32 kHz oscillator by writing Register 0x18, Bit 7.
2. Enable the 32 MHz oscillator by writing Register 0x32,
Bit 3 and Bit 11.
3. Enable clock calibration by writing Register 0x30, Bit 5.
4. Read the calibration result from Register 0x0A, Bits[11:0].
5. Compare the calibration result. The calibration is complete
when the result read is as close as possible to the optimal
value of 2000. If it is not, increment the trim value if the
result is below 2000, or decrement if it is above 2000. Write
the new trim value and then write 1 to Register 0x30, Bit 5.
Note that typically two trim values produce calibration
results that straddle the optimal result. Choose the closest.
6. Write the new trim value in Register 0x1A, Bits[7:0].
7. Disable calibration by writing 0 to Register 0x30, Bit 5.
READING DATA
The ADUX1020 provides multiple methods for accessing the
sample data. Interrupt signaling is available to simplify timely
data access. The FIFO is available to loosen the system timing
requirements for data accesses.
Reading Data Using the FIFO
The ADUX1020 includes a 64-byte FIFO memory buffer that
can store data from either sample/gesture mode or proximity
mode. Register 0x45, Bits[7:4] select the kind of data to be
written to the FIFO. Data packets are written to the FIFO at the
output data rate.
Output Data Rate = fSAMPLE/N
where:
fSAMPLE is the sampling frequency.
N is the averaging factor for sample/gesture mode or proximity
mode. A data packet for the FIFO consists of a complete sample
for either proximity mode or sample/gesture mode. In proximity
mode, the device can store either only intensity i data as 2 bytes
or x, y, and i data as 6 bytes. In sample/gesture mode, the device
always sends 4 bytes to the FIFO.
To ensure that data packets are intact, new data is written only
to the FIFO if there is sufficient space for a complete packet.
Any new data that arrives when there is not enough space is
lost. The FIFO continues to store data when sufficient space
exists. Always read FIFO data in complete packets to ensure
that data packets remain intact.
The number of bytes currently stored in the FIFO is available in
Register 0x49, Bits[14:8]. A dedicated FIFO interrupt is also
available and automatically generates when a specified amount
of data is written to the FIFO.
To read data from the FIFO using an interrupt-based method,
use the following procedure:
1. In standby mode, set the configuration of sample/gesture
or proximity mode as desired for operation.
2. Write to Register 0x45, Bits[7:4] with the desired data
format for each mode.
3. Set FIFO_TH in Register 0x1F, Bits[11:8] to the interrupt
threshold. A good value for this is the number of 16-bit
words in a data packet minus 1, which causes an interrupt
to generate when at least one complete packet is in the
FIFO.
4. Enable the FIFO interrupt by writing INT_MASK,
Register 0x48, Bits[7:0]. Also, configure the interrupt pin
(INT) by writing the appropriate value to Register 0x1C,
Bit 2.
5. Enter sample/gesture or proximity mode by setting
Register 0x45, Bits[3:0] to the desired value.
6. When an interrupt occurs, the following results:
a. Note that there is no requirement to read the FIFO_
STATUS register because the interrupt is generated only
if there is one or more full packets. Optionally, the
interrupt routine can check for the presence of more
than one available packet by reading this register.
b. Force the 32 MHz clock on by writing 0x0F4F to
Register 0x32.
c. Read a complete packet using one or more multiword
accesses using Register 0x60. Reading the FIFO
automatically frees the space for new samples.
d. Set the 32 MHz clock to be controlled by the internal
state machine by writing 0x40 to Register 0x32.



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


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