Position: Home > Blog Center > Project Solutions > 2011 > 2011/08 > 2011/08/15 > USB/I²C INTERFACE I-square-C rules… 2
Low Cost Custom Prototype PCB Manufacturer

Project Solutions

USB/I²C INTERFACE I-square-C rules… 2

Published:2011/8/15 22:09:00 Author:Amy From:SeekIC

Paul Goossens

Interface

The interface we’ve designed should satisfy several requirements. We would like to keep the installation under Windows as easy as possible. What’s more, it should be (relatively) easy to control the interface. It would also be nice if we could run longer cables between the interface and I2C modules, so the user can connect devices that are a long way away from the PC.

Our first task was to search for a suit­able controller with a USB interface. We decided to use a TUSB3410 made by Texas Instruments, as this micro­controller has both a USB as well as an I2C interface. This is described (some­what misleadingly) as a ’USB to Serial Port Controller’. In fact this is an 8051 compatible controller with a USB inter- face, 16 kBytes of program memory, an enhanced serial port and an I2C inter­face. All these goodies are contained within a small 32-pin SMD package. To satisfy the requirement for the I2C connection to work over greater dis­tances, we have given the signals an extra boost with the help of a P82B715PNI2C bus extender.

Circuit diagram

The circuit diagram for our interface is shown in Figure 1. At the heart of the circuit is the TUSB3410 (IC1) with its associated oscillator (XI, C5 and C6). We’ve used an external mains adapter for the power supply. Its 9 V output is stabilized down to 5 V by IC4. There is also a requirement for a 3.3 V supply for the processor and the I2C EEPROM. For safety reasons we decided not to supply the circuit with power directly from the USB bus. The 5 V supply is also brought out on this connector and an overload or short could damage the USB interface in the PC.
Figure 1. The circuit for the interface is built round a TUSB3410.


The data lines from the USB connector (Kl) are connected via resistors R2 and R3 to the appropriate data inputs of the controller. The D-f line is con­nected via a lk5 pull-up resistor to the PUR (Pull-Up Resistor) output of IC1. Normally this resistor is connected to the positive supply. This is required for a USB hub to detect that a full-speed USB device is connected to the USB port. By connecting this pull-up resis­tor to an output of the controller, the controller itself can tell the USB hub that a device is present. The reverse is also possible in that the controller can fool the hub that the device has been disconnected, by forcing this output low. This process is important during the booting of the chip (refer to the inset on booting the TUSB3410).

The firmware is stored in an I2C EEP­ROM (IC2) and is connected to the con­troller via the I2C bus. Diodes Dl and D2 absorb any potential voltage spikes and protect both I2C signal inputs of the controller. R5 are R6 the pull-up resistors that have to be present on every I2C bus.

You will have noticed that the I2C bus of the controller works at 3.3 V. These signals are not suitable for use in com­bination with a 5 V chip. Unfortunately, the PC bus-extender is a 5 V device, so both I2C signals first have to be converted to a 5 V level. This is taken care of by components Tl, T2, R9 and RIO. The P82B715PN I2C bus extender along with Rll and R12 allow longer cables to be connected to the I2C bus by lowering the impedance and increasing the current output. These signals are then taken to the outside world via K3.

The double-sided PCB shown in Figure 3 is very small, but still has all the required connectors on board. Mounting the components shouldn’t be very difficult, with the exception of the SMDs: IC1, Tl andT2. It’s still possible to solder the two transistors using a soldering iron with a fine tip, but it becomes more difficult with the IC. The IC should first be fixed in the right place on the board with a drop of glue. Then solder all pins together as well as to the solder pads. You should work quickly to avoid the IC becoming too hot. After everything has cooled down again you should place a clean piece of desoldering braid across the pins and remove the excess solder (i.e. the shorts between the pins). Don’t attempt this with a solder sucker! Take care at all times that the IC doesn’t overheat. You should finally inspect all pins with a magnifying glass and multi-meter to check that they are con­nected properly and that there aren’t any shorts left.

Figure 3. The PCB for the interface. ICl, Tl and T2 are SMDs and have to be soldered carefully using a fine tip.



Reprinted Url Of This Article: http://www.seekic.com/blog/project_solutions/2011/08/15/USB_Isup2;C_INTERFACE_I_square_C_rules…_2.html

Print this Page | Comments | Reading(2275)

To evaluate my
Code: