MCC MIIC-203 Guía de usuario

Busca en linea o descarga Guía de usuario para No MCC MIIC-203. MCC MIIC-203 User`s guide Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 71
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
User’s Guide
RS-232 to I
2
C Host Adapter
ASCII Fast Mode
with iPort Utility Pack Software
www.mcc-us.com
Vista de pagina 0
1 2 3 4 5 6 ... 70 71

Indice de contenidos

Pagina 1 - User’s Guide

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

Pagina 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

Pagina 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

Pagina 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

Pagina 5

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

Pagina 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

Pagina 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

Pagina 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

Pagina 9 - Model: MIIC-203

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

Pagina 11

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

Pagina 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

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

Pagina 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

Pagina 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

Pagina 17

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

Pagina 18

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

Pagina 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

Pagina 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

Pagina 21

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

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

Pagina 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

Pagina 24

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

Pagina 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

Pagina 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

Pagina 27

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

Pagina 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

Pagina 29

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

Pagina 30

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

Pagina 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

Pagina 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

Pagina 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

Pagina 34

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

Pagina 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

Pagina 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

Pagina 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

Pagina 38

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

Pagina 39

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

Pagina 40

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

Pagina 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

Pagina 42

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

Pagina 43

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

Pagina 44

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

Pagina 45 - Definitions

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

Pagina 46 - Quick Start

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

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

Pagina 56

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

Pagina 57

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

Pagina 58

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

Pagina 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

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

Pagina 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

Pagina 62

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

Pagina 63

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

Pagina 64

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

Pagina 65

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

Pagina 66

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

Pagina 67

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

Pagina 68

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

Pagina 69

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

Pagina 70

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

Pagina 71

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

Comentarios a estos manuales

Sin comentarios