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
    / 71
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
User’s Guide
RS-232 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 ... 70 71

Shrnutí obsahu

Strany 1 - User’s Guide

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

Strany 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

Strany 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

Strany 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

Strany 5

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

Strany 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

Strany 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

Strany 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

Strany 9 - Model: MIIC-203

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

Strany 11

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

Strany 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

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

Strany 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

Strany 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

Strany 17

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

Strany 18

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

Strany 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

Strany 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

Strany 21

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

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

Strany 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

Strany 24

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

Strany 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

Strany 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

Strany 27

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

Strany 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

Strany 29

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

Strany 30

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

Strany 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

Strany 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

Strany 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

Strany 34

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

Strany 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

Strany 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

Strany 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

Strany 38

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

Strany 39

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

Strany 40

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

Strany 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

Strany 42

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

Strany 43

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

Strany 44

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

Strany 45 - Definitions

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

Strany 46 - Quick Start

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

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

Strany 56

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

Strany 57

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

Strany 58

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

Strany 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

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

Strany 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

Strany 62

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

Strany 63

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

Strany 64

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

Strany 65

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

Strany 66

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

Strany 67

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

Strany 68

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

Strany 69

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

Strany 70

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

Strany 71

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

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

Žádné komentáře