i2c interface to USB interface


Posted on Feb 19, 2013

The i2c-tiny-usb project is an open source/open hardware project. The goal of i2c-tiny-usb is to provide a cheap generic i2c interface to be attached to the usb. It is meant as a replacement for those simple and cheap printer port to i2c adapters. A USB solution has several advantages incl. the built-in power supply and a more future proof interface. Furthermore no cpu intense bitbanging is required on the host side. This USB solution even requires less parts than some printer port solutions. While the i2c-tiny-usb was developed under and for Linux it also works under Windows and MacOS X. A windows demo driver and demo application is included to get you started immediately.


i2c interface to USB interface
Click here to download the full size of the above Circuit.

The i2c-tiny-usb project is based on: The Linux USB project and the Linux i2c implementation The windows driver and test application are based on the libusb-win32 AVR-USB, a pure software implementation of USB for the AVR platform USBtiny, another software usb implementation for the AVR The USB interface of the i2c-tiny-usb interface is based on a pure software implementation and uses two pins of the AVR (PB0 and PB2). This software implementation supports low speed USB only which is signalled to the PC by resistor R1. The I2C interface is implemented using a bitbanging approach. The hardware supported twi interface of the attiny45 is bound to hardware pins at the chip that are required for USB operation and can thus not be used for I2C. The bitbanging I2C interface being used instead may not be fully I2C compatible and thus not every I2C client chip may function correctly at this bus. No incompatibilities have been reported so far. The i2c-tiny-usb provides a software adjustable i2c clock delay allowing to configure the i2c clock. The default delay is 10us. Due to additional delays in the i2c bitbanging code this results in a i2c clock of about 50kHz. For simplicity reasons all USB transfers are done via the control endpoint. Since the avr usb library does only support low speed devices it cannot use bulk transfers which are specified for high and full speed devices only. Low speed devices support so called...




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

Automotive ignition coil
SCA decoder
Magnetic Proximity Switch Circuit
learning How does this SIM card reader circuit work
Cat Repeller CircuitRepellentCircuit555 Ultrasonic Circuit
Proximity detector schematic
Buck-Based LED Drivers
Alarm Control Electronic Keypad Project
PSPICE Examples for EE-201
Battery over-discharge protection circuit diagram



Top