MCC MIIC-203 Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Nein MCC MIIC-203 herunter. MCC MIIC-203 User`s guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 77
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
User’s Guide
USB to I
2
C Host Adapter
ASCII Fast Mode
with iPort Utility Pack Software
www.mcc-us.com
Seitenansicht 0
1 2 3 4 5 6 ... 76 77

Inhaltsverzeichnis

Seite 1 - User’s Guide

User’s GuideUSB to I2C Host AdapterASCII Fast Modewith iPort Utility Pack Softwarewww.mcc-us.com

Seite 2 - Introduction

1Part 1 - iPort/USB USB to I2C Bus Host AdapterPart 1USB to I2C BusHost AdapterwithASCII Fast ModeUser’s GuideModel: MIIC-204

Seite 3

21 OverviewThe MCC iPort/USB USB to I2C Bus Host Adapter with ASCII Fast Mode(#MIIC-204) allows any Windows 2000, XP, Vista, or 7 PC with a free USB p

Seite 4 - Table of Contents

3standard serial communication programming methods to work unchanged. Nospecial USB programming is required. The iPort/USB VCP is available to the hos

Seite 5

42.1 USB ConnectorThe USB connector provides connection from the I2C adapter to a USB port on thehost computer or self-powered USB hub. The iPort/USB

Seite 6

5supply. See the “Hardware Setup” section for additional details.2.3 I2C Interface ConnectorThe I2C adapter includes a four wire, positive locking, mo

Seite 7

6standard I2C Bus connector, you may want to cut off one end of the cable and add aconnector compatible with your target system. Additional I2C Interf

Seite 8

7If you are connecting the I2C adapter to a 3.3 volt target system, you should followthese steps BEFORE applying power:• Shut off the iPort/USB intern

Seite 9

8care must be taken to avoid electrostatic discharge. Failure to follow ESD protectionprocedures when using the I2C adapter could damage the host comp

Seite 10 - Model: MIIC-204

9the common earth ground point.• If unsure how to properly ground system components, seek electrical expert help.WARNING: Any damage caused by Electro

Seite 11

10(Start | Settings | Control Panel | System | Device Manager | Ports (COM &LPT)), or the Driver Uninstall short-cut on the iPort Utility Pack Sta

Seite 12

IntroductionThe MCC iPort/USB™ USB to I2C Host Adapter with ASCII Fast Mode(#MIIC-204) allows any Windows 2000, XP, Vista(x86/x64), or 7(x86/x64) PC,w

Seite 13

11provides additional power to the target system via the I2C connector. See“+5VDC Power Jack” section for additional details.If you have any questions

Seite 15

13Part 2 - iPort Utility Pack for WindowsPart 2iPort Utility PackforWindows

Seite 17

15Main Screen (Typical)1 iPort Utility Pack for WindowsThe iPort Utility Pack for Windows is your express lane to I2C Buscommunications. The Utility P

Seite 18

16Main Screen (Typical)1.2 iPort Message ManagerThe iPort Message Manager operates with all versions of our I2C Bus HostAdapters. Using the Message Ma

Seite 19

172 System RequirementsOne of the following MCC I2C Bus adapters:1. i2cStick (#MIIC-207) USB to I2C Bus Host Adapter.2. iPort/USB (#MIIC-204) USB to I

Seite 20

18Main Screen (Typical)4 iPort Message Center The iPort Message Center supports I2C Master Transmit and Master Receiveactivities for all MCC I2C Bus h

Seite 21

19Opening Screen (Typical)Main Screen (Typical)4.1 Message Center OperationsCommunicating with another device on the I2C Bus is easy. Just install the

Seite 22

204.1.3 Select the Communications PortUse the “ComPort:” control to select the communication port connected to the I2Cadapter. If a USB-based device i

Seite 23

Copyright© 2011 by Micro Computer Control Corporation. All rights are reserved.No part of this publication may be reproduced by any means without the

Seite 24

21Use the I2C Message Editor to:1. Set I2C Address.The I2C Address is the I2C slave address of the slave device being addressedon the bus. All slave

Seite 25

22across the bus begins with a Start Condition, in this case a Repeated Start. An I2C Bus master, that successfully sends a message on the bus, owns t

Seite 26 - *Run and type

234.1.7 Inserting and Deleting MessagesYou can insert a new message between existing messages by clicking once on amessage below where you want to ins

Seite 27

244.1.11 Slave Not AcknowledgingIf you get a “Slave Not Acknowledging” message in the Status window, this couldindicate you have the wrong address in

Seite 28

254.2 Command Line ArgumentsThe Message Center can be controlled via command line arguments. This featureallows the Message Center to be accessed from

Seite 29

264.2.1 Set Adapter Typei2cStick i2cStick (#MIIC-207)iPort/USB iPort/USB (#MIIC-204)iPort/AFM iPort/AFM (#MIIC-203)iPort/AI iPort/AI (#MIIC-202)iPort

Seite 30

27nearest available supported rate.4.2.5 Enable /INT Signal MonitorMonitor/INT (on INT supported adapters only. Default=OFF)Enable /INT signal monitor

Seite 31

284.2.10 Beep On Arbitration LossBeepOnArbLoss (Default=OFF)Generate a host computer beep if the adapter returns a "Bus Arbitration Loss"res

Seite 32

294.2.14 Saved I2C Message List FileAutoSave=filenameAutoSave="file name"Automatically save message list to the specified file upon executin

Seite 33

30Main Screen (Typical)5 iPort Message Manager The iPort Message Manager supports I2C Master and Slave, Transmit and Receiveactivities for all MCC I2

Seite 34

Table of ContentsPart 1 - iPort/USB USB to I2C Bus Host Adapter ...11 Overview ...

Seite 35

31Opening Screen (Typical)Main Screen (Typical)5.1 Message Manager OperationsCommunicating with another device on the I2C Bus is easy. Just install th

Seite 36

32Basic Set Up Screen5.1.3 Establish Adapter Communications LinkOn the main screen, click the Open button to view the Set Up Screen. Three levelsof se

Seite 37

33Advanced Set Up Screen5.1.3.2 Advanced SetupOn the Advanced Setup screen you can set the following parameters:Adapter’s Own I2C Slave AddressSelect

Seite 38

34Diagnostic Set Up Screen5.1.3.3 Diagnostic Setup (on supported adapters)On the Diagnostic Set-up screen you can set the following parameters:Log Fil

Seite 39

355.1.4 Sending I2C Messages5.1.4.1 Master Operations5.1.4.1.1 Specifying the Destination AddressThe Destination Address is the I2C slave address of t

Seite 40

365.1.4.1.3 Auto RepeatThe situation often arises, where you would like to automatically repeat a mastermessage operation.The Message Manager supports

Seite 41

37Click OK to accept the data.Sending Master Transmit MessagesClick the Master Tx button to write the specified Master Tx Data Bytes to theselected de

Seite 42

38Negative Acknowledge Last ByteOn supported adapters, the doNak checkbox gives you the option to acknowledge,or negatively acknowledge, the last byte

Seite 43

39based adapters, the Virtual Communications Port (VCP) Device Driver. Thefollowing instructions can be used to remove either or both software compone

Seite 45

1 iPort Utility Pack for Windows ...15iPort Message Center...15iPort Messa

Seite 46

41Part 3 - iPort/USB Programmer’s ReferencePart 3Programmer’s ReferenceASCII Command InterfaceDefinitions

Seite 47

42Programmer’sQuick StartCreating a custom iPort/USB program is easier if you know what to expect. Followthese steps to manually control the iPort/USB

Seite 48

43iPort/USBASCII Command InterfaceNote: [CR] = Carriage Return Code or Enter Key.Syntax: [Select], (Optional), xx = [00..FE], n = [0..32767]Command De

Seite 49

44 /Stext[CR]Slave Transmit MessageWrite the specified data bytes to a requesting I2C Master Receiver device. /(*)Ttext[CR]Master Transmit MessageMast

Seite 50 - Definitions

45Command: //[CR] 'Status Display Response: iPort/USB I2C Host Adapter w/ASCII Fast Mode Interface Vxx.xx Copyright © xxxx, Micro Computer Contro

Seite 51 - Programmer’s

46Set the destination I2C Slave Address (Hex 0,2...FE) for all subsequent MasterTransmit or Receive operations. Command: /Dxx[CR] 'Set Destinati

Seite 52 - Command Description

47these control characters are normally automatically stripped out of the data streamby Host communication driver software, and are not visible at the

Seite 53

48Response 1: * 'iPort/USB Ready Response 2: /I89[CR] 'Invalid Command Argument Default Setting: 6EI2C Bus Clock Rate ControlSet the I2C Bus

Seite 54

49/O Open I2C Connection /(*)Rn Master Rx Message *=No Stop /S(text) Slave Tx Message /(*)T(text) Master Tx Message *=No Stop/Un Set I2C Bus Time-o

Seite 55

50Enter Byte Count (Decimal 0...32767) then Press Enter, or ESCape to Cancel. AByte Count of Zero (0) represents a Variable Length message, where the

Seite 56

Load I2C Message List File...28Saved I2C Message List File ...29Auto Open...

Seite 57

51the I2C Bus, the iPort/USB outputs a Slave Transmit Request to its Host device, andinitiates an I2C Clock Stretch (SCL Low) until a Slave Transmit c

Seite 58

52Enter Message Bytes (0 or more Printable ASCII or Hex-equivalent ~00..~FF), thenPress Enter, ESCape to Cancel.Note: The tilde (~) character and the

Seite 59

53Set I2C Bus Time-oUt in msecSet bus time-out in milliseconds.The iPort/USB reports a bus time-out if no inter-byte bus activity for the specifiedtim

Seite 60

54S = Send Start~xx = Send Byte (xx = 00...FF)(response = A or N)R = Read Byte with Ack (response = ~xx)r = Read Byte with Nak (response = ~xx)P = Sen

Seite 61

55Low Level Response: /XCC0000[CR]Master read three bytes from slave address 0x4F. First two bytes are acknowledgedby master.Command: /X S ~4f Rrr P [

Seite 62

56Command: /Y[CR] 'Tx bYte CountResponse: /TBCn[CR] 'n =00000...32767

Seite 63

57Asynchronous Interface Events Asynchronous Events are those iPort/USB interface activities initiated by theiPort/USB I2C Host Adapter in response to

Seite 64

58The received text is a representation of the data bytes within the Slave Receivemessage. The format of this data is controlled by the current settin

Seite 65

59Cause: iPort/USB has detected an error condition on the I2C Bus. The host computershould retry the last command or issue an iPort/USB Reset command.

Seite 66

60host. The host should reissue the correct command.iPort/USB Receive Buffer OverflowPrompt: /I90[CR] ‘iPort/USB Serial Receive Buffer OverflowCause:

Seite 67

Part 3 - iPort/USB Programmer’s Reference ...41Quick Start ...42ASCII Comma

Seite 68

61Example CodeThe following examples are written in MS Visual Basic V3 for Windows using theserial communications control (MSCOMM.VBX). It can be use

Seite 69

62Communication Event ProcessingStatic Sub Comm1_OnComm () Static LineBuf$While Comm1.InBufferCount Msg$ = Comm1.Input ' Get Comm input character

Seite 70

63ElseIf (StrComp(iPortResp$, "/BC0") = 0) Then ' iPort/USB Baud Change 0 {19.2K} TextBox.Text = "iPort/USB Baud Change 0 {19.2K}

Seite 71

64TextBox.Text = "/I83 Arbitration Loss" 'Update DisplayElseIf (StrComp(iPortResp$, "/I84") = 0) Then TextBox.Text = "/I

Seite 72

65iPort/USB Revision ReportThis section defines revisions and changes made to the iPort/USB interface:Revision: 1.001 Initial ReleaseAdditional Inform

Seite 73

66Appendix A - I2C Connector InformationInterface Connector and Plug InformationMCC uses two (2) different connectors and plug assemblies. We have fou

Seite 74

67Declaration of ConformityThis Declaration of Conformity is issued by the indicated company which is solely responsiblefor the declared compliance.Pr

Seite 76

Invalid iPort/USB Command ...59iPort/USB Receive Buffer Overflow ...60Example Code ...

Kommentare zu diesen Handbüchern

Keine Kommentare