Every care has been taken in the preparation of this document. Please inform HMS Industrial Networks of any
inaccuracies or omissions. The data and illustrations found in this document are not binding. We, HMS Industrial
Networks, reserve the right to modify our products in line with our policy of continuous product development. The
information in this document is subject to change without notice and should not be considered as a commitment by
HMS Industrial Networks. HMS Industrial Networks assumes no responsibility for any errors that may appear in this
document.
There are many applications of this product. Those responsible for the use of this device must ensure that all the
necessary steps have been taken to verify that the applications meet all performance and safety requirements
including any applicable laws, regulations, codes, and standards.
HMS Industrial Networks will under no circumstances assume liability or responsibility for any problems that may
arise as a result from the use of undocumented features, timing, or functional side effects found outside the
documented scope of this product. The effects caused by any direct or indirect use of such aspects of the product
are undefined, and may include e.g. compatibility issues and stability issues.
The examples and illustrations in this document are included solely for illustrative purposes. Because of the many
variables and requirements associated with any particular implementation, HMS Industrial Networks cannot assume
responsibility for actual use based on these examples and illustrations.
Intellectual Property Rights
HMS Industrial Networks has intellectual property rights relating to technology embodied in the product described in
this document. These intellectual property rights may include patents and pending patent applications in the USA
and other countries.
This document is intended to provide a good understanding of how to use the Anybus
CompactCom B40-1.
The reader of this document is expected to be familiar with hardware design and communication
systems in general. For additional information, documentation, support etc., please visit the
support website at www.anybus.com/support.
Added information for Anybus CompactCom B40 CC-Link IE Field
Minor corrections and updates
Added content to make the design guide independent of the M40 HWDG
Added new example schematics
Added BACnet/IP
Updated section on DIP1 and DIP2 usage
Added section on EMC
Misc corrections
Corrected pinnings for 8-bit parallel
Misc corrections
Updated for CANopen release
Rebranded
®
Anybus
CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Preface4 (78)
1.4Document Conventions
Ordered lists are used for instructions that must be carried out in sequence:
1.First do this
2.Then do this
Unordered (bulleted) lists are used for:
•Itemized information
•Instructions that can be carried out in any order
...and for action-result type instructions:
►This action...
→leads to this result
Bold typeface indicates interactive parts such as connectors and switches on the hardware, or
menus and buttons in a graphical user interface.
Monospaced text is used to indicate program code and other
kinds of data input/output such as configuration scripts.
This is a cross-reference within this document: Document Conventions, p. 4
This is an external link (URL): www.hms-networks.com
This is additional information which may facilitate installation and/or operation.
This instruction must be followed to avoid a risk of reduced functionality and/or damage
to the equipment, or to avoid a network security risk.
Caution
This instruction must be followed to avoid a risk of personal injury.
WARNING
This instruction must be followed to avoid a risk of death or serious injury.
1.5Document Specific Conventions
•The terms “Anybus” or “module” refers to the Anybus CompactCom module.
•The terms “host” or “host application” refer to the device that hosts the Anybus.
•Hexadecimal values are written in the format NNNNh or 0xNNNN, where NNNN is the
hexadecimal value.
•A byte always consists of 8 bits.
•All dimensions in this document have a tolerance of ±0.10 mm unless otherwise stated.
•Outputs are TTL compliant unless otherwise stated.
•Signals which are “pulled to GND” are connected to GND via a resistor.
•Signals which are “pulled to 3V3” are connected to 3V3 via a resistor.
•Signals which are “tied to GND” are directly connected to GND,
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Preface5 (78)
•Signals which are “tied to 3V3” are directly connected to 3V3.
1.5.1PIN Types
The pin types of the connectors are defined in the table below. The pin type may be different
depending on which mode is used.
Pin type
IInput
OOutput
I/OInput/Output (bidirectional)
ODOpen Drain
Power
Definition
Pin connected directly to module power supply, GND or 3V3
1.6Trademark Information
Anybus®is a registered trademark of HMS Industrial Networks.
EtherCAT®is a registered trademark and patented technology, licensed by Beckhoff Automation
GmbH, Germany.
All other trademarks are the property of their respective holders.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
About the Anybus CompactCom B40-16 (78)
2About the Anybus CompactCom B40-1
2.1General Information
The Anybus CompactCom B40-1 concept is developed for applications where the standard
Anybus CompactCom M40 cannot be used. The brick consists of a board with network
connectivity functionality, where the customer provides the physical network interface, including
network connectors. There are also available interface boards for several networks, providing
network connectors and physical interface.
All Anybus CompactCom B40-1 share footprint and electrical interface. The brick has two
connectors that provides communication with the host application board. The host application
connector provides an interface between the host application and the brick, while the network
connector provides network access. This enables full Anybus CompactCom functionality for all
applications without loss of network compatibility or environmental characteristics.
All dimensions expressed in this document are stated in millimeters and have a tolerance of
±0.10 mm unless stated otherwise.
For general information about the Anybus CompactCom 40 platform, consult the Anybus
CompactCom 40 Software Design Guide.
This a class A product. In a domestic environment, this product may cause radio
interference in which case the user may be required to take adequate measures.
This product contains ESD (Electrostatic Discharge) sensitive parts that may be damaged if
ESD control procedures are not followed. Static control precautions are required when
handling the product. Failure to observe this may cause damage to the product.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
About the Anybus CompactCom B40-17 (78)
2.2Features
•Hardware support for triple buffered process data, which increases performance
•Supports synchronization for selected industrial networks
•Black channel interface, offering a transparent channel for safety communication for
selected networks
•Control pins for status indications according to each network standard (where applicable)
•Separate network connector boards available
•Firmware upgradable (FLASH technology)
•3.3 V design
•8-bit and 16-bit parallel modes
•SPI mode
•Shift register mode
•UART/Serial mode
•Transparent Ethernet functionality
•Precompliance tested for network conformance (where applicable).
•Precompliance tested for CE & UL. Contact HMS Industrial Networks for further information.
All Anybus CompactCom B40-1 will be precertified for network conformance. This is done
to ensure that the final product can be certified, but it does not necessarily mean that the
final product does not require recertification. Contact HMS Industrial Networks for
further information.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface8 (78)
Host
CPU
Flash
Parallel Interface,
8-bit or 16-bit
Serial Interface
LED I/F
or RMII
RAM
A0 ... A13
Tx
Rx
LED[1A, 1B, 2A, 2B]
LED[3A, 3B, 4A, 4B]
RESET
OM[0...3]
MI[0...1]
MD
D0 ... D7
CS
OE
WE
IRQ
Physical Interface
Anybus
CPU
Network
Communications Controller
SPI
Shift Registers
SS
SCLK
MISO
MOSI
LD
SCLK
DO
DI
CT
PA
DIP1[0...7]
DIP2[0...7]
IRQ
D8 ... D15
3Host Interface
This chapter describes the low level properties of the Anybus CompactCom interface.
3.1Overview
The Anybus CompactCom has five different host communication interfaces, corresponding to
different operating modes. The figure below illustrates the basic properties of these interfaces as
well as various I/O and control signals, and how they relate to the host application.
Fig. 1
Please note that only one communication interface at a time is available. Which one is decided
at startup.
3.1.1Parallel Interface, 8-bit or 16-bit
From an external point of view, the parallel interface is a common 8-bit or 16-bit parallel slave
port interface, which can easily be incorporated into any microprocessor based system that has
3.1.2SPI
Anybus®CompactCom B40-1 Design Guide
implementing an 8-bit or 16-bit wide SRAM. Additionally, the parallel interface features an
interrupt request line, allowing the host application to service the module only when actually
needed.
The Serial Peripheral Interface (SPI) is a synchronous serial link. It operates in full duplex mode
and devices communicate in master/slave mode where the Anybus CompactCom modules
always act as slaves. The interface can provide much higher performance than the serial
interface, but not as high as the parallel interface.
an external address/data bus. Generally, implementing this type of interface is comparable to
HMSI-27-230 3.4 en-US
Host Interface9 (78)
3.1.3Stand-Alone Shift Register Interface
In this mode the Anybus CompactCom B40-1 operates stand-alone, with no host processor.
Process data is communicated to the shift registers on the host.
3.1.4Serial Interface (UART)
The serial interface is provided for backward compatibility with the Anybus CompactCom 30. The
interface is event based, and has lower performance than the SPI and parallel modes. For more
information about the serial interface, see the Anybus CompactCom Hardware Design Guide for
the 30 series.
Please note that the Anybus CompactCom B40-1 is not backward compatible to the Anybus
CompactCom B30 hardware wise.
3.1.5LED Interface
The status of the network LEDs is available as follows:
•As LED output signals on the network interface connector. These signals are able to drive a
LED directly and are available for all networks and operating modes. (Recommended)
•As LED output signals on the host interface connector for all operating modes except 16-bit
parallel mode. These signals are not able to drive a LED directly.
•In the LED status register for all modes, see Anybus CompactCom 40 Software Design guide
for more information.
3.1.6Reduced Media-Independent Interface (RMII)
This interface is used for Transparent Ethernet, where Industrial Ethernet communication is
handled by the Anybus CompactCom and other Ethernet communication is routed to the host
application. 16–bit parallel mode and the LED Interface signals are not available in the host
application connector when Transparent Ethernet is enabled. The LED signals are still available
on the network connector of the Anybus CompactCom B40-1.
See RMII — Reduced Media-Independent Interface, p. 17 for mor information.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface10 (78)
Pin 1
Application
interface
Pin 1
Network
interface
Outline of brick
Top view
1
2
56
55
Top view
3.2Host Application Connector
The host application connector provides an interface between the host application and the
Anybus CompactCom B40-1.
Fig. 2
The connector is implemented by a standard 1.27 mm 56 pin header surface mounted to the
bottom side of the PCB.
Fig. 3
The pictures shows the pinning of the mating connector on the host application seen from the
top.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface11 (78)
GND 2 1 3V3
A0/WEH/DIP1_0 4
3 RESET
A2/DIP1_2 6
5 A1/DIP1_1
GND 8
7 A3/DIP1_3
A5/DIP1_5 10
9 A4/DIP1_4
A7/DIP1_7 12
11 A6/DIP1_6
GND 14
13 A8/LD/SS
A10/DO/MISO 16
15 A9/SCLK
GND 18
17 A11/DI/MOSI
A13/ASI_TX 20
19 A12/ASI_RX
D6/DIP2_6 22
21 D7/DIP2_7
GND 24
23 D5/DIP2_5
D3/DIP2_3 26
25 D4/DIP2_4
GND 28
27 D2/DIP2_2
MD0 30
29 D1/DIP2_1
OM0 32
31 D0/DIP2_0
GND 34
33 OM1
CS 36
35 OM2
IRQ/PA 38
37 WE/WEL/CT
GND 40
39 OE
LED4B/D14 42
41 LED4A/D15
GND 44
43 LED3A/D13
LED2A/D11 46
45 LED3B/D12
LED1A/D9 48
47 LED2B/D10
GND 50
49 LED1B/D8
TX/ASI_TX/OM3 52
51 RX/ASI_RX
MI0/SYNC 54
53 MI1
GND 56
55 3V3
Anybus®CompactCom B40-1 Design Guide
Fig. 4
See Pin Overview, p. 12 for information on how each pin is used in the different modes.
HMSI-27-230 3.4 en-US
Host Interface12 (78)
3.2.1Pin Overview
Depending on operating mode, the pins have different names and different functionality.
Presented below is an overview of all pins except GND and 3V3.
The pin types of the connector are defined in PIN Types, p. 5. The pin type may be different
depending on which mode is used.
The ASI (Anybus Safety Interface) signals are used to connect a safety module to the safety interface of
an Anybus CompactCom 40-series module.
Note: The pin numbers of the Anybus CompactCom B40 (brick) host application
connector are different from those of the Anybus CompactCom M40 (module) host
application connector.
PinSignal Name
Serial
Mode
4DIP1_0DIP1_0A0WEHDIP1_0I
5DIP1_1DIP1_1A1A1DIP1_1I
6DIP1_2DIP1_2A2A2DIP1_2I
7DIP1_3DIP1_3A3A3DIP1_3I
9DIP1_4DIP1_4A4A4DIP1_4I
10DIP1_5DIP1_5A5A5DIP1_5I
11DIP1_6DIP1_6A6A6DIP1_6I
12DIP1_7DIP1_7A7A7DIP1_7I
13SSA8A8LD
15SCLKA9A9SCLKO, I
16MISOA10A10DOO, I
17MOSIA11A11DII
19ASI RXA12A12I
20ASI TXA13A13O, I
31DIP2_0DIP2_0D0D0DIP2_0
29DIP2_1DIP2_1D1D1DIP2_1
27DIP2_2DIP2_2D2D2DIP2_2
26DIP2_3DIP2_3D3D3DIP2_3
25DIP2_4DIP2_4D4D4DIP2_4
23DIP2_5DIP2_5D5D5DIP2_5
22DIP2_6DIP2_6D6D6DIP2_6
21DIP2_7DIP2_7D7D7DIP2_7
49LED1BLED1BLED1BD8LED1B
48LED1ALED1ALED1AD9LED1A
47LED2BLED2BLED2BD10LED2B
46LED2ALED2ALED2AD11LED2A
45LED3BLED3BLED3BD12LED3B
43LED3ALED3ALED3AD13LED3A
42LED4BLED4BLED4BD14LED4B
41LED4ALED4ALED4AD15LED4A
37WEWELCTI
39OEOEI
36CSCSI
38IRQIRQIRQPAO
SPI Mode8-bit
Mode
16-bit
Mode
Shift
Register
Mode
TypeNotes
I/O
I, I/O
I, I/O
I, I/O
I, I/O
I, I/O
I, I/O
I, I/O
I, I/O
O, I/O
O, I/O
O, I/O
O, I/O
OD, I/O
OD, I/O
O, I/O
O, I/O
In modules supporting RMII,
these pins are used for the RMII
interface when this has been
activated, see RMII — Reduced
Media-Independent Interface, p.
17.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface13 (78)
PinSignal Name
Serial
Mode
51RXASI RXASI RXASI RXASI RXI
52
TX / OM3ASI TX /
32OM0OM0OM0OM0OM0I
33OM1OM1OM1OM1OM1I
35OM2OM2OM2OM2OM2I
54MI0
53MI1MI1MI1MI1MI1O
30MD0MD0MD0MD0MD0O
3RESETRESETRESETRESETRESETI
SPI Mode8-bit
OM3
MI0/SYNC MI0/SYNCMI0/SYNC MI0/SYNC
3.2.2Power Supply Pins
Signal
GNDPower2, 8, 14, 18, 24,
3V3Power1, 55
Type
Mode
ASI TX /
OM3
16-bit
Mode
ASI TX /
OM3
PinDescription
28, 34, 40, 44,
50, 56
Ground
Power and signal ground reference.
3.3 V power supply.
Shift
Register
Mode
ASI TX /
OM3
TypeNotes
I/O
O
Strapping input with internal
weak pull-up during powerup.
To configure OM3, use an
external pull-up/pull-down of
1.0 to 2.2 kΩ. The pin changes to
output after powerup
Low at power-up and before
reset release.
Tied to 3V
Tied to GND
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface14 (78)
3.2.3LED Interface / D8–D15 (Data Bus)
Signal Name
LED1A / D9O / I/O
LED1B / D8O / I/O
LED2A / D11O / I/O
LED2B / D10O / I/O
LED3A / D13OD / I/O
LED3B / D12OD / I/O
LED4A / D15O / I/O
LED4B / D14O / I/O
Pin TypePin
48
49
46
47
43
45
41
42
Description, LED Interface
LED 1 Indication A
•Green
LED 1 Indication B
•Red
LED 2 Indication A
•Green
LED 2 Indication B
•Red
LED 3 Indication A
•Green
•Mainly used for link/
activity on network port 1
on the Ethernet modules.
Pin is open-drain to maintain
backward compatibility with
existing applications, where this
pin may be tied to GND.
LED 3 Indication B
•Yellow or red, depending
on network
•Mainly used for link/
activity on network port 1
on the Ethernet modules
(yellow).
Pin is open-drain to maintain
backward compatibility with
existing applications, where this
pin may be tied to GND.
LED 4 Indication A
•Green
•Mainly used for link/
activity on network port 2
on the Ethernet modules.
LED 4 Indication B
•Yellow or red, depending
on network
•Mainly used for link/
activity on network port 2
on the Ethernet modules
(yellow)
Description, Data Bus
D9 Data Bus
•"D9" in 16-bit parallel
mode.
D8 Data Bus
•"D8" in 16-bit parallel
mode.
D11 Data Bus
•"D11" in 16-bit parallel
mode.
D10 Data Bus
•"D10" in 16-bit parallel
mode.
D13 Data Bus
•"D13" in 16-bit parallel
mode.
D12 Data Bus
•"D12" in 16-bit parallel
mode.
D15 Data Bus
•"D15" in 16-bit parallel
mode.
D14 Data Bus
•"D14" in 16-bit parallel
mode.
The LED signals are also available on the network connector as active high push/pull signals. Those
signals are easier to use for LEDs.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface15 (78)
3.2.4Settings / Sync
Signal Name
OM0
OM1
OM2
OM3 (ASI TX) (TX)
MI0 / SYNC
MI1
MD0O30
ASI RX
ASI TX
RX
TX
Type
I
I
I
I (Used as OM3
during power up)
O
O
I
O
I
O
PinDescription
32
33
35
52
54
53
51
52
UART
operation:
19
20
51
52
Operating Mode
Used to select interface and baud rate, see below.
Module Identification
MI0 and MI1 can be used by the host application to determine
what type of Anybus CompactCom that is connected.
SYNC
On networks that support synchronous communication, a
periodic synchronization pulse is provided on the SYNC output.
The SYNC pulse is also available as a maskable interrupt using the
IRQ signal.
Module Detection
This signal can be used by the host application to determine that
an Anybus CompactCom is inserted into the slot, see Module
Detection, p. 16.
The signal is connected directly to GND on the Anybus
CompactCom.
Black Channel Communication
These signals can be connected to a safety module, e.g. to IXXAT
Safe T100 to provide a safe channel for black channel
communication
If not used, pin 51 (for UART operation pin 19) should be pulled
to 3V3.
Serial Communications Signals
®
Anybus
CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface16 (78)
Operating Modes
These inputs select the interface that should be used to exchange data (SPI, stand-alone shift
register, parallel or serial) and, if the serial interface option is used, the operating baud rate. The
state of these signals is sampled once during startup, i.e. any changes require a reset in order to
have effect.
OM3OM2OM1OM0
LOWLOWLOWLOW
LOWLOWLOWHIGHSPI
LOWLOWHIGHLOW
LOWLOWHIGHHIGH
LOWHIGHLOWLOW
LOWHIGHLOWHIGH
LOWHIGHHIGHLOW
LOWHIGHHIGHHIGH
HIGHLOWLOWLOW
HIGHLOWLOWHIGH
HIGHLOWHIGHLOW
HIGHLOWHIGHHIGH
HIGHHIGHLOWLOW
HIGHHIGHLOWHIGH
HIGHHIGHHIGHLOW
HIGHHIGHHIGHHIGH
LOW = V
HIGH = V
IL
IH
These signals must be stable prior to releasing the RESET signal. Failure to observe this may result in
faulty behavior.
Operating Mode
Reserved
Stand-alone shift register
Reserved
Reserved
Reserved
Reserved
16-bit parallel
8-bit parallel
Serial 19.2 kbps
Serial 57.6 kbps
Serial 115.2 kbps
Serial 625 kbps
Reserved
Reserved
Service Mode
Module Detection
This signal is internally connected to GND, and can be used by the host application to detect
whether a module is present or not. When connecting an external pull-up resistor, a low signal
indicates that a module is present.
If not used, leave this signal unconnected.
Module Identification
These signals indicate which type of module that is connected. It is recommended to check the
state of these signals before accessing the module.
MI1MI0
LOWLOW
LOWHIGH
HIGHLOW
HIGHHIGH
LOW = V
HIGH = V
OL
OH
On modules supporting “SYNC”, MI0 is used as a SYNC signal during operation. MI0 should only be
sampled by the application during the time period from power up to the end of SETUP state.
Module Type
Active Anybus CompactCom 30
Passive Anybus CompactCom
Active Anybus CompactCom 40
Customer specific
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface17 (78)
3.2.5RMII — Reduced Media-Independent Interface
In RMII enabled modules, the pins described in the table below are used for the RMII
communication. They are set to tristate during startup, making it impossilbe to indicate e.g.
exception during setup. When setup is complete, they are set to inputs/outputs according to the
selected mode. See Anybus CompactCom 40 Software Design Guide for more information on
mode selection.
The 16-bit parallel mode can not be used when RMII is enabled
LED status will not be available when RMII is enabled.
PinSignal Name
49RXD0O
48RXD1O
47RXDVO
46I
45TXD0I
43TXD1I
42TXENI
41CLKI
TypeNotes
3.2.6IRQ (Interrupt Request)
Signal NamePin TypePinDescription
IRQO38Interrupt Request
The use of this signal is optional but highly recommended. Even if the host application lacks
interrupt capabilities, it is recommended to connect this signal to an input port to simplify
software design.
This signal must be pulled to 3V3 on the host application side to prevent spurious interrupts
during startup.
-
-
-
Not used (connect to external pull-down)
-
-
-
-
Active low interrupt signal.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface18 (78)
Power
/RESET
0V
3.3V
Power
On
Power
Stable
t
B
t
A
V
IL
V
IH
t
t
3.2.7RESET (Reset Input)
Signal Name
Pin TypePinDescription
RESETI3Reset
Used to reset the module.
The master reset input is active low. It must be connected to a host application controllable
output pin in order to handle the power up sequence, voltage deviations and to be able to
support network reset requests. If the brick is used in stand-alone mode, with no host processor,
a separate reset circuit can be used, see Reset Circuit Example, p. 36.
The brick does not feature any internal reset regulation. To establish a reliable interface, the host
application is solely responsible for resetting the module when the supply voltage is outside the
specified range.
Power Up
Fig. 5
Powerup time limits are given in the table below:
SymbolMin.
t
A
t
B
--
1 ms
Max.
-
Definition
Time until the power supply is stable after power-on; the duration depends
on the power supply design of the host application and is thus beyond the
scope of this document.
Safety margin.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface19 (78)
RESET
t
C
V
IL
V
IH
t
Restart
The reset pulse duration must be at least 10 µs in order for the NP40 to properly recognize a
reset.
Fig. 6
SymbolMin.
t
C
10 µs
Max.
-
Definition
Reset pulse width.
®
Anybus
CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface20 (78)
3.3Parallel Interface Operation
3.3.1General Description
The parallel interface is based on an internal memory architecture, that allows the Anybus
CompactCom module to be interfaced directly as a memory mapped peripheral. The M40
modules can be configured for 8-bit or 16-bit parallel operation. The access time is 30 ns.
Polled operation is possible, but at the cost of an overhead. For increased efficiency, an optional
interrupt request signal (IRQ) can relieve the host application from polling for new information,
thus increasing the performance.
The parallel interface must be enabled using OM[0...3].
3.3.2Pin Usage in 8-bit Parallel Mode
The parallel 8-bit interface uses the following signals:
PinSignal NamePin Type
4
5
6
7
9
10
11
12
13
15
16
17
19
20
31
29
27
26
25
23
22
21
49
48
47
46
45
43
42
41
37WEI
39OEI
36CSI
38IRQO
32
33
35
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12
A13
D0
D1
D2
D3
D4
D5
D6
D7
LED1B
LED1A
LED2B
LED2A
LED3B
LED3A
LED4B
LED4A
OM0
OM1
OM2
I
I/O
O
O
O
O
OD
OD
O
O
I
Description/Comments
A[0...3]: Mandatory address input signals.
Standard bidirectional data bus.
8-bit mode: LED functionality, see LED Interface, p. 9.
Active low write signal or combined read/write signal.
Bus output enable; enables output on the data bus when low.
Bus chip select enable; enables parallel access to the module when
low.
Active low Interrupt Request signal. Asserted by the Anybus
CompactCom module.
The use of this signal is optional but highly recommended. Even if the
host application lacks interrupt capabilities, it is recommended to
connect this signal to an input port to simplify software design.
This signal must be pulled to 3V3 on the host application side to
prevent spurious interrupts during startup.
Operating mode. Connect all three to GND for 8-bit parallel operating
mode.
For more information see Operating Modes, p. 16.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface21 (78)
PinSignal NamePin Type
52
51ASI RXI
54
53
30MD0O
3RESETI
OM3 / ASI TX
MI0/SYNC
MI1
O, I
O
Description/Comments
Black channel output.
See Black Channel/Safety Interface, p. 51.
During startup the pin (with OM[0..2]) is used to define the operating
mode of the module. Connect to external pull-up for 8-bit parallel
operating mode, see Pin Overview, p. 12.
Black channel input. Tie to 3V3 if not used.
See Black Channel/Safety Interface, p. 51
See Module Identification, p. 16
See Module Detection, p. 16
See RESET (Reset Input), p. 18.
There are no internal pull-up resistors on any of the signals above, except for OM3, which has an internal
weak pull-up.
Function Table (CS, WE, OE, D[0...7])
CSWEOE
HIGHXX
LOWLOWXData Input
LOWHIGHLOWData Output
LOWHIGHHIGH
D[0...7] State
High
impedance
(Write)
(Read)
High
impedance
Comment
Module not selected.
Data on D[0...7] is written to location selected by
address bus.
Data from location selected by address bus is
available on D[0...7].
Module is selected, but D[0...7] is in a high
impedance state.
X = don’t care
LOW = V
HIGH = V
IL
IH
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface22 (78)
3.3.3Pin Usage in 16-bit Parallel Mode
The parallel 16-bit interface uses the following signals:
Bus output enable; enables output on the data bus when low.
Bus chip select enable; enables parallel access to the module when
low.
Active low Interrupt Request signal. Asserted by the Anybus
CompactCom module.
The use of this signal is optional but highly recommended. Even if the
host application lacks interrupt capabilities, it is recommended to
connect this signal to an input port to simplify software design.
This signal must be pulled to 3V3 on the host application side to
prevent spurious interrupts during startup.
Operating mode. Connect all three to 3V3 for 16-bit parallel operating
mode.
For more information see Operating Modes, p. 16
See Module Identification, p. 16
Black channel output.
See Black Channel/Safety Interface, p. 51
During startup the pin (with OM[0..2]) is used to define the operating
mode of the module. Connect to pull-down for 16-bit parallel
operating mode, see Pin Overview, p. 12.
Black channel input. Connect to 3V3 if not used.
See Black Channel/Safety Interface, p. 51
See Module Detection, p. 16.
See RESET (Reset Input), p. 18
The A0 signal is not needed in 16-bit parallel operating mode, as 16 bits are addressed instead of
8 bits. If there is need for writing one byte at the time signals WEH and WEL can be used to
enable writing to the high or low byte respectively. If both are enabled both bytes are written.
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface23 (78)
Function Table (CS, WEL, WEH, OE, D[0...15])
CSWELWEHOE
HIGHXXX
LOWLOWHIGHX
LOWHIGHLOWX
LOWLOWLOWX
LOWHIGHHIGHLOW
LOWHIGHHIGHHIGH
D[0...15] State
High impedanceModule not selected.
Data Input (Write)Data on D[0...7] is written to low byte of
Data Input (Write)Data on D[8...15] is written to high byte
Data Input (Write)Data on D[0 ...15] is written to location
Data Output (Read)Data from location selected by address
High impedanceModule is selected, but D[0...15] is in a
Comment
location selected by address bus.
of location selected by address bus.
selected by address bus.
bus is available on D[0...15].
high impedance state.
X = don’t care
LOW = V
HIGH = V
IL
IH
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface24 (78)
Address
CS
OE
Data
Data valid
Data valid
tAAtAA
tACS
tAR
tHZ
tHZ
Address valid
Address valid
tDH
tRC
3.3.4Memory Access Read Timing
The WE input signal must remain high during a read access. The timing diagram shows a burst
read, but the timing applies for a single read as well. The Anybus CompactCom B40-1 has no
setup or hold timing requirements on the address bus relative to CS during read operations. The
only limitation on read setup and hold times is that the pingpong and powerup interrupt will be
acknowledged if all address lines are high for 10-15 ns or more while CS is low.
Fig. 7
Symbol
tRC
tAA
tACS
tAR
tHZ
tDH
Parameter
Read cycle time
Address valid to Data valid
CS low to Data valid
OE low to Data valid
CS or OE high to output reached tristate
Data hold time
Min (ns)Max (ns)
30
-
-
-
-
0
-
30
30
15
15
-
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Host Interface25 (78)
Address
CS
WE
Data
Datavalid
Datavalid
tAStAH
tWP
Addressvalid
Addressvalid
tDHtDS
tWR
tAStAH
tWP
tDHtDS
tWC
tWR
Addressvalid
Address
CS
WE
Data
Datavalid
Datavalid
tAStAH
tWP
Addressvalid
Addressvalid
tDHtDS
tWR
tAStAH
tWP
tDHtDS
tWC
tWR
Addressvalid
3.3.5Memory Access Write Timing
It doesn’t matter if the OE signal is low or high as long as WE is active (low). In 16 bit mode, the
timing requirements of WE applies to both WEL and WEH. The timing diagrams show a burst
write but the timing applies for a single write as well. The first diagram shows write enable
controlled write timing and the second shows chip select controlled write timing.
Fig. 8
Fig. 9
Symbol
tWC
tAS
tAH
tWP
tDS
tDH
Parameter
Write cycle time
Address valid before End-of-Write
Address valid after End-of-Write
CS and WE low pulse width
Data valid before End-of-Write
Data valid after End-of-Write
tWRWrite recovery time10
Min (ns)Max (ns)
30
15
0
15
15
0
-
-
-
-
-
-
-
Anybus®CompactCom B40-1 Design Guide
HMSI-27-230 3.4 en-US
Loading...
+ 63 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.