1.18 Use Cases
145
1.18.6.1
Working with the I2C interface (I2C Control)
1.18.6.1.1
Introduction
As mentioned in the
Device specific interface layout
section of the
"mvIMPACT Ac-
quire API"
manuals, the
"I2CControl"
is a feature which allows the mvBlueFOX device to communicate with
custom-specific peripherals via the I2C interface.
1.18.6.1.2
Setting up the device
The following steps will explain how to connect the mvBlueFOX with an I2C
device. In this use case, a LM75 I2C Digital Temperature Sensor is used:
Figure 1: wxPropView - I2C Interface Control
1. Start
wxPropView
(p.
2. Initialize the mvBlueFOX device
3. Navigate to
"Digital I/O -
>
I2CControl"
4. Enter the connection settings to address the I2C device memory (4).
E.g. to read the temperature of the example sensor, set
I2CDeviceAddress
to
"0x09F"
.
5. Set
I2CDeviceSubAddress
to
"0x00"
, because reading the temperature of this sensor does not need a sub
address.
6. Set
I2CBufferLength
(5) to
2
, because this sensor stores the temperature in a register of two bytes length.
7. Set the
I2COperationMode
(1) to
Read
. The least significant bit (LSB) of the device address will automati-
cally be overwritten by
0
for writing and by
1
for reading.
MATRIX VISION GmbH
Содержание MATRIX VISION mvBlueFOX Series
Страница 1: ...mvBlueFOX Technical Manual English Version 3 02...
Страница 2: ......
Страница 8: ......
Страница 19: ...1 6 Important Information 11 MATRIX VISION GmbH...
Страница 20: ...12 MATRIX VISION GmbH...
Страница 21: ...1 6 Important Information 13 1 6 3 Legal notice 1 6 3 1 For customers in the U S A Class B MATRIX VISION GmbH...
Страница 238: ...230 MATRIX VISION GmbH...