Beginning i2c programming

Guys i am building a robot based on beagle board.. but i need help on
i2c interface with a microcontroller.. can u guys pls help me how to
start with the programming ...i plan to do it in c..

Guys i am building a robot based on beagle board… but i need help on
i2c interface with a microcontroller… can u guys pls help me how to
start with the programming …i plan to do it in c…

http://www.robot-electronics.co.uk/htm/using_the_i2c_bus.htm
http://www.linuxjournal.com/article/7136
http://www.linuxjournal.com/article/7252

linux-2.6/drivers/i2c
linux-2.6/Documentation/i2c

the I2C is quite easy to handle on the beagleboard, just make sure to
have the proper mux configuration in u-boot, and that the kernel
initialize i2c-2. I have built a board that converts the 1.8v of the
expansion port io to 5v for the I2C, SPI3, and uart. I am now
controlling a RGB led using a TLC59108, and i plan to control motors
over using a I2C DC motor driver, an ADC on SPI (max1245) and a GPS on
uart . The i2c-tools is pretty usefull to test the hardware.

Did somebody found solutions about rotating screen on Angstrom distro? I
found that current xf86-video-omafb driver can't handle VRFB rotation.

regards
Mick

You can try to improve http://dominion.thruhere.net/git/cgit.cgi/xf86-video-omapfb/patch/?id=1252feac6cf7739f4d7df6c9afd10ab18ce0cc13

regards,

Koen

Just some practical hints

- build an OE base-image
- download from http://www.angstrom-distribution.org/repo/ the
necessary packages (i2c-tools)
- opkg install it

now you can test the i2c busses

i2cdump -f 1 0x4a

the TPS65950 is connected on bus 1 and maps the internal registers @
0x48, 0x49, 0x4a and 0x4b

you can easily control LED D12 intensity by writing the PWMB registers
@ 0xf1, 0xf2
i2cset -f 1 0x4a 0xee 0x22 (enables the led and pwm control)

i2cset -f 1 0x4a 0xf1 0x10 (set on time)

i2cset -f 1 0x4a 0xf2 0x70 (set off time)