PC104 I/F Use and Maintenance Bitbus Manual for PC · 1. Bitbus specifications The Bitbus is a...
Transcript of PC104 I/F Use and Maintenance Bitbus Manual for PC · 1. Bitbus specifications The Bitbus is a...
Order Code:
Date: 07/2014 - Rev: 1.2
5904516101
Use and MaintenanceManual
PC104I/F
Bitbusfor PC
Index1. Bitbus specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32. Main board features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43. Board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 3.1 Type of transmission. . . . . . . . . . . . . . . . . . . . . . . 4 3.2 Node address . . . . . .. . . . . . . . . . . . . . . . . . . . . . . 4 3.3 External storage configuration . . . . . . . . . . . . . . 5 3.4 Interface with the PC . . . . . . . . . . . . . . . . . . . . . . 5 3.5 Message transfer mode . . . . . . . . . . . . . . . . . . . . 5 3.6 Terminal resistor . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.7 Additional functions . . . . . . . . . . . . . . . . . . . . . . 6 3.8 Default configuration . . . . . . . . . . . . . . . . . . . . . . 6 3.9 Bitbus network connectors . . . . . . . . . . . . . . . . . 6 3.10 Connection to the external driver . . . . . . . . . . . 6
PAGE 2
PC CARD - PC104 I/F BITBUS FOR PC
ORDER CODE 5904516101JULY 2014 - REV. 1.2
SYSTEM SPA (Electronics Div.) reserves the right tomake changes to the specifications at any time withoutgiving prior notice. The information contained herein iscorrect and reliable. No part of this publication may bereproduced in any form without prior authorisation fromSYSTEM SPA (Electronics Div.).
This product meets the EMC requirementsof EEC Directive 89/336.
Revisions Pages
Rev. 1.0 Draft 6
Rev. 1.1 Alteration 6
Rev. 1.2 Alteration 6
SYSTEM s.p.a. Div. Electronics
via Ghiarola Vecchia, 73
41042 Fiorano (Mo) Italy
tel 0536/836111 - fax 0536/830901
www.system-group.it
e-mail: [email protected]
PAGE 3
PC CARD - PC104 I/F BITBUS FOR PC
ORDER CODE 5904516101
1. Bitbus specificationsThe Bitbus is a serial communication system based onelectrical code RS485 that employs an SDLC protocol.The network is based on a hierarchy that has a singlemaster node that communicates with several slavenodes. Each slave can work as a master for anotherBitbus network, thereby constituting a multiple hierarchy.This is particularly useful in applications that requiredifferent transmission rates (Figure 1.1).
Figure 1.1 Typical Bitbus network connection.
The Bitbus interconnection may work in two differentways: synchronous mode and self-clocked mode. Thefirst uses a faster transmission rate but is limited as faras distance and number of network nodes are concerned.Due to these drawbacks, the PC-188 board uses onlythe self-clocked mode.
SELF-CLOCKED MODE: unlike the previous mode, thisis suitable for long-distance transmission. Two differenttransmission rates are employed: 375Kbit/sec and62.5Kbit/sec. The first transmission rate is able to coverdistances of up to 300m with a max of 28 nodes connectedto the line.
On the other hand, the 62.5Kbit/sec rate covers a maxdistance of 1200m with the same number of nodes. Forlonger distances, the repeaters have to be used and amax of 250 nodes can be connected. Figure 1.2 illustratesthe self-clocked mode connection with repeaters.
Figure 1.2 Example of Bitbus network connection in self-clockedmode with repeaters.
Transmission in synchronous mode (not supported) andself-clocked mode with repeaters is implemented withscreened five-wire cables (a twisted pair for DATA, DATA-another pair of twisted cables is used for RTS, RTS- anda RGND reference wire), Figure 1.3.
Figure 1.3 Connections for synchronous or self-clocked modewith repeaters.
MASTER
MASTERMASTER
SLAVE
SLAVE
SLAVE
SLAVE
Bitbus
Bitbus Bitbus
SLAVE
DATA PAIR
DATA PAIR
RTS PAIR
MASTER
SLAVE
SLAVE
REPEATER
REPEATER
REPEATER
DATADATA*DCLK/RTSDCLK/RTS*RGND
A shielded 3-wire cable is required when using self-clocked mode without repeaters (a twisted pair dedicatedto DATA and DATA- transmission and a RGND referencewire), Figure 1.4.
Figura 1.4 Connection for self-clocked without repeaters.
The correct layout of the various modes is shown inFigure 1.5. In particular, there cannot be any starnetworks and, moreover, terminal resistors have to beplaced at either end of the network. The rating of theterminal resistors has to match the typical impedanceof the connecting cable to prevent reflectance on theline.
Figure 1.5 Correct layout of Bitbus network nodes.
Table 1.1 Bitbus network operating modes.
DATADATA*
RGND
R term.
R term.
SELF-CLOCKED62.5Kbps
SELF-CLOCKED375Kbps
Number of nodes among repeaters 28
Max number of repeaters on the Bitbus line 10 2
Max number of nodes on the Bitbus line 251 84
Required lines couples12(without repeaters)(with repeaters)
Max distance among repeaters 1200m 300m
Total distance the Bitbus line can run 13.2Km 900m
JULY 2014 - REV. 1.2
PAGE 4
PC CARD - PC104 I/F BITBUS FOR PC
ORDER CODE 5904516101
2. Main board featuresYou can insert the card on PC104 bus, that allows tomanage the I/O space typical of IBM AT/XT besidesinterfacing with a Bitbus net.
• CPU Am188ES
• CPU clock frequency: 40MHz
• Configurable external data storage capable ofsupporting RAM ranging from 32Kx8 to 512Kx8.The data memory address ranges from 00000H upto 7FFFFH
• Configurable external code storage capable ofsupporting various EPROMs and FLASH EPROMranging from 128Kx8 to 512Kx8. The addresses gofrom 80000H to FFFFFH
• External I/O space mapped I/O, starting from 00H
• I/O space that can be managed on ISA 00H -:-3FFH bus
• Bitbus serial interface that supports the self-clocked mode (baud rate 375Kbit/sec or 62.5Kbit/sec)
• The Bitbus network is opto-insulated through theinternal logic system (500VDC)
• The board is protected against transientinterferences affecting the Bitbus network
• Connection to the Bitbus network with 1 connector10 poles
• PC-parallel interface consisting of twounidirectional 9 bit, 1 byte FIFOs, two registers forextra-Bitbus communications and a few Status bits
• One CPU Am188ES interface (RS232)
• Required operating conditions:Temperature: 0-60 °CRelative humidity: UR 85% no condensate
• Dimensions:Length: 9 cm, Width: 10 cm, Weight: 180 grams
• Power requirements: 2.5W (5VDC ±5%)
3. Board configuration3.1 Type of transmission
The transmission rate is strictly related to the perfor-mance to be achieved by the network. Up to 13.2Kmcan be reached with 62.5KB. On the other hand, thedistance is reduced to 900m when the 375Kbps rate isused.
The transmission rate is set by inserting jumper JA0 for62.5KB and removing it when 375KB is used.
3.2 Node address
The node address simply identifies the node inside theBitbus network. Addresses can be configured within arange of 01H-FAH for slave nodes while address 00H isfor the network master and addresses FBH-FFH arereserved, as per directives IEEE 1118.
The node address is set with jumpers JS0-JS7. JumperJS0 corresponds to the least significant bit, while jumperJS7 is for the most significant one. A short-circuitedjumper corresponds to 1 in the binary configuration ofthe address. When open, it corresponds to 0. The relationbetween the jumper/bit of an address is shown in thefigure below:
Figure 3.2.1 Node address configuration.
J6
JF0JF123456
JFJFJFJFJF
RAM
JS0
JS1
JS2
JS3
JS4
JS5
JS6
JS7
JMP
Bit0
1
2
bit
bit
bit3
bit4
bit5
bit6
bit7
BitsLSB
MSB
EPROM/FLASH
J4
J3J2HL1 (red LED)
HL2 (green LED)HL3 (ser LED)HL4 (power)
RS232Connector
XP4
JA7JA6JA5JA4JA3JA2JA1JA0
JRQ15
JRQ14
JRQ12
JRQ11
JRQ10
JRQ9
JRQ7
JRQ6
JRQ5
JRQ4
JRQ3
JS0
JS1
JS2
JS3
JS4
JS5
JS6
JS7
TINT
RINT
1
J16
JT1
JT2
J17
ExternalDriverConnectorXP5
BitBusConnectorXP3
JULY 2014 - REV. 1.2
PAGE 5
PC CARD - PC104 I/F BITBUS FOR PC
ORDER CODE 5904516101
3.3 External storageconfiguration
The CPU can be provided with up to 512KB EPROM/CODE FLASH and up to 512KB DATA RAM. The defaultconfiguration is 128K CODE EPROM and 32K DATA RAM.
Figure 3.3.1
The dimensions of the DATA RAM are set by usingjumpers J2 and J3:
Table 3.3.1
The dimensions of the EPROM/CODE FLASH is set byusing jumpers J16, J4 and J6.
Table 3.3.2
3.4 Interface with the PC
The base address where the board is located should beselected by the user with jumpers JF0-JF6. It can rangefrom 000H to 3F8H with 8 byte blocks. The addressjumper relation is shown in the table below:
Table 3.4.1 Relation between address bit/jumper for selectingthe board base address.
Bit2, bit1 and bit0 are used to decode the particularaddressed byte (data, command, state).
When the jumpers are put in, “1” is typed in for therespective bit which will then be compared to the busaddress. Bit9 of the address has to be 1.
CODEMEMORY(EPROM
orFLASH)
DATAMEMORY(RAM)
80000H 00000H
FFFFFH 7FFFFH
J3 ON
J3 OFF
J2 OFF
J2 ON
RAM 32/128x8
RAM 512x8
J16 1-2
J16 2-3
EPROM 1/4 MB
FLASH 1/4 MB
J6 ON
J6 OFF
J4 OFF
J4 ON
FLASH 1/4 MB
EPROM 1/4 MB
Jumper JF6 JF5 JF4 JF3 JF2 JF1 JF0
bits bit9 bit8 bit7 bit6 bit5 bit4 bit3
default(208H) ins.
NOins.
NOins.
NOins.
NOins.
NOins.
ins.
The interface with the PC uses a transmission protocolbased on:
- a data byte
- a command byte
- a state byte
- a pair of bytes reserved for future communicationsrelated to application programs and not directlyconnected to the Bitbus communications.
The table below shows the relation between the I/Oport and address according to the selected base address.
Table 3.4.2 Relation between the I/O port and address accordingto the base address.
3.5 Message transfer mode
Messages can be transferred between the PC and boardin either polling or interrupt mode. To select the modein which data is exchanged, set jumpers JQ3, …, JQ15.If no jumpers are installed, data is exchanged in pollingmode, vice-versa if the above-mentioned jumpers areset, interrupt mode will be used.
The interrupt levels available range from level 3 to level15. Level 10 and 15 are available only if the board isplugged in on a AT bus. The figure below shows a sectionguide of the interrupt levels for data transmission andreception.
NOTE:
The PC should have no interrupt sources with thesame interrupt level. Two free interrupt levels, onefor transmission (Tint) and one for reception (Rint),are required to operate in interrupt mode.
Figure 3.5.1
3.6 Terminal resistor
If the board is installed at the ends of the Bitbus network,the terminal resistors have to be placed on the DATAand RTS lines by inserting jumpers JT1 and JT2. If theboard is not at the ends of the Bitbus network, the twojumpers have to stay open.
REGISTRY ADDRESSADDRESSDEFAULT
CONCURREDOPERATIONS
DATOCOMMANDSTATEAux from 188Aux to 188
BASEBASE + 2BASE + 4BASE + 5BASE + 6
208H20AH20CH20DH20EH
READ/WRITEREAD/WRITEREADREADWRITE
JQ9
JQ7
JQ6
JQ5
JQ4
JQ3
JQ10
JQ11
JQ12
JQ15
JQ14
1
Tint
Rint
JULY 2014 - REV. 1.2
PAGE 6
PC CARD - PC104 I/F BITBUS FOR PC
ORDER CODE 5904516101
3.7 Additional functions
Jumpers JA6 can be used if total compatibility with thePC-44 version of the board (with 8044 Intel inside) isrequired.
If the PC extension executes a RXMEM master node ataddresses FFFE and FFFF when JA6 is set to OFF, thenode and configuration will be obtained as happenedwith the old PC-44.
On the other hand, if JA6 is set ON, the contents of thetwo storage locations will be provided.
Jumper JA7 can be used to activate (JA7 ON) the dynamicconfiguration of the board via FIFO. If JA7 is set to OFFthe board is configured according to the jumper settings.
3.8 Default configuration
Table 3.8.1
Jumper state function
JS0JS1JS2JS3JS4JS5JS6JS7
OFFOFFOFFOFFOFFOFFOFFOFF
00
set bit 0 of node addressset bit 1 of node addressset bit 2 of node addressset bit 3 of node addressset bit 4 of node addressset bit 5 of node addressset bit 6 of node addressset bit 7 of node address
JF0JF1JF2JF3JF4JF5JF6
ONOFFOFFOFFOFFOFFOFF
208H208H208H208H208H208H208H
set bit 3 of PC base addressset bit 4 of PC base addressset bit 5 of PC base addressset bit 6 of PC base addressset bit 7 of PC base addressset bit 8 of PC base addressset bit 9 of PC base address
JA0JA1JA2JA3JA4JA5JA6JA7
OFFOFFOFFOFFOFFOFFOFFOFF
FF
select a speed 375Kbpsnot usednot usednot usednot usednot usedfully compatible with 8044 Inteldynamic configuration disabled
JQ3JQ4JQ5JQ6JQ7JQ9JQ10JQ11JQ12JQ14JQ15
OFFOFFOFFOFFOFFOFFOFFOFFOFFOFFOFF
Connect IRQ3 to TINT(1-2) or RINT(2-3)Connect IRQ4 to TINT(1-2) or RINT(2-3)Connect IRQ5 to TINT(1-2) or RINT(2-3)Connect IRQ6 to TINT(1-2) or RINT(2-3)Connect IRQ7 to TINT(1-2) or RINT(2-3)Connect IRQ9 to TINT(1-2) or RINT(2-3)Connect IRQ10 to TINT(1-2) or RINT(2-3)Connect IRQ11 to TINT(1-2) or RINT(2-3)Connect IRQ12 to TINT(1-2) or RINT(2-3)Connect IRQ14 to TINT(1-2) or RINT(2-3)Connect IRQ15 to TINT(1-2) or RINT(2-3)
J3J2J6J4J16J17
ONOFFOFFON1-2ON
Selects RAM until 128Kx8Selects RAM until 128Kx8Selects EPROMSelects EPROMSelects EPROMEnable the inner Bitbus communication driver
JT1JT2
ONON
Terminals connected to DATA lineTerminals connected to RTS line
3.9 Bitbus network connectors
To connect the card to the Bitbus net we foresee a 10poles XP3 connector with assigned pinout.
Table 3.9.1 Pinout of the Bitbus network connectors.
The Bitbus network cable should have the DATA/DATA-signal pairs and RTS/RTS- twisted and shielded togetherwith the RGND line as shown in Figures 1.3 and 1.4.
By using rectangular connector XP4, and RS232 interfaceis always available.
The latter may be used by sending the SYSTEM Electronicscommands defined (Open, Send, Receive, Close) to taskGBS (ex RAC). As an alternative, the library functions ofan application program can be used for the samepurpose. This serial port may also be used for debugging(at source level) application programs (with toolsprovided by SYSTEM Electronics or other manufacturers).
Figure 3.9.1 Pinout connector XP4 RS232
3.10 Connection to the externaldriver
By a XP5 connector you can connect to the card anexternal line driver, for example a driver for fiber optic,that should be compatible with TTL signals:
XP5.1 TX
XP5.2 RX
XP5.3 IN-/OUT
XP5.4 GND
If we use an external driver you should disconnectedthe JL7 jumper.
PIN SEGNALE
12345
----GND--DATA-
SEGNALEPIN
678910
DATARTS-RTSRGND--
2 1
4 3
6 5
8 7
10 9
XP410 pin header
123456789
10
NCDTRTXCTSRXRTSDSRNCGNDNC
RS232
JULY 2014 - REV. 1.2