Home > Documents > I2C to PC - I2C Chip I2C & SMBUS, Slave IC's, Host ... · I2C to PC USB & RS232 TO I2C/SPI ADAPTOR...

I2C to PC - I2C Chip I2C & SMBUS, Slave IC's, Host ... · I2C to PC USB & RS232 TO I2C/SPI ADAPTOR...

Date post: 04-Apr-2018
Category:
Author: duongkhanh
View: 254 times
Download: 7 times
Share this document with a friend
Embed Size (px)
of 19 /19
I2C to PC USB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER © 2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 1 of 15 ph +64 21 623-402 www.i2cchip.com [email protected] Features Uses BL233 I2C-Serial IC Both RS232 & USB interfaces Three separate I2C busses 2x SPI bus 2x Dallas type 1-Wire bus Easy ASCII commands High-Speed On-board power supply Galvanic Isolation 82B715 High current Bus buffer Power-On, Watchdog and other autonomous actions without working PC Auto-switching USB/RS232 Cross-Platform: Linux, Windows, PDA's etc USB Bus Powered 45x80mm Applications Evaluation Boards for I2C & SPI chips Rapid Prototyping & PnP design PC based instrumentation and control ATE for I2C/SPI based equipment Reader for 1Wire serial numbers Isolated I/O Cheap and Easy Data logging PC and Network Watchdogs PDA/Calculator Analog/Digital I/O Galvanically Isolated PC interface Education RS232 parrallel I/O Evaluation of I2C and SPI chips Programmable EEProm stores commands and settings Power On Reset actions Interrupt actions Watchdog timeout actions Macro's Autonomous actions Description With both USB and DB9 serial interfaces this is a truly universal I2C interface, that opens your product up to the widest possible range of computing hardware, with the simplest and most portable software format. Building an I2C based instrument needs nothing more than your I2C chip, everything else is included. There is an internal 5V power supply to run the interface and your target hardware. Simple systems will run from the USB USB RS232 FibreOptic RS422 Opto BL232 5V PSU 82B715 I2C TTL Serial Port I2C I2C I2C 10x Buffer 4 I2C Ports Galvanic Isolation Dual Interface I2C Adaptor
Transcript
  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 1 of 15ph +64 21 623-402 www.i2cchip.com [email protected]

    FeaturesUses BL233 I2C-Serial ICBoth RS232 & USB interfacesThree separate I2C busses2x SPI bus2x Dallas type 1-Wire busEasy ASCII commandsHigh-SpeedOn-board power supplyGalvanic Isolation82B715 High current Bus bufferPower-On, Watchdog and other

    autonomous actions withoutworking PC

    Auto-switching USB/RS232Cross-Platform: Linux, Windows,

    PDA's etcUSB Bus Powered45x80mm

    ApplicationsEvaluation Boards for I2C & SPI

    chipsRapid Prototyping & PnP designPC based instrumentation and controlATE for I2C/SPI based equipmentReader for 1Wire serial numbersIsolated I/O

    Cheap and Easy Data loggingPC and Network WatchdogsPDA/Calculator Analog/Digital I/OGalvanically Isolated PC interfaceEducationRS232 parrallel I/OEvaluation of I2C and SPI chips

    ProgrammableEEProm stores commands and settingsPower On Reset actionsInterrupt actionsWatchdog timeout actionsMacro's Autonomous actions

    DescriptionWith both USB and DB9 serialinterfaces this is a truly universal I2Cinterface, that opens your product up tothe widest possible range of computinghardware, with the simplest and mostportable software format.Building an I2C based instrumentneeds nothing more than your I2Cchip, everything else is included. Thereis an internal 5V power supply to runthe interface and your target hardware.Simple systems will run from the USB

    USB

    RS232

    FibreOpticRS422

    OptoBL232

    5V PSU

    82B715

    I2C

    TTL SerialPort

    I2C

    I2C

    I2C

    10x Buffer

    4 I2C Ports

    Gal

    vani

    c Is

    olat

    ionDual Interface I2C Adaptor

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 2 of 15ph +64 21 623-402 www.i2cchip.com [email protected]

    bus power.

    Unlike some competing products, itcan sustain high baud rates, and hasmultiple I2C BussesCompared to cruder solutions, itdoesn't rely on bit-bashing PCsoftware, ill defined I/O characterisics,or processor and OS dependent timing.

    Power-On-Reset actions can be set inEEProm so that systems are properlyinitialised when the PC is not present.

    Watchdog actions can be programmedto automatically respond to PC failure.

    Galvanic isolation can be installedwhere the I2C busses need to beisolated from the computer.

    An optional Fibre Optic interface isavailable where very high voltage ortotally secure isolation is required. An RS422 interface is available forlong distance or high noise immunity.Ferrite beads are fitted to all data linesfor EMC protection.

    Table Of ContentsFEATURES.............................................................................................................................................1

    APPLICATIONS....................................................................................................................................1

    PROGRAMMABLE ..............................................................................................................................1

    DESCRIPTION ......................................................................................................................................1

    1 COMMANDS.......................................................................................................................................3

    2 SOFTWARE INTERFACE................................................................................................................3

    3 INSTALLING AND TESTING YOUR NEW ADAPTOR..............................................................4

    4 RS232-USB SELECTION...................................................................................................................4

    4.1 AUX INTERFACE .............................................................................................................................54.2 BLUETOOTH....................................................................................................................................5

    5 I2C BUS CONNECTOR.....................................................................................................................5

    6 CS AND INTERRUPT PINS..............................................................................................................6

    7 BUS DRIVE .........................................................................................................................................7

    8 POWER SUPPLY ...............................................................................................................................7

    8.1 USB BUS POWERED .......................................................................................................................78.2 POWER TO I2C DEVICES.................................................................................................................78.3 LOCAL AND USB POWER .............................................................................................................7

    9 OPTIONS.............................................................................................................................................8

    9.1 GALVANIC ISOLATION....................................................................................................................8

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002-4 Broadcast Equipment Ltd I2C2PC.doc r27 page 3 of 15ph +64 21 623-402 www.i2cchip.com [email protected]

    9.1.1 Power .....................................................................................................................................89.1.2 External 5V to PC Side ..........................................................................................................89.1.3 Fitting a DC-DC Convertor...................................................................................................89.1.4 Bypassing the isolation ..........................................................................................................89.1.5 Fitting Isolator Yourself.........................................................................................................99.1.6 USB Power only Cable ..........................................................................................................9

    9.2 82B715 BUS EXTENDER.................................................................................................................99.3 USB LEDS AND POWER LED ..........................................................................................................99.4 USB EEPROM ................................................................................................................................9

    10 EXAMPLE APPLICATIONS..........................................................................................................9

    10.1 8 BIT I/O PORT.............................................................................................................................910.2 SIMPLE DATA LOGGER WITH NO PC SOFTWARE.........................................................................1010.3 SIMPLE RS232 I/O PORT............................................................................................................1010.4 RS232 TO LCD MODULE ADAPTOR ...........................................................................................1010.5 HUGE RS232 PARALLEL PORT ...................................................................................................1010.6 READING A DS2401 1 WIRE SERIAL NUMBER ............................................................................11

    11 USB ...................................................................................................................................................11

    12 FAQ ..................................................................................................................................................11

    13 FACTORY TEST PROCEDURE..................................................................................................13

    13.1 VISUAL INSPECTION ...................................................................................................................1313.2 DC SUPPLY CURRENT AND POWER SUPPLY ................................................................................1313.3 RS232 ........................................................................................................................................1313.4 USB ...........................................................................................................................................1313.5 I2C BUS 1...................................................................................................................................1313.6 I2C BUS 2...................................................................................................................................1413.7 INT PIN......................................................................................................................................14

    14 SCHEMATICS AND DRAWINGS ...............................................................................................15

    14.1 PCB OVERLAY...........................................................................................................................1514.2 SCHEMATICS...............................................................................................................................15

    15 ORDERING INFORMATION ......................................................................................................14

    16 OEM VERSIONS ............................................................................................................................14

    16.1 RS232/USB TO TTL INTERFACE ...............................................................................................14

    17 CO-OPERATION............................................................................................................................14

    1 Command sRead the BL233 PDF Datasheet for a full description of commands and operation.

    2 Software InterfaceThe I2C-2-PC appears as a serial port device when either the USB or RS232 are used.(Linux and Windows).

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 4 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    No special API's or DLL's are required to access it. Almost any programminglanguage can be used including Labview. Our customers are using it with VB C, C++ Labview Matlab Delphi Java Python Perl PDA's Batch files

    3 Installing and Testing Your New AdaptorThe I2C2PC is normally shipped set to 57,600 bd N81, RTS/CTS handshake. If you have Galvanic Isolation fitted, read section 9.1

    Download, Install and Start Realterm (realterm.sourceforge.net)Change port settings to hardware handshake RTS/CTS. Set to HALFDUPLEX so

    you can see what you type. Alternatively you can make a shortcut with theseparameters e.g.realterm.exe baud=57600 flow=2 half

    Ensure the Port Select jumper is in AUTO position (ie not fitted). The port willdefault to RS232 when the USB is not connected.

    Connect a DB9 serial extender (m-f) cable (not a cross over cable) to the RS232.Apply 9V Centre positive 2.1mm power supply.When you apply power you should see a default startup message like HI I2C v103.

    Note you probably won't see this when using USB power, as the message isnormally sent before the bus has enumerated.

    Type ?. The I2C2PC should reply with 2 hex bytes of the status byte eg 18Install the Port Select Jumper in the AUTO position (towards the USB connector).

    Repeat the tests above (with RS232)If you are going to use the USB, install the FTDI driver software for Windows.

    http://www.ftdichip.com/FTWinDriver.htm

    4 RS232-US B SelectionSelector 1at edge of board under USB/DB9 connectors: 1 Boards before May 2003 are:Jumper toward DB9: Always USB

    http://realterm.sourceforge.net/http://www.ftdichip.com/FTWinDriver.htm

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 5 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    Jumper toward DB9: Always RS232Jumper toward USB connector: Always USB No Jumper: Autoselect USB when bus enumerates, RS232 otherwise.

    Duplicate jumper holes are in the board above the 4052(J2), and can be fitted whenyou don't want to use the ones at the edge.

    4.1 Aux InterfaceYou can add a 3rd interface, eg Fibre or RS422. This plugs into CN9, and is selectedby fitting J1, and the "USB Always" jumper.

    4.2 BluetoothA Bluetooth serial module could be connected to the Aux interface. This would beideal for interfaceing with PDA's.

    5 I2C Bus C onnectorThe I2C Bus connector used is a MICRO-MATCH by AMP. Either 4 or 6 way can beused. Connectors are available from Farnell.# 4 Way 6 Way1 SDA SDA2 VDD VDD3 VSS VSS4 SCL SCL5 INT / CS Interrupt input (active low) or

    Chip select for SPI (jumper select)6 VAUX Aux supply. Not connected

    The reason for the power lines being between the I2C wires is to stop the edges ofSDA and SCL coupling together. This follows the Philips pattern set out in section17.3 of The I2C Bus Specification.

    If the length of the bus lines exceeds 10 cmThis arrangement will have similar capactive loading on SDA and SCL. Where youdon't use pins 5 & 6, it can be better to just use 4 wires.

    Jumper toward USB connector: Autoselect USB when enumerated, RS232 otherwise.No Jumper: Always RS232

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 6 of 1

    ph +64 21 623-402 www.i2cchip.com

    AMPwww.amp.com

    Farnell

    www.farnell.com

    RS

    6 way male-on-wire

    7-215083-6 149-068

    6 pin female-onboard

    7-215079-6 148-519

    4 pin male-on-wire

    7-215083-4 149-032

    4 pin female-on-board

    7-215079-4 148-507

    Made up cable assemblies are available from Farnell.

    Figure 1

    6 CS and In terrupt PinsJumpers are provided to select the function of pin 5IRQ (input), and CS/1Wire (i/o). This is for BUS#connected to IRQ.

    Bus #2

    Bus #3

    Bus #1

    9V DC

    5 [email protected]

    of the I2C connector between 2, 3 only. Bus#1 is always

    CS IRQ

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 7 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    7 Bus DriveThe bus is fitted with 1k5 pullup resistors in SIL resistor packs. The BL233 can drivemuch higher currents if required, 15-20mA @5V VCC. There is a 47 ohm protectionresistor in series with the outputs that will need to be reduced of course. You will need a buffer at the other end of the bus. If you want to reduce the current, replace the resistor pack. We recommend cutting itout with fine side cutters, removing the individual pins through the top of the board,and desoldering the holes.

    8 Power Su pplyExternal power is 9-12V DC, (2.1mm centre positive). An on board power supplyregulator is fitted using a 7805.

    USB Bus Powered USB Data: ~50mA for I2C devicesUSB Bus Powered RS232 Data: ~50mA for I2C devicesExternal Power, RS232External Power USB

    8.1 USB Bus PoweredThe USB bus can deliver up to 500mA. Devices that draw > 100mA from the busshould have switched load.

    8.2 Power to I2C DevicesThe I2C Bus VDD is connected to the interfaces VDD (5V). To isolate an I2C Bus VDD from the I2C Adaptor's VDD, remove the associated0603 ferrite bead by the connector. (FB9-12)

    8.3 Local AND USB PowerBoards manufactured after April 2003 should work happily with both external andUSB power.If you do not want the USB bus to try and power your equipment, remove D5 (byUSB connector). Normally you would do this when building the I2C-2-PC into astandalone equipment that has its own 5V supply.

    With boards manufactured before May 2003:There are some traps to watch when using a local power source, and the USB adaptor.The USB chip will not see a power on reset when the USB Bus is connected, andlocal power is already applied, and may not enumerate correctly. See FTDIdocumentation for more reset details.

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 8 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    9 OptionsThese options are not fitted as standard, as few users require them.IL716 Galvanic Isolation82B715USB LedsPower LEDUSB EEProm3rd I2C bus connectorAux serial interface connector and jumper

    9.1 Galvanic IsolationThe NVE IL716-3 magnetic isolator is used for galvanic isolation. For moreinformation see the NVE datasheet.

    9.1.1 PowerWhen isolation is fitted, you have to power the PC side separately from the I2C side.Normally USB power is used for the PC side, and an external 9V supply for the I2Cside. If you want to use the RS232 interface, you can still use the USB connector to providepower. Just fit the "RS232" jumper to force the interface to use RS232. (with nojumper the interface autoselects USB when the USB is connected to a computer, butnot when a USB power-only cable is used)

    9.1.2 External 5V to PC SideIf you are not using USB power, fit 2 pin connector CN4 and protection zener D1(BZX85C5V6 or BZX85C6V2).The PC side requires 5V, 30mA.

    9.1.3 Fitting a DC-DC ConvertorIf you want to power one side of the isolation barrier from the other, you can fit a 5V-5V DC-DC convertor module. The easiest point to access VCC and GND is pins 1and 6 of CN2 and CN9. You can power either side from from the other. Suitable convertors are available fromFarnell, RS, Digikey etc.

    9.1.4 Bypassing t he isolationIf you don't need the isolation you can simply join VCC and GND ie CN2-1 to CN9-1and CN2-6 to CN9-6.Beware of forgetting that the isolation is gone!

    http://www.nve.com/

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 9 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    9.1.5 Fitting Isolator YourselfIf you need isolation, either mill, or chisel the bridging tracks from the IL716footprint and fit the IC.If you use RS232, and an isolator you will need to power the RS232 section. Fit CN4,and protection diode D1 (BZX85C5V6 or C6V2)

    9.1.6 USB Power only CableYou can use a USB Power-only cable to power the PC side, when using RS232. Thisis just a USB cable with only the 2 power wires fitted.

    9.2 82B715 Bus Extender(See Bus Drive above. If you only need more current, you probably don't need the82715 at the I2C-2-PC end)The Philips 82B715 increases the drive of Bus 1 by 10x where long bus lengths mustbe driven. At the other end of the extended bus you have another 82B715 on a BusExtender Board

    9.3 USB Leds and Power LedUSB-RX (led1) and USB-TX (led2) leds can be fitted if you want. Use 5V built-inresistor type leds (or use 3mm leds + 330 ohm resistors). These LEDs flash brieflywhen data is sent or received through the USB bus. They are useful for debuggingpurposes. Led3 is a power LED.

    9.4 USB EEPro mUSB info can be set in the 93C46B EEProm. FTDI utilities allow you to set this. Thiswill let you enumerate the device as something other than a generic usb/serial adaptor,as well as setting special information such as current concumption.

    10 Example ApplicationsSee the http://www.i2cchip.com for more examples.

    10.1 8 Bit I/O Po rtUse a Philips PCF8574 or Onsemi JLC1562. Seehttp://www.i2cchip.com/pcf8574.html for i/o boards and keyboards. You can drivesmall relays like NAIS TQ-2 directly.

    http://www.philipsic.com/http://www.i2cchip.com/http://www.i2cchip.com/pcf8574.html

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 10 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    Figure 2

    10.2 Simple Dat a logger with no PC SoftwareUse a Philips PCF8591 4 channel 8 bit A-D chip. Store this macro in the EEProm at location 0. It will run automatically at power on,sending 4 channels of A-D data in hex, followed by LFS90 04 R04 T0A L0200 >00[Start][address 0x90 (8591)][Control register=0x04][Read 4 channels of A-D] [TypeLF (linefeed)][delay 512 ms][goto start]Capture the data to file with Realterm.Plot it with Excel, Matlab etc.

    10.3 Simple RS232 I/O PortThe I2C-2-PC can be used directly as an 8 bit I/O port with a 1 bit IRQ input. No I2Cor SPI chips are needed at all. This is ideal for connecting relays, lights and switchesto a PC.O OF[write 0x0F direct to pins]Q[read pins]?[read IRQ input]

    10.4 RS232 to L CD Module adaptorA single PCF8574 can drive a standard LCD module. This circuit is available builtup.

    10.5 Huge RS232 Parallel PortTo get are large number of cheap and easy output pins with good drive capability, usethe SPI output, and 74HC4094 shift registers. Eg a 32 bit output with 4x 4094's.SDA4 is used as STB for the 4094'sG3 Y01020408 OFFFD OFFFC

    [select bus3][send 4 bytes to 4094's][pulse STB pin to latch data] nb O not zero

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 11 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    10.6 Reading a DS2401 1 Wire serial numberTo read a DS2401 serial numberGC S ? W33 R04[Select 1 wire bus#1 (bus #C)][Start(reset)][Get status to check presence][ReadRomCommand][Read 4 bytes of rom data]Since Start can be followed immediately by write data, a shorter version is:GC S 33 R04[Select 1 wire bus#1 ][Start][ReadRom command][read 4 bytes]

    11 USBUSB requires the Virtual Comport drivers for Windows. For other operating systemssee http://www.ftdichip.com/FTDriver.htm

    USB introduces latency that may affect your software design. Seehttp://www.ftdichip.com/knowledgebase/AppNotes/005/knowledgebase.htm

    This latency affects all USB devices. To avoid it you should structure your softwareto decouple the commands you send from the data coming back. ie you send as manycommands as possible to the BL233, then you process the data as it returns. If yousend a command, then wait for each response, performance can be very poor.

    Just because USB runs at 12Mbps does not mean it really works fast. RS232 mayperform better in practice. This is why we provide both interfaces.

    The USB configuration in EEProm can be changed so that it enumerates as a specialdevice rather than a virtual comm port. FTDI utilities can be provided to do thisFTDI provides D2XX DLL Drivers are to directly access the USB interface.http://www.ftdichip.com/FTD2XXDriver.htm We recommend using the Virtual Comm Port approach, as you retain the flexibility touse RS232 with no software changes.

    12 FAQ

    The BL233 datasheet is the place to find answers to your software questions!

    Can I use 3V IC's?Yes. Bus# 3 has TTL Levels. Use 2 shottky diodes to clamp SDA &SCL to the 3VVCC.An alternative is a level shifter. Contact [email protected] for availability.

    http://www.ftdichip.com/FTDriver.htmhttp://www.ftdichip.com/knowledgebase/AppNotes/005/knowledgebase.htmhttp://www.ftdichip.com/FTD2XXDriver.htmmailto:[email protected]

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 12 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    Can you supply a 3V version?Yes we can for OEM orders.

    My adaptor doesn't work. I have Galvanic Isolation. You have to power the PC side and the I2C side separately. See 9.1.1

    USB is really slow?Latency is an issue. See USB section 11

    The data is gobbledygook.First use Realterm to test the adaptor. Make sure the baud rate is correct (57600 isdefault) and that you are using RTS/CTS handshaking.

    Realterm doesn't do XXXXYou can try the latest development version of Realterm athttp://www.i2cchip.com/realterm

    Does it work with Labview?Yes. Labview has good serial support

    How do I interface to a PDA? Most PDA's have TTL level serial connections available. The BL233 will directly

    interface to this through the AUX header on the pcb. RS232 adaptor cables are available for some PDA's. You will probably need a

    null modem plug/cable to connect them together You can use an IRDA receiver connected to the AUX header. The IR port is a

    comm port to the PDA software Use a bluetooth module connected to the AUX header. These give up to 100m

    range. RS232 Compact Flash card. If your PDA has a CF slot you can get an RS232 card

    for it.

    My PDA has a USB cable. How do I use it?Except for the latest devices, most PDA's are a USB slaves, and cannot control otherUSB slaves. (ie you can't) If your PDA can plug direct into a USB printer then it might be possible.

    http://www.i2cchip.com/realterm

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 13 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    13 Factory Test ProcedureThis is the factory test procedure:

    13.1 Visual Insp ection

    13.2 DC Supply current and Power supplySet PSU to 0V.Connect to DC socket.Increase supply voltage slowly to 8V, whilst measuring the 5V line across D2, andwatching for excessive current (>50mA)Check supply voltage on CD4052 is between 4.75 and 5.25V

    13.3 RS232Install RS232 jumperConnect RS232 cable and set terminal program to nominal baud rate (normally57600)Connect power to adaptorTerminal should display "HI I2CAD V1.04" or similar. Note that once the EEPromhas been changed this may no longer be true.Type "?". Board will reply with 2 chars eg 18

    Remove jumper (auto-select).Type "?" again and check still works

    13.4 USB(Note that FTDI USB/serial adaptor drivers may need to be installed first time)Remove RS232. Plug in USB.Type "?" and check response.In case of problems check the USB RX and USB TX LED positions with anoscilloscope. These pulse low when chars are received or sent. Note that you won'tsee the "HI I2CAD V1.04" power on message through the USB port as the USBconnection is not enumerated yet, when the BL232 starts.

    13.5 I2C Bus 1Connect the test PCF8574 board to I2C Bus1.Type "S42F0P"Half the leds will come on

  • I2C to PCUSB & RS232 TO I2C/SPI ADAPTOR & CONTROLLER

    2002 Broadcast Equipment Ltd PRELIMINARY I2C2PC.doc r27 page 14 of 15

    ph +64 21 623-402 www.i2cchip.com [email protected]

    13.6 I2C Bus 2Connect the test PCF8574 board to I2C Bus1.Type "G2" to change to I2C Bus 2Type "S42F0P"Half the leds will come on

    13.7 INT PinPut jumpers J4,5 in INT positionSend ?. Reply is "18"Hold down a button on 8574 board.Send ?. Reply is "08"Check for 3 busses

    14 Ordering Information

    14.1 OEM Versio nsIt is available as a bare board in OEM packs. Bare boards can be supplied with aslightly different DB-9 if required for mounting the board on stand-offs.Special builds are also available for volume orders. RS232 only USB only Bluetooth

    14.2 RS232/USB to TTL InterfaceWe supply this board for use as a built up serial interface to customers TTL leveldevices. Contact us for pricing.CN2 connects to your device and can power it.Pin# Direction Function1 V+2 From PC TTL RTS3 From PC TTL TXD4 To PC TTL RXD5 To PC TTL CTS6 0V

    15 Co-opera tionWe offer all customers a link page on our web site, where others can find out aboutyour products. We encourage you to use this.

  • 1 2 3 4

    A

    B

    C

    D

    4321

    D

    C

    B

    A Title

    Number RevisionSize

    A4

    Date: 5-Jun-2003 Sheet of File: C:\cad\a\I2CAd\I2CAd.ddb Drawn By:

    TTL_RTS

    TTL_CTSTTL_RXD

    TTL_TXD

    VCC

    GND

    I2CSerialAdI2CSerialAd.Sch

    123

    CN5

    Socket2.1mm

    C17

    47uF 10V

    12

    CN4

    D2

    C6V8

    Power or VCC 5V Led Vin1

    GN

    D2

    Vout3

    U87805 C18

    47uF 16V

    D3

    1N4001

    C19100n

    led3

    5Vorg3mm

    D4

    1N4001

    USB_TXD

    USB_RXDUSB_CTS

    USB_RTS

    GND

    _PWREN

    VCC

    FT8U232BFT8U232B.Sch

    TTL_RTSTTL_TXD

    TTL_RXDTTL_CTS

    GND2

    VCC2

    USB_TXDUSB_RTS

    ALL_RXDALL_CTS

    OPTO_RTSOPTO_TXD

    VCC1

    GND1

    _USBEN

    RS232Ad_BRS232Ad_B.sch

    FID?

    FIDUCIAL

    FID?

    FIDUCIAL

    MP?

    OTHER BARE BOARD

  • 1 2 3 4

    A

    B

    C

    D

    4321

    D

    C

    B

    A Title

    Number RevisionSize

    A4

    Date: 29-May-2004 Sheet of File: C:\cad\a\I2CAd\I2CAd.ddb Drawn By:

    GND1

    23456789

    R31k5

    C8100nF

    C10 15pF

    C915pF

    X114.7456

    VDD 14

    OSCIN 16

    OSCOUT 15RST4

    SCL4/CS23

    VSS5

    SDA22

    SCL21 SDA1 18

    SCL1 17

    SDA3 13

    SCL3 12

    SDA4/CS3 11

    RTS 10CTS9

    TXD8

    RXD7

    INT6

    U4BL233-DIP

    VCC

    GND

    TTL_RTS

    TTL_TXD

    TTL_RXD

    TTL_CTS

    VCC

    GND

    VCC

    VCC

    GND

    R17 47

    R18

    47

    R19 47

    R20 47

    R16 47

    R15 47

    SDA1

    VDD2

    VSS3

    SCL4

    INT5

    VAUX6

    CN8I2C6PIN

    SDA1

    VDD2

    VSS3

    SCL4

    INT5

    VAUX6

    CN7I2C6PIN

    SDA1

    VDD2

    VSS3

    SCL4

    INT5

    VAUX6

    CN6I2C6PIN

    GND

    C23

    100n

    C22

    100n

    C21

    100n

    FB11

    FB10

    FB9

    GND

    GND

    R23

    47

    R24

    47

    R25

    47

    GND

    GND

    NC 1

    LX 2

    LY 3

    GND 4NC5

    SY6

    SX7

    VCC8U7

    82B715

    SDA1

    VDD2

    VSS3

    SCL4

    INT5

    VAUX6

    CN10I2C6PIN

    VCC

    VCC C24

    100n

    C20

    100n FB12

    GND

    R26

    47

    GND

    R28470

    R27470

    I2C Bus 1 Buffered

    I2C Bus1

    I2C Bus 2

    I2C Bus 3

    1 2 3

    J5CON3

    1 2 3

    J4CON3

    Q1B

    DMMT3906W n/f

    Q1A

    DUAL-PNP

    R71k5

    GND

    VCC

    Q2B

    DMMT3906W n/f

    Q2A

    DUAL-PNP

    R81k5

    GND

    VCC

    Q3B

    DMMT3906W n/f

    Q3A

    DUAL-PNP

    R291k5

    GND

    VCC

    Q4B

    DMMT3906W n/f

    Q4A

    DUAL-PNP

    R301k5

    GND

    VCC

    R31

    1k5

    VCC

    Bus 1&2 can have either Constant-Current or Resistive pullups. From the factory, resistive pullups are standard.

    EITHER:Use 9 pin R5 resistive pull-ups (default)ORFit constant current generators (Q1-4+resistors) and 5 pin R3. 5 pin SIL is fitted with pin 1 in the pin 1 position

    R32

    1k5VCC

  • 1 2 3 4

    A

    B

    C

    D

    4321

    D

    C

    B

    A Title

    Number RevisionSize

    A4

    Date: 5-Jun-2003 Sheet of File: C:\cad\a\I2CAd\I2CAd.ddb Drawn By:

    GND1

    C5100nF

    GND1

    GND1

    GND1

    GND1

    C3100nF

    C1 100nF

    C2 100nF

    C4 100nF

    DCD 1

    DSR 6

    RXD 2

    RTS 7

    TXD 3

    CTS 8

    DTR 4

    RI 9

    GND 5

    CN1DB9F

    C1+1

    V+2

    C1-3

    C2+4

    C2-5

    V-6

    T2OUT7

    R2IN8 R2OUT 9

    T2IN 10

    T1IN 11

    R1OUT 12

    R1IN 13

    T1OUT 14

    GND 15

    VCC 16

    U1ST202ECD

    VDD11

    GND12

    IN13

    IN24

    OUT35

    OUT46

    GND18

    VDD2 16

    GND2 15

    OUT1 14

    OUT2 13

    IN3 12

    IN4 11

    GND2 9

    U3IL716

    X0 12

    X1 14

    X2 15

    X3 11

    Y01

    Y15

    Y22

    Y34

    INH6

    A 10

    B 9VEE7

    X 13

    Y3

    VCC 16

    GND8

    U274hc4052

    GND1

    C6

    100nFGND1

    C7100nF

    R1

    10kR2

    10k

    12

    J1

    VCC1

    GND1

    FB1FB2

    FB3

    VCC2VCC1

    Refers to PC labels

    123456

    CN2

    MM6F

    GND2

    VCC2

    4052 Mux Posn's0: Opto1: Invalid (not used)2 :USB3: RS232

    TTL_RTSTTL_TXDTTL_RXDTTL_CTS

    GND2

    VCC2

    USB_TXDUSB_RTS

    ALL_RXDALL_CTS

    OPTO_RTS

    OPTO_TXD

    RS232

    VCC1

    GND1

    C1647uF

    VCC1

    VCC1

    FB4

    IL716 normally NOT FITTEDand tracks bridge packageCut tacks and fit to isolate

    GND1

    123

    J2

    _USBEN

    VCC1

    USB

    n/f: Auto

    D1C6V8

    123456

    CN9

    MM6FGND1

    VCC1

    Opto Select

    GND2

    External Fibre /RS422 Adaptor

    External TTL Serial Device

    123

    J3

    GND1

    R5

    10k

  • 1 2 3 4

    A

    B

    C

    D

    4321

    D

    C

    B

    A Title

    Number RevisionSize

    A4

    Date: 5-Jun-2003 Sheet of File: C:\cad\a\I2CAd\I2CAd.ddb Drawn By:

    GND1

    GND1

    GND1

    R10 27

    R9 27

    R111k5

    FB8

    GND1

    C14

    100n

    C1533nF

    GND1

    GND1

    GND1GND1

    C11

    100n

    Vbus 1

    D- 2

    D+ 3

    GND 4

    Chasi 5

    CN3

    USB CONECTOR

    EESK1

    EEDATA2

    VCC3

    RST4

    RSTOUT5

    3v3OUT6

    USBDP7

    USBDM8

    GN

    D9

    SLEE

    P10

    RXLE

    D11

    TXLE

    D12

    VCC

    IO13

    PWRC

    TL14

    PWRE

    N15

    TXD

    EN16

    GND 17RI 18

    DCD 19DSR 20DTR 21CTS 22RTS 23

    RXD 24

    TXD

    25V

    CC26

    XTI

    N27

    XTO

    UT

    28A

    GN

    D29

    AV

    CC30

    TEST

    31EE

    CS32

    U6

    FT8U232B

    CS 1CLK 2

    D 3

    Q4

    GN

    D5

    ORG6

    DNC7

    VCC

    8

    U5M93C46BN1(8)

    R1310k

    R12

    2k2

    GND1

    R6

    100k

    R4

    10k

    VCCUSB

    GND1

    X26MHz

    USB_TXD

    USB_RXD

    USB_CTSUSB_RTS

    GND

    _PWREN

    VCC

    VCCUSB

    R22 n/f

    R21 10k

    GND1

    VCCUSB

    PWRCTL tied low for Bus PoweredHi for self powered

    led2

    5Vorg3mmled1

    5Vorg3mm

    VCCUSB

    C30 27pF C31 27pF

    GND1 GND1

    VBUS

    PWREN is Active Low.Prevously USBEN was active hi,un FT8U232A

    Q5BC847

    D51N5711

    R14470

    C12

    100n

    FeaturesApplicationsProgrammableDescriptionCommandsSoftware InterfaceInstalling and Testing Your New AdaptorRS232-USB SelectionAux InterfaceBluetooth

    I2C Bus ConnectorCS and Interrupt PinsBus DrivePower SupplyUSB Bus PoweredPower to I2C DevicesLocal AND USB Power

    OptionsGalvanic IsolationPowerExternal 5V to PC SideFitting a DC-DC ConvertorBypassing the isolationFitting Isolator YourselfUSB Power only Cable

    82B715 Bus ExtenderUSB Leds and Power LedUSB EEProm

    Example Applications8 Bit I/O PortSimple Data logger with no PC SoftwareSimple RS232 I/O PortRS232 to LCD Module adaptorHuge RS232 Parallel PortReading a DS2401 1 Wire serial number

    USBFAQFactory Test ProcedureVisual InspectionDC Supply current and Power supplyRS232USBI2C Bus 1I2C Bus 2INT Pin

    Ordering InformationOEM VersionsRS232/USB to TTL Interface

    Co-operationSchematics and DrawingsPCB OverlaySchematics


Recommended