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
    / 71
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
User’s Guide
RS-232 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 ... 70 71

Inhaltsverzeichnis

Seite 1 - User’s Guide

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

Seite 2 - Introduction

21 OverviewThe MCC iPort/AFM RS-232 to I2C Bus Host Adapter with ASCII Fast Mode(#MIIC-203) allows any PC, Host Computer, or Data Terminal to become a

Seite 3

3RS-232 Serial Port Connector1.4 Packing SlipThis package includes the following items:• iPort/AFM RS-232 to I2C Bus Host Adapter (#MIIC-203).•I2C Int

Seite 4 - Table of Contents

4The I2C adapter implements the RS-232 interface using the following pins:2.1.1 DB-25 Serial Port PinoutDB-25 Pin 2, Transmit Data from the Host Compu

Seite 5

5Receptacle ConnectorAn I2C Interface Cable (White=SCL, Red=+5VDC, Green=SDA, Black=Ground) isprovided to connect to an external I2C Bus. Since there

Seite 6

6/INT signal level, and send a notification to the host computer when the /INT signalchanges state.3 Hardware Configuration3.1 Pull-up ResistorsThe I2

Seite 7

7supported include time-outs, device reset, and Packet Error Check byte processing.The non-supported SMBus features may, or may not, permit the use of

Seite 8 - Appendix A - I

8• Wear an earth grounded wrist strap, or discharge any static charge build-up,when handling the I2C adapter or any target system devices.• Ensure tha

Seite 9 - Model: MIIC-203

9If you have any questions on I2C adapter setup and configuration, please contact ourtechnical support department via our web site.

Seite 11

11Part 2 - iPort Utility Pack for WindowsPart 2iPort Utility PackforWindowsV5.2

Seite 12

IntroductionThe MCC iPort/AFM™ RS-232 to I2C Host Adapter with ASCII Fast Mode(#MIIC-203) allows any PC, Host Computer, or Data Terminal with an RS-23

Seite 14

131 iPort Utility Pack for WindowsThe iPort Utility Pack for Windows is your express lane to I2C Buscommunications. The Utility Pack includes two (2)

Seite 15

141.2 iPort Message ManagerThe iPort Message Manager operates with all versions of our I2C Bus HostAdapters. Using the Message Manager, you can perfor

Seite 16

152 System RequirementsOne of the following MCC I2C Bus adapters:1. iPort (#MIIC-201) Windows to I2C Bus Host Adapter.2. I2C Bus Host Adapter Variable

Seite 17

16Main Application4 iPort Message Center The iPort Message Center supports I2C Master Transmit and Master Receiveactivities for all MCC I2C Bus host a

Seite 18

17Opening ScreenMain Application4.1 Message Center OperationsCommunicating with another device on the I2C Bus is easy. Just install the softwareas des

Seite 19

184.1.3 Select the Communications PortUse the “Using Com:” control to select the RS-232 communication port connectedto the I2C adapter. Message Center

Seite 20

19Use 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 21

20Sending an I2C message with doStop enabled will cause the message to beterminated with a Stop Condition. Sending an I2C message with doStopdisabled

Seite 22

214.1.8 Saving or Loading Message ListsMessage Center I2C message lists can be saved to, or loaded from, a disk file. Tosave the current message list,

Seite 23 - *Run and type

Copyright© 2004 by Micro Computer Control Corporation. All rights reserved. Nopart of this publication may be reproduced by any means without the prio

Seite 24

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

Seite 25

234.2.1 Set Adapter TypeiPort iPort (#MIIC-201)iPort/AI iPort/AI (#MIIC-202)iPort/AFM iPort/AFM (#MIIC-203)Variable Variable Clock (#MIIC-201-V)The Ad

Seite 26

244.2.5 Enable /INT Signal MonitorMonitor/INT (on INT supported adapters only. Default=OFF)Enable /INT signal monitoring.4.2.6 Stop On BusyStopOnBusy

Seite 27

25Generate a host computer beep if the adapter returns a "Bus Arbitration Loss"response to the host computer. Bus Arbitration Loss occurs wh

Seite 28

264.2.15 Auto OpenAutoOpen Auto Open Link to I2C AdapterOpen link to adapter.4.2.16 Auto SendAutoSend Auto Send I2C Message ListSend I2C messages load

Seite 29

27Main Application5 iPort Message Manager The iPort Message Manager supports I2C Master and Slave, Transmit and Receiveactivities for all MCC I2C Bus

Seite 30

28Opening ScreenMain Application5.1 Message Manager OperationsCommunicating with another device on the I2C Bus is easy. Just install the softwareas de

Seite 31

29Basic 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 32

30Advanced 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 33

31Diagnostic Set Up Screenmain screen Communications Events window.5.1.3.3 Diagnostic Setup (on supported adapters)On the Diagnostic Set-up screen you

Seite 34

Table of ContentsPart 1 - iPort/AFM RS-232 to I2C Bus Host Adapter ...11 Overview ...

Seite 35

325.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 36

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

Seite 37

34Click 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 38

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

Seite 39

366 Uninstalling iPort Utility PackClick, Start | Programs | iPort Utility Pack | uninstall.Follow the on screen instructions.

Seite 40

37Part 3 - iPort/AFM Programmer’s ReferencePart 3Programmer’s ReferenceASCII Command InterfaceDefinitions

Seite 41

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

Seite 42

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

Seite 43

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

Seite 44

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

Seite 45 - Definitions

Installing from the Web...154 iPort Message Center ...16Message Cent

Seite 46 - Quick Start

42Transmit or Receive operation. Command: /Dxx[CR] 'Set Destination I2C Slave Address Response 1: * 'iPort/AFM Ready Response 2: /I89[CR]

Seite 47 - Command Description

43by Host communication driver software, and are not visible at the applicationprogram level.The RTS/CTS protocol requires a serial port, cabling, and

Seite 48

44Response 2: /I89[CR] 'Invalid Command Argument Default Setting: 6EI2C Bus Clock Rate ControlSet the I2C Bus master clock rate. (0=23, 1=86, 2=1

Seite 49

45/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 50

46Enter 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 51

47the I2C Bus, the iPort/AFM outputs a Slave Transmit Request to its Host device,and initiates an I2C Clock Stretch (SCL Low) until a Slave Transmit c

Seite 52

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

Seite 53

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

Seite 54

50S = 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 55

51Low 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 56

Starting the Message Manager ...29Select the Adapter ...29Establish Adapter

Seite 57

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

Seite 58

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

Seite 59

54The 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 60

55Cause: iPort/AFM has detected an error condition on the I2C Bus. The hostcomputer should retry the last command or issue an iPort/AFM Reset command.

Seite 61

56host. The host should reissue the correct command.iPort/AFM RS-232 Receive Buffer OverflowPrompt: /I90[CR] ‘iPort/AFM RS-232 Receive Buffer Overflo

Seite 62

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

Seite 63

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

Seite 64

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

Seite 65

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

Seite 66

61iPort/AFM Revision ReportThis section defines revisions and changes made to the iPort/AFM interface:Revision: 2.001. Add Firmware Version command.2.

Seite 67

Close I2C Connection ...43Set Destination I2C Slave Address ...44Echo/Prompt Contr

Seite 68

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

Seite 69

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

Seite 70

iPort/AFM Revision Report ....63Additional Information ....63Appendix A -

Seite 71

1Part 1 - iPort/AFM RS-232 to I2C Bus Host AdapterPart 1RS-232toI2C Bus Host AdapterwithASCII Fast ModeUser’s GuideModel: MIIC-203

Kommentare zu diesen Handbüchern

Keine Kommentare