Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use I2C

21 bytes added, 19:03, 16 January 2012
no edit summary
//Address DVI Standard: 0x50
#define ADDRESS 0x50</pre>
Constant FORCE is defined to allow this program acces access to I2c, although other program programs use this oneit at the same time. It can be dangerous in writing operations but in this cause don't case, read operations, have sense no use it.<br>
Constant ADDRESS is defined to acces in specific I2C address, in DVI devices , 0x50 is default address, that means that same bus other peripherals can be connected with more peripheralsto same bus.
See the code below:<br>
}
} </pre>
The program uses i2c_smbus_read_byte_data to get information from display, "i" variable is the EEPROM address, EEPROM (Slave) reads address and after EEPROM it send value to Omap (Master). <br>
More information about [[Peripherals Summary#I2C|I2C]].<br>
4,199
edits