Simpact Freeway 1300 Guía de usuario

Busca en linea o descarga Guía de usuario para Servidores Simpact Freeway 1300. Simpact Freeway 1300 User guide Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Programmer Guide

Protogate, Inc.12225 World Trade Drive, Suite RSan Diego, CA 92128Protocol Software ToolkitProgrammer GuideDC 900-1338IJanuary 2002

Pagina 2

10 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 6–8: ICP Write Request (Receive Data) Processing... 102Figure 6–9: Sample

Pagina 3 - Contents

100 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 6–7: ICP Read Request (Transmit Data) ProcessingUtility TaskInput Header QueuesRead R

Pagina 4

6: ICP SoftwareDC 900-1338I 101b. The protocol task removes data buffers from the server-to-board queue,processes the requests, then releases the buff

Pagina 5

102 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 6–8: ICP Write Request (Receive Data) ProcessingUtility Task• • •Header buffer partit

Pagina 6

6: ICP SoftwareDC 900-1338I 1034. XIO posts a write to the Write Request Queue associated with the node identifiedin the host request header.5. When t

Pagina 7

104 DC 900-1338IProtocol Software Toolkit Programmer Guide6.2.1 Link Control TablesThe protocol and utility tasks and the interrupt service routines c

Pagina 8 - 8 DC 900-1338I

6: ICP SoftwareDC 900-1338I 105bit32 *lct_dma_rda; /* pointer to dma rcv address icp6000 */bit32 *lct_dma_rtc; /* pointer to dma rcv count icp6000 */b

Pagina 9 - List of Figures

106 DC 900-1338IProtocol Software Toolkit Programmer GuideDATA_BUFFER *lct_frbuf; /* Receive frame buffer */DATA_BUFFER *lct_rprebuf; /* Receive'

Pagina 10

6: ICP SoftwareDC 900-1338I 1076.2.2 SPS/ISR Interface for Transmit MessagesWhen the protocol task receives a transmit data block message on a link’s

Pagina 11 - List of Tables

108 DC 900-1338IProtocol Software Toolkit Programmer Guidethe protocol task removes the buffer from the link-to-board queue, calls the appropri-ate po

Pagina 12 - 12 DC 900-1338I

6: ICP SoftwareDC 900-1338I 1096.3 Interrupt ServiceAt the interrupt level, the SPS provides specific examples of SCC and IUSC program-ming for asynch

Pagina 13 - Required Equipment

DC 900-1338I 11List of TablesTable 2–1: Vectors Reserved for System Software... 40Table 2–2: ICP Interrupt Priority Assignments...

Pagina 14

110 DC 900-1338IProtocol Software Toolkit Programmer Guideno longer transfers characters to the SCC or IUSC), a transmit underrun is generated.The SCC

Pagina 15 - Hardware Support

6: ICP SoftwareDC 900-1338I 111SCC External/Status (ICP6000 only) This interrupt is generated under any of the fol-lowing conditions:Loss of DCD An er

Pagina 16 - Toolkit Programming Support

112 DC 900-1338IProtocol Software Toolkit Programmer Guidetransferring the received character from the SCC or IUSC receiver to the receivedata buffer,

Pagina 17 - Protocol Support

6: ICP SoftwareDC 900-1338I 113is set to the number of bytes in the block, including the header and the two-byte CRC,if enabled. The CRC is calculated

Pagina 18

114 DC 900-1338IProtocol Software Toolkit Programmer Guide

Pagina 19 - Customer Support

DC 900-1338I 115Chapter7Host/ICP InterfaceNoteFrom the ICP’s perspective, the “host processor” can be either theserver processor of the Freeway in whi

Pagina 20 - 20 DC 900-1338I

116 DC 900-1338IProtocol Software Toolkit Programmer Guideto the ICP in order to gain service. Another register is used for ICP-to-host commands,but a

Pagina 21 - Introduction

7: Host/ICP InterfaceDC 900-1338I 117The ICP posts read requests to node 1 (the main node) and node 2 (the priority node);all information coming to th

Pagina 22 - Industry Standard Bus

118 DC 900-1338IProtocol Software Toolkit Programmer Guide7.2 Queue ElementsIn general, a queue element consists of one or more linked buffers, and a

Pagina 23 - Client Computer

7: Host/ICP InterfaceDC 900-1338I 119Figure 7–1: Sample Singly-linked Queue with Three Elements00next elementnext bufferdatadata0next bufferdata000nex

Pagina 24

12 DC 900-1338IProtocol Software Toolkit Programmer GuideTable B–4: IUSC Time Constants for 16X Clock Rate for ICP2424 and ICP2432 . . . 193Table C–1:

Pagina 25 - Protocols

120 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 7–2: Sample Doubly-linked Queue with Three Elementsqueue head queue tailLegend000000n

Pagina 26 - 1.4 Client Operations

7: Host/ICP InterfaceDC 900-1338I 1217.2.1 System Buffer HeaderAs mentioned previously, every buffer of every queue element must begin with a systembu

Pagina 27 - 1.4.4 Closing a Session

122 DC 900-1338IProtocol Software Toolkit Programmer GuideNext Buffer This field contains the address of the next buffer of the queueelement. In gener

Pagina 28 - 1.5 Protocol Toolkit Overview

7: Host/ICP InterfaceDC 900-1338I 123ment (the disposition flag is then ignored in all other buffers ofthe queue element). POST_BUF, FREE_BUF, TOKEN

Pagina 29 - DC 900-1338I 29

124 DC 900-1338IProtocol Software Toolkit Programmer Guideare used by your ICP-resident software to send information in the form of data andcommand ac

Pagina 30 - 30 DC 900-1338I

7: Host/ICP InterfaceDC 900-1338I 125struct NODEC_TYPE{struct SBH_TYPE sbh; /* system buffer header */unsigned short rqid; /* host read request queue

Pagina 31

126 DC 900-1338IProtocol Software Toolkit Programmer Guide7.2.3.1 System Buffer Header InitializationIn the system buffer header, the sb_thse field mu

Pagina 32 - 32 DC 900-1338I

7: Host/ICP InterfaceDC 900-1338I 127token associated with the resource. If this is the case, the task can make a resourcerequest and obtain the token

Pagina 33 - Software Development

128 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 7–4: Host Request Queue Element with Data AreaSystem Buffer HeaderServerRequestHeader

Pagina 34 - *.spc files:

7: Host/ICP InterfaceDC 900-1338I 129 The header buffer has the following structure:struct SREQ_HDR_TYPE{struct SBH_TYPE sbh;struct sreq_type req;};Th

Pagina 35 - 2.2 Development Tools

DC 900-1338I 13PrefacePurpose of DocumentThis document describes the protocol software toolkit for the Freeway server andembedded intelligent communic

Pagina 36

130 DC 900-1338IProtocol Software Toolkit Programmer GuideThe data buffer has the following structure:struct data_buffer{struct SBH_TYPE sbh; /* (defi

Pagina 37 - 2.4.2 Stack Pointers

7: Host/ICP InterfaceDC 900-1338I 131struct prot_hdr /* Protocol message header */{bit16 command; /* function code */bit16 modifier; /* function modif

Pagina 38

132 DC 900-1338IProtocol Software Toolkit Programmer GuideIn the header buffer, the disposition flag must be set to one of the values defined for thef

Pagina 39 - 2.4.3 Exception Vector Table

7: Host/ICP InterfaceDC 900-1338I 133disposition flag in the header buffer to FREE_BUF and the disposition flag in the databuffer to REL_BUF. Then, wh

Pagina 40

134 DC 900-1338IProtocol Software Toolkit Programmer GuideProtogate implementations, provisions exist for read request queues for these nodes;however,

Pagina 41

7: Host/ICP InterfaceDC 900-1338I 135in the snode field. For a read, the node number is generally not specified on request(snode is not used), and on

Pagina 42

136 DC 900-1338IProtocol Software Toolkit Programmer GuideThe s_initxio function is called once to initialize the internal data structures and devices

Pagina 43 - • an LED register

7: Host/ICP InterfaceDC 900-1338I 137Input: A0.L = address of NODEC_TYPE structureOutput: noneAccess: task or ISR7.4.3 XIO Read/Write (s_xio)Issue a r

Pagina 44 - V.35 0x0e

138 DC 900-1338IProtocol Software Toolkit Programmer GuideOS/Impact initializes the second unused entry in the GST to zero. If OS/Impactencounters a f

Pagina 45

7: Host/ICP InterfaceDC 900-1338I 139Identifier 0x700Modifier Disposition flag valueDescription A buffer contains an illegal disposition flag value.Id

Pagina 46

14 DC 900-1338IProtocol Software Toolkit Programmer Guide• a client computer that runs the following:• TCP/IP (for a Freeway server)• Freeway data lin

Pagina 47

140 DC 900-1338IProtocol Software Toolkit Programmer Guide

Pagina 48

DC 900-1338I 141Chapter8Client Applications — DLI OverviewNoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP.

Pagina 49 - *scc[] in

142 DC 900-1338IProtocol Software Toolkit Programmer Guide• The Freeway Data Link Interface Reference Guide shows a generic code examplewhich can guid

Pagina 50

8: Client Applications — DLI OverviewDC 900-1338I 143• transport subsystem interface (TSI) connection configuration• protocol-specific ICP link config

Pagina 51 - Memory Organization

144 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 8–1 shows a portion of a typical DLI configuration file, such as spsaldcfg. TheBoardN

Pagina 52

8: Client Applications — DLI OverviewDC 900-1338I 145//-----------------------------------------------------------------//// "main" section.

Pagina 53 - 3.2 ICP2432

146 DC 900-1338IProtocol Software Toolkit Programmer Guidemain // DLI “main” section: //{asyncIO = “yes”; // Use non-blocking I/O //tsiCfgName = "

Pagina 54 - 3.3 ICP6000

8: Client Applications — DLI OverviewDC 900-1338I 1478.1.1.2 DLI and TSI Configuration ProcessThis section summarizes the process for configuring DLI

Pagina 55 - DC 900-1338I 55

148 DC 900-1338IProtocol Software Toolkit Programmer Guide3. If you have a UNIX or Windows NT system, skip this step. If you have a VMS sys-tem, run t

Pagina 56 - 56 DC 900-1338I

8: Client Applications — DLI OverviewDC 900-1338I 149VMS example:dlicfg spsaldcfgNT example: freeway\client\op-sys\bin\dlicfg spsaldcfgNoteYou must re

Pagina 57 - Configuration

PrefaceDC 900-1338I 15Chapter 7 gives an overview of the interface between the ICP’s host processor and anICP. It also describes the interface between

Pagina 58

150 DC 900-1338IProtocol Software Toolkit Programmer Guide8. If you have a Windows NT system, move the binary configuration files that youcreated in S

Pagina 59

8: Client Applications — DLI OverviewDC 900-1338I 1518.1.2 Blocking versus Non-blocking I/ONoteEarlier Simpact releases used the term “synchronous” fo

Pagina 60

152 DC 900-1338IProtocol Software Toolkit Programmer Guide8.1.3 Buffer ManagementCurrently the interrelated Freeway, DLI, TSI, and ICP buffers default

Pagina 61 - DC 900-1338I 61

8: Client Applications — DLI OverviewDC 900-1338I 1538.2 Example Call SequencesTa bl e 8 –3 shows the sequence of DLI function calls to send and recei

Pagina 62 - 62 DC 900-1338I

154 DC 900-1338IProtocol Software Toolkit Programmer GuideNoteServer-resident applications must use non-blocking I/O. It is alsonecessary to call dlPo

Pagina 63

8: Client Applications — DLI OverviewDC 900-1338I 1558.3 Overview of DLI FunctionsAfter the protocol software is downloaded to the ICP, the client and

Pagina 64 - 4.1.3 ICP Buffer Size

156 DC 900-1338IProtocol Software Toolkit Programmer GuideTable 8–5: DLI Functions: Syntax and Parameters (Listed in Typical Call Order)DLI Function P

Pagina 65

DC 900-1338I 157Chapter9Client Applications — Commands and ResponsesThis chapter presents the data structures required for the client application to e

Pagina 66

158 DC 900-1338IProtocol Software Toolkit Programmer Guidetypedef struct {unsigned short usFWPacketType; /* Client’s packet type */unsigned short usFW

Pagina 67 - DC 900-1338I 67

9: Client Applications — Commands and ResponsesDC 900-1338I 159struct api_msg {ICP_HDR icp_hdr;PROT_HDR prot_hdr;bit8 *data;};Figure 9–2: “C” Definiti

Pagina 68

16 DC 900-1338IProtocol Software Toolkit Programmer Guide• Freeway 8800 Hardware Installation GuideDC-900-1553• Freeway ICP6000R/ICP6000X Hardware Des

Pagina 69 - DC 900-1338I 69

160 DC 900-1338IProtocol Software Toolkit Programmer GuideTable 9–1: Comparison of DLI_OPT_ARGS and ICP_HDR/PROT_HDR FieldsDLI_OPT_ARGSin DLI Client P

Pagina 70

9: Client Applications — Commands and ResponsesDC 900-1338I 1619.2 Client and ICP CommunicationThe following sections discuss the DLI functions and DL

Pagina 71 - DC 900-1338I 71

162 DC 900-1338IProtocol Software Toolkit Programmer Guide9.2.1 Sequence of Client Events to Communicate to the ICP To exchange data with a wide-area

Pagina 72 - 4.2.1 Configuration Table

9: Client Applications — Commands and ResponsesDC 900-1338I 1639.2.2 Initiating a Session with the ICP (dlOpen)A session identifier is used by DLI to

Pagina 73 - DC 900-1338I 73

164 DC 900-1338IProtocol Software Toolkit Programmer Guide9.2.3 Initiating a Session with an ICP Link (Attach)When the DLI configuration file paramete

Pagina 74 - _sysinit

9: Client Applications — Commands and ResponsesDC 900-1338I 165From the ICP’s perspective, the attach command establishes a session between the client

Pagina 75

166 DC 900-1338IProtocol Software Toolkit Programmer Guideprotocol header. Any subsequent transactions involving this session number will betransmitte

Pagina 76

9: Client Applications — Commands and ResponsesDC 900-1338I 1679.2.4 Terminating a Session with an ICP Link (Detach)When the DLI configuration file pa

Pagina 77

168 DC 900-1338IProtocol Software Toolkit Programmer GuideICP_HDRcount = size of protocol header (16 bytes)command = DLI_ICP_CMD_DETACHstatus = high b

Pagina 78

9: Client Applications — Commands and ResponsesDC 900-1338I 1699.2.5 Activating an ICP Link (Bind)After dlOpen has been called and an attach message w

Pagina 79

PrefaceDC 900-1338I 17• OS/Impact Programmer GuideDC-900-1030• Protocol Software Toolkit Programmer GuideDC-900-1338Protocol Support• ADCCP NRM Progra

Pagina 80

170 DC 900-1338IProtocol Software Toolkit Programmer GuideICP_HDRcount = size of protocol header (16 bytes)command = DLI_ICP_CMD_BINDstatus = high bit

Pagina 81 - Debugging

9: Client Applications — Commands and ResponsesDC 900-1338I 1719.2.5.1 X21bis Line Status Reports (Optional)X21bis line status reports are an optional

Pagina 82 - • an equal sign

172 DC 900-1338IProtocol Software Toolkit Programmer Guide9.2.6 Deactivating an ICP Link (Unbind)Stopping (disabling) the link is accomplished by send

Pagina 83

9: Client Applications — Commands and ResponsesDC 900-1338I 173ICP_HDRcount = size of protocol header (16 bytes)command = DLI_ICP_CMD_UNBINDstatus = h

Pagina 84 - 5.3 SingleStep Debugging Tool

174 DC 900-1338IProtocol Software Toolkit Programmer Guide9.2.7 Writing to an ICP LinkAfter the application has issued a bind command to the ICP, it c

Pagina 85

9: Client Applications — Commands and ResponsesDC 900-1338I 1759.2.7.1 Configuring the ICP LinkAfter the client has issued an attach command to the IC

Pagina 86 - 5.4 System Panic Codes

176 DC 900-1338IProtocol Software Toolkit Programmer GuideThe data area in the write is an instance of the CONF_TYPE structure. This structure isdefin

Pagina 87

9: Client Applications — Commands and ResponsesDC 900-1338I 177unsigned char parity; /* (async only) 0 = none, 1 = odd,2=even */unsigned char char_len

Pagina 88 - 88 DC 900-1338I

178 DC 900-1338IProtocol Software Toolkit Programmer GuideICP_HDRcount = size of protocol header (16 bytes) plus data areacommand = DLI_ICP_CMD_WRITEs

Pagina 89 - ICP Software

9: Client Applications — Commands and ResponsesDC 900-1338I 1799.2.7.2 Requesting Link Statistics From the ICP The get statistics command requests a c

Pagina 90

18 DC 900-1338IProtocol Software Toolkit Programmer GuideDocument ConventionsThis document follows the most significant byte first (MSB) and most sign

Pagina 91 - DC 900-1338I 91

180 DC 900-1338IProtocol Software Toolkit Programmer GuidePROT_HDRcommand = DLI_PROT_GET_STATISTICS_REPORTsession = session IDAt the ICP, the fields o

Pagina 92 - 92 DC 900-1338I

9: Client Applications — Commands and ResponsesDC 900-1338I 181DLI_OPT_ARGS.usFWPacketType n/aDLI_OPT_ARGS.usFWCommand n/aDLI_OPT_ARGS.usFWStatus n/aD

Pagina 93 - DC 900-1338I 93

182 DC 900-1338IProtocol Software Toolkit Programmer Guide9.2.7.3 Writing Data to an ICP LinkThe write command provides data to the ICP for transmissi

Pagina 94 - 94 DC 900-1338I

9: Client Applications — Commands and ResponsesDC 900-1338I 183At the ICP, the fields of the ICP and protocol headers that the ICP receives contain th

Pagina 95 - 6.1.2 Protocol Task

184 DC 900-1338IProtocol Software Toolkit Programmer GuideDLI_OPT_ARGS.usFWPacketType n/aDLI_OPT_ARGS.usFWCommand n/aDLI_OPT_ARGS.usFWStatus n/aDLI_OP

Pagina 96 - 6.1.3 Utility Task (spshio)

9: Client Applications — Commands and ResponsesDC 900-1338I 1859.2.8 Reading from the ICP LinkThe ICP sends the following types of messages to the cli

Pagina 97

186 DC 900-1338IProtocol Software Toolkit Programmer Guidefrom the link in the area that follows the protocol header. The data area contains thedata r

Pagina 98 - 98 DC 900-1338I

9: Client Applications — Commands and ResponsesDC 900-1338I 1879.3 Additional Command Types Supported by the SPSIn addition to the API function calls

Pagina 99

188 DC 900-1338IProtocol Software Toolkit Programmer Guide9.3.2 Internal Test MessageThe test command is a diagnostic tool used by the client applicat

Pagina 100 - 100 DC 900-1338I

DC 900-1338I 189AppendixAApplication NotesThis appendix clarifies some points made in the technical manuals and describes somepeculiarities of the dev

Pagina 101

PrefaceDC 900-1338I 19Customer SupportIf you are having trouble with any Protogate product, call us at (858) 451-0865 Mondaythrough Friday between 8 a

Pagina 102 - 102 DC 900-1338I

190 DC 900-1338IProtocol Software Toolkit Programmer GuideThe code required to correctly process SCC interrupts can be found in the sampleprotocol sof

Pagina 103

DC 900-1338I 191AppendixBData Rate Time Constants for SCC/IUSC ProgrammingThis appendix provides some commonly used baud rate time constants for SCC/I

Pagina 104 - 6.2.1 Link Control Tables

192 DC 900-1338IProtocol Software Toolkit Programmer GuideTable B–1: SCC Time Constants for 1X Clock Rate for ICP6000Baud Rate(kbits/sec)Time Constant

Pagina 105 - DC 900-1338I 105

B: Data Rate Time Constants for SCC/IUSC ProgrammingDC 900-1338I 193Table B–3: IUSC Time Constants for 1X Clock Rate for ICP2424 and ICP2432Baud Rate(

Pagina 106 - 106 DC 900-1338I

194 DC 900-1338IProtocol Software Toolkit Programmer Guide

Pagina 107

DC 900-1338I 195AppendixCError CodesThere are several methods used by the DLI and ICP software to report errors, asdescribed in the following sections

Pagina 108

196 DC 900-1338IProtocol Software Toolkit Programmer GuideTable C–1: ICP Error Status Codes used by the ICPCode Mnemonic Meaning0 DLI_ICP_ERR_NO_ERR A

Pagina 109 - 6.3 Interrupt Service

DC 900-1338I 197IndexNumerics68020 programming environment 37AAbort interrupt 111Acknowledgmentlocal ack 175, 183Acknowledgment response 184Activate I

Pagina 110

198 DC 900-1338IProtocol Software Toolkit Programmer Guidecf_lslice 77, 80cf_ltick 77, 80cf_nprior 77, 78cf_ntask 78cfgLink DLI parameter 153chkhio su

Pagina 111

IndexDC 900-1338I 199statistics report 181task initialization 73Data structures, size 75DCDloss of 111Deactivate ICP link 172Debug monitor 31DebuggerP

Pagina 112

Protogate, Inc.12225 World Trade Drive, Suite RSan Diego, CA 92128(858) 451-0865Protocol Software Toolkit Programmer Guide© 2001 Protogate, Inc. All r

Pagina 113

20 DC 900-1338IProtocol Software Toolkit Programmer GuideWe are always interested in suggestions for improving our products. You can use thereport for

Pagina 114 - 114 DC 900-1338I

200 DC 900-1338IProtocol Software Toolkit Programmer GuideEthernet 24Examplecall sequence 153DLI configuration file 146Exception vector table 39Except

Pagina 115 - Host/ICP Interface

IndexDC 900-1338I 201FREE_QE 122POST_BUF 122POST_QE 122REL_BUF 122TOKEN_BUF 122TOKEN_QE 122disposition modifier 123next buffer 122next element 121part

Pagina 116

202 DC 900-1338IProtocol Software Toolkit Programmer GuideSCC transmit buffer empty 110special receive condition 113transmit buffer empty 112transmit

Pagina 117

IndexDC 900-1338I 203structure 155, 157Organization of memory 51oscif.h include file 36osdefs.asm file 37OS/Impact 31, 46, 89configuration 65initializ

Pagina 118 - 7.2 Queue Elements

204 DC 900-1338IProtocol Software Toolkit Programmer GuideReportsstatistics 181statistics data structure 181Request completion 117Responsesattach 166b

Pagina 119 - DC 900-1338I 119

IndexDC 900-1338I 205sysequ.asm file 37System buffer header 118, 121initialization 126, 131System callget buffer 118post and resume 126, 133queue crea

Pagina 120 - 120 DC 900-1338I

206 DC 900-1338IProtocol Software Toolkit Programmer GuideVector table 39Vectors reserved for system software 40VME slave address registersbase addres

Pagina 121 - 7.2.1 System Buffer Header

Protocol Software Toolkit Programmer GuideDC 900-1338ICustomer Report FormWe are constantly improving our products. If you have suggestions or problem

Pagina 122

Protogate, Inc.Customer ServiceP.O. Box 503313San Diego, CA 92150-3313

Pagina 123

DC 900-1338I 21Chapter1Introduction1.1 Product OverviewProtogate provides a variety of wide-area network (WAN) connectivity solutions forreal-time fin

Pagina 124

22 DC 900-1338IProtocol Software Toolkit Programmer Guidetiple data links and a variety of network services to LAN-based clients. Figure 1–1 showsthe

Pagina 125

1: IntroductionDC 900-1338I 231.1.2 Embedded ICPThe embedded ICP connects your client computer directly to the WAN (for example,using Protogate’s ICP2

Pagina 126

24 DC 900-1338IProtocol Software Toolkit Programmer GuideSummary of product features:• Provision of WAN connectivity either through a LAN-based Freewa

Pagina 127 - 7.2.3.2 Completion Status

1: IntroductionDC 900-1338I 251.2 Freeway Client-Server EnvironmentThe Freeway server acts as a gateway that connects a client on a local-area network

Pagina 128 - Header Buffer

26 DC 900-1338IProtocol Software Toolkit Programmer Guide1.2.1 Establishing Freeway Server Internet AddressesThe Freeway server must be addressable in

Pagina 129 - DC 900-1338I 129

1: IntroductionDC 900-1338I 271.4.2 Opening a SessionAfter the DLI and TSI configurations are properly defined, your client application usesthe dlOpen

Pagina 130 - 130 DC 900-1338I

28 DC 900-1338IProtocol Software Toolkit Programmer Guide1.5 Protocol Toolkit OverviewThe protocol software toolkit helps you develop serial protocol

Pagina 131

1: IntroductionDC 900-1338I 29Figure 1–4: ICP PROM and Toolkit Software Components — Freeway ServerICPXIOServer ProcessorSPS TestProgramApplicationPro

Pagina 132

DC 900-1338I 3ContentsList of Figures 9List of Tables 11Preface 131Introduction 211.1 Product Overview... 211.1.1 Freew

Pagina 133

30 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 1–5: ICP PROM and Toolkit Software Components — Embedded ICPICPXIOHost ProcessorSPS Te

Pagina 134 - 7.2.4.3 Completion Status

1: IntroductionDC 900-1338I 311.5.1 Toolkit Software Components The toolkit loopback test program (spsalp.c) is provided in source form and, when com-

Pagina 135 - 7.4 Executive Input/Output

32 DC 900-1338IProtocol Software Toolkit Programmer Guide

Pagina 136

DC 900-1338I 33Chapter2Software Development for the ICPThis chapter describes the issues involved in developing software for the ProtogateICPs, includ

Pagina 137 - 7.5 Diagnostics

34 DC 900-1338IProtocol Software Toolkit Programmer Guide• A module containing the source-level debug monitor for the ICP2424(icp2424c.mem), ICP2432 (

Pagina 138

2: Software Development for the ICPDC 900-1338I 35During the design and development of your application, you can use this informationto build a comple

Pagina 139

36 DC 900-1338IProtocol Software Toolkit Programmer Guide68000 assembler, a linker, and a downloader. The SDS assembler allows you to defineup to 250

Pagina 140 - 140 DC 900-1338I

2: Software Development for the ICPDC 900-1338I 37For programs written in assembly language, the freeway/icpcode/proto_kit/src directoryincludes the f

Pagina 141 - DLI Overview

38 DC 900-1338IProtocol Software Toolkit Programmer GuideIn user state, the USP is the current stack pointer. In supervisor state, the ISP (usuallycal

Pagina 142

2: Software Development for the ICPDC 900-1338I 39NoteThe stack spaces are defined in the linker specification filefreeway/icpcode/proto_kit/icpnnnn1/

Pagina 143 - (DLI_OPT_ARGS)

4 DC 900-1338IProtocol Software Toolkit Programmer Guide2.4.1 Processor Privilege States... 372.4.2 Stack Pointers...

Pagina 144

40 DC 900-1338IProtocol Software Toolkit Programmer GuideWhen programming interrupt service routines in a high-level language, it is usuallynecessary

Pagina 145 - DC 900-1338I 145

2: Software Development for the ICPDC 900-1338I 412.4.4 Interrupt Priority LevelsThe Motorola 68xxx supports seven levels of prioritized interrupts, w

Pagina 146 - 146 DC 900-1338I

42 DC 900-1338IProtocol Software Toolkit Programmer Guide2.5 ICP2424 and ICP2432 Hardware Device ProgrammingThe ICP2424 uses the Motorola 68340 CPU, a

Pagina 147

2: Software Development for the ICPDC 900-1338I 43In addition to the Motorola 6834x, the ICP2424 and ICP2432’s programmable devicesinclude: • two, fou

Pagina 148

44 DC 900-1338IProtocol Software Toolkit Programmer GuideTimer 1 of the two 8-bit timers is used by the ICP to support DRAM/Refresh. Timer 2is not use

Pagina 149

2: Software Development for the ICPDC 900-1338I 452.5.4 Programming the Test Mode RegisterAll modem control signals except Test Mode are handled direc

Pagina 150 - DC900-1333

46 DC 900-1338IProtocol Software Toolkit Programmer Guide• a MC68901 multi-function peripheral (MFP) with four timers, interrupt controllogic, and a s

Pagina 151

2: Software Development for the ICPDC 900-1338I 47the console port. Timer channels B and C are dedicated to hardware functions. Do notchange the confi

Pagina 152 - 8.1.3 Buffer Management

48 DC 900-1338IProtocol Software Toolkit Programmer Guide2.6.2 Programming the Serial Communications Controllers Four or eight Z8530 or Z85230 serial

Pagina 153 - 8.2 Example Call Sequences

2: Software Development for the ICPDC 900-1338I 498 and read register 8 (the transmit and receive data buffers) are accessed directlythrough the chann

Pagina 154

ContentsDC 900-1338I 54.3.2.2 Number of Configured Priorities... 784.3.2.3 Tick and Time Slice Lengths... 805Debu

Pagina 155

50 DC 900-1338IProtocol Software Toolkit Programmer GuideVector numbers 224–255 (0xE0–0xFF) are dedicated to DMA controller channels 0–31,respectively

Pagina 156 - 156 DC 900-1338I

DC 900-1338I 51Chapter3Memory OrganizationThis chapter describes the memory maps for the ICP2424, ICP2432, and ICP6000.3.1 ICP2424The 128-kilobyte EPR

Pagina 157 - Commands and Responses

52 DC 900-1338IProtocol Software Toolkit Programmer GuideThe ICP2424 Hardware Description and Theory of Operation provides a complete mem-ory map. Ta

Pagina 158 - 158 DC 900-1338I

3: Memory OrganizationDC 900-1338I 533.2 ICP2432The 128-kilobyte EPROM on the ICP2432 is located at address 0x0000. The EPROMcontains the diagnostics,

Pagina 159 - DC 900-1338I 159

54 DC 900-1338IProtocol Software Toolkit Programmer Guide3.3 ICP6000The 64-kilobyte PROM on the ICP6000 is located at address 0x0000. The PROM con-tai

Pagina 160 - 160 DC 900-1338I

3: Memory OrganizationDC 900-1338I 55Table 3–4: ICP6000 Device and Register Addresses Device or RegisterBase Address(Hexadecimal)DMA command register

Pagina 161

56 DC 900-1338IProtocol Software Toolkit Programmer Guide Table 3–5: ICP6000 VME Slave Address Registers Base AddressPhysical Device IDAddress(Hexadec

Pagina 162

DC 900-1338I 57Chapter4ICP Download, Configuration, and InitializationSection 4.1 of this chapter describes additional download considerations not cov

Pagina 163

58 DC 900-1338IProtocol Software Toolkit Programmer GuideThe Freeway server boot configuration file, used to control the download procedure, iscovered

Pagina 164

4: ICP Download, Configuration, and InitializationDC 900-1338I 594.1.1.1 Downloading Without the Debug MonitorUnder normal operations you download the

Pagina 165

6 DC 900-1338IProtocol Software Toolkit Programmer Guide7.2.4.3 Completion Status... 1347.3 Reserved System Resources: XIO Int

Pagina 166

60 DC 900-1338IProtocol Software Toolkit Programmer GuideNoteDo not remove the comment indicator (#) from the “LOADbuffer.size” statement if the buffe

Pagina 167

4: ICP Download, Configuration, and InitializationDC 900-1338I 61## SNMP support notes for SPS toolkit protocol software product SP-000-6013:## When u

Pagina 168

62 DC 900-1338IProtocol Software Toolkit Programmer Guide# the example below is for icp6000 normal operation##LOAD xio_6000.mem 40001200#LOAD snmp6000

Pagina 169

4: ICP Download, Configuration, and InitializationDC 900-1338I 634.1.1.2 Downloading With the Debug MonitorDuring application development you must dow

Pagina 170

64 DC 900-1338IProtocol Software Toolkit Programmer GuideWhen the SDS debug monitor is downloaded along with other executable image files,the placemen

Pagina 171

4: ICP Download, Configuration, and InitializationDC 900-1338I 653. Run the make_size utility program, specifying the desired buffer size whenprompted

Pagina 172

66 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 4–2 shows a sample memory layout that specifies the download and start-uplocations in

Pagina 173

4: ICP Download, Configuration, and InitializationDC 900-1338I 67Figure 4–3 shows a similar ICP2424 configuration consisting of the system-servicesmod

Pagina 174 - 9.2.7 Writing to an ICP Link

68 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 4–4 shows a sample memory layout that specifies the download and start-uplocations in

Pagina 175

4: ICP Download, Configuration, and InitializationDC 900-1338I 69Figure 4–5 shows a similar ICP2432 configuration consisting of the system-servicesmod

Pagina 176 - 176 DC 900-1338I

ContentsDC 900-1338I 79.3.2 Internal Test Message ...1889.3.3 Internal Ping...188A Applicatio

Pagina 177

70 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 4–6 shows a sample memory layout that specifies the download and start-uplocations in

Pagina 178

4: ICP Download, Configuration, and InitializationDC 900-1338I 71Figure 4–7 shows a similar ICP6000 configuration consisting of the system-servicesmod

Pagina 179

72 DC 900-1338IProtocol Software Toolkit Programmer Guide4.2.1 Configuration Table The format of the configuration table is defined in the OS/Impact P

Pagina 180

4: ICP Download, Configuration, and InitializationDC 900-1338I 73Figure 4–9: Sample Configuration Table with Task Initialization Structures** Configur

Pagina 181 - DC 900-1338I 181

74 DC 900-1338IProtocol Software Toolkit Programmer Guide4.2.3 Task Initialization RoutineYou must supply a task initialization routine in one of the

Pagina 182

4: ICP Download, Configuration, and InitializationDC 900-1338I 753. Allocate space for the timer task’s stack and create the task.4. Use the task init

Pagina 183

76 DC 900-1338IProtocol Software Toolkit Programmer GuideTable 4–1: System Data RequirementsStack Bytes RequiredSupervisor stack 1024Timer task’s sta

Pagina 184 - 184 DC 900-1338I

4: ICP Download, Configuration, and InitializationDC 900-1338I 77Continuing this example, assume that the xio_6000.xrf file shows 0x400045BE as thesys

Pagina 185 - 9.2.8.1 Reading Normal Data

78 DC 900-1338IProtocol Software Toolkit Programmer Guide4.3.2.1 Number of Configured Task Control StructuresThe cf_ntask field of the configuration t

Pagina 186 - 186 DC 900-1338I

4: ICP Download, Configuration, and InitializationDC 900-1338I 79For example, suppose that a particular system consists of the following tasks:The ope

Pagina 187

8 DC 900-1338IProtocol Software Toolkit Programmer Guide

Pagina 188 - 9.3.3 Internal Ping

80 DC 900-1338IProtocol Software Toolkit Programmer Guide4.3.2.3 Tick and Time Slice LengthsTicks measure the duration of alarms and the system’s time

Pagina 189 - Application Notes

DC 900-1338I 81Chapter5DebuggingThe debugging facilities available depend on whether Software Development Systems’or some other cross development envi

Pagina 190 - 190 DC 900-1338I

82 DC 900-1338IProtocol Software Toolkit Programmer Guide• the access width (preceded by a semicolon):• b for byte• w for word• l for a longword• an e

Pagina 191 - SCC/IUSC Programming

5: DebuggingDC 900-1338I 83When PEEKER is entered, a brief summary of the special characters is published afterthe register dump:Peek & Poke <a

Pagina 192 - 192 DC 900-1338I

84 DC 900-1338IProtocol Software Toolkit Programmer Guide5.2 PTBUG Debugging ToolThe PTBUG debugging tool is available on the ICP6000. The PTBUG Debug

Pagina 193 - DC 900-1338I 193

5: DebuggingDC 900-1338I 85Modules built with SDS development tools can be downloaded to the ICP along withthe SDS RAM-based debug monitor. This monit

Pagina 194 - 194 DC 900-1338I

86 DC 900-1338IProtocol Software Toolkit Programmer GuidePress <ctrl>C to exit this mode. Type one of the following commands, depending on which

Pagina 195 - Error Codes

5: DebuggingDC 900-1338I 87XIO pushes its panic code onto the stack and calls hio_panic, which executes an illegalinstruction. The illegal instruction

Pagina 196 - 196 DC 900-1338I

88 DC 900-1338IProtocol Software Toolkit Programmer Guide

Pagina 197 - DC 900-1338I 197

DC 900-1338I 89Chapter6ICP SoftwareNoteFrom the ICP’s perspective, the “host processor” can be either theserver processor of the Freeway in which the

Pagina 198 - 198 DC 900-1338I

DC 900-1338I 9List of FiguresFigure 1–1: Freeway Configuration... 22Figure 1–2: Embedded ICP Configuration...

Pagina 199 - DC 900-1338I 199

90 DC 900-1338IProtocol Software Toolkit Programmer Guideconfiguration table, described in Section 4.2 on page 65, are located in the spsasm.asmfile l

Pagina 200 - 200 DC 900-1338I

6: ICP SoftwareDC 900-1338I 91Figure 6–2: Sample ICP2432 Protocol Software Memory LayoutProtocol Task, Utility Task, and Interrupt Service RoutinesOS

Pagina 201 - DC 900-1338I 201

92 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 6–3: Sample ICP6000 Protocol Software Memory LayoutProtocol Task, Utility Task, and I

Pagina 202 - 202 DC 900-1338I

6: ICP SoftwareDC 900-1338I 93Figure 6–4: Block Diagram of the Sample Protocol Software — Freeway ServerICPXIOServer ProcessorSPS TestProgramApplicati

Pagina 203 - DC 900-1338I 203

94 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 6–5: Block Diagram of the Sample Protocol Software — Embedded ICPICPXIOHost ProcessorS

Pagina 204 - 204 DC 900-1338I

6: ICP SoftwareDC 900-1338I 956.1.2 Protocol TaskThis section explains the buffer management method for writing to or reading from theICP’s host. The

Pagina 205 - DC 900-1338I 205

96 DC 900-1338IProtocol Software Toolkit Programmer Guidelevel. Completed received data messages are sent to the link’s board-to-server queue toawait

Pagina 206 - 206 DC 900-1338I

6: ICP SoftwareDC 900-1338I 97the value of the buffer.size file which is downloaded with the application. (See the /free-way/boot/spsload file.)During

Pagina 207 - Customer Report Form

98 DC 900-1338IProtocol Software Toolkit Programmer GuideFigure 6–6: Sample Protocol Software Message FormatHeader BufferData BufferHost Request

Pagina 208 - San Diego, CA 92150-3313

6: ICP SoftwareDC 900-1338I 996.1.3.1 Read Request ProcessingThe utility task, spshio, issues read requests to XIO to obtain messages from the ICP’sho

Comentarios a estos manuales

Sin comentarios