MCC MIIC-203 Uživatelská příručka

Procházejte online nebo si stáhněte Uživatelská příručka pro ne MCC MIIC-203. MCC MIIC-203 User`s guide Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 77
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
User’s Guide
USB to I
2
C Host Adapter
ASCII Fast Mode
with iPort Utility Pack Software
www.mcc-us.com
Zobrazit stránku 0
1 2 3 4 5 6 ... 76 77

Shrnutí obsahu

Strany 1 - User’s Guide

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

Strany 2 - Introduction

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

Strany 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

Strany 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

Strany 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

Strany 6

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

Strany 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

Strany 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

Strany 9

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

Strany 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

Strany 11

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

Strany 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

Strany 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

Strany 15

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 21

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 28

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

Strany 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

Strany 30

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

Strany 31

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

Strany 32

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

Strany 33

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

Strany 34

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

Strany 35

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 42

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

Strany 43

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

Strany 45

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

Strany 46

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

Strany 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

Strany 48

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

Strany 49

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

Strany 50 - Definitions

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

Strany 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

Strany 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

Strany 53

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

Strany 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

Strany 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

Strany 56

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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 [

Strany 62

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

Strany 63

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

Strany 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

Strany 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.

Strany 66

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

Strany 67

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

Strany 68

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

Strany 69

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

Strany 70

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

Strany 71

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

Strany 72

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

Strany 73

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

Strany 74

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

Strany 76

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

Komentáře k této Příručce

Žádné komentáře