This PEP product is carefully designed for a long and fault-free life; nonetheless, its life expectancy can be drastically
reduced by improper treatment during unpacking and installation.
Observe standard anti-static precautions when changing piggybacks, ROM de vices, jumper settings etc. If the product
contains batteries for RTC or memory back-up, ensure that the board is not placed on conductive surfaces, including
anti-static plastics or sponges. These can cause shorts and damage to the batteries or tracks on the board.
When installing piggybacks, switch off the power mains.
Furthermore, do not exceed the specified operational temperature ranges of the board version ordered. If batteries are
present, their temperature restrictions must be taken into account.
Keep all the original packaging material for future storage or warranty shipments. If it is necessary to store or ship the
board, re-pack it as it was originally packed.
This document contains proprietary information of PEP Modular Computers. It may not be copied or transmitted by
any means, passed to others, or stored in any retrieval system or media, without the prior consent of PEP Modular
Computers or its authorized agents.
The information in this document is, to the best of our knowledge, entirely correct. Howe ver , PEP Modular Computers
cannot accept liability for any inaccuracies, or the consequences thereof, nor for any liability arising from the use or
application of any circuit, product, or example shown in this document.
PEP Modular Computers reserve the right to change, modify, or improve this document or the product described herein, as seen fit by PEP Modular Computers without further notice.
We grant the original purchaser of PEP products the following hardware warranty. No other warranties that may be
granted or implied by anyone on behalf of PEP are valid unless the consumer has the expressed written consent of PEP
Modular Computers.
PEP Modular Computers warrants their own products (excluding software) to be free from defects in workmanship
and materials for a period of 24 consecutive months from the date of purchase. This warranty is not transferable nor
extendible to cover any other consumers or long term storage of the product.
This warranty does not cover products which hav e been modified, altered, or repaired by any other party than PEP Modular Computers or their authorized agents. Furthermore, any product which has been, or is suspected of being damaged as a result of negligence, misuse, incorrect handling, servicing or maintenance; or has been damaged as a result of
excessive current/v oltage or temperature; or has had its serial number(s), an y other markings, or parts thereof altered,
defaced, or removed will also be excluded from this warranty.
A customer who has not excluded his eligibility for this warranty may, in the event of any claim, return the product at
the earliest possible convenience, together with a copy of the original proof of purchase, a full description of the application it is used on, and a description of the defect; to the original place of purchase. Pack the product in such a way
as to ensure safe transportation (we recommend the original packing materials), whereby PEP undertakes to repair or
replace any part, assembly or sub-assembly at our discretion; or, to refund the original cost of purchase, if appropriate.
In the event of repair , refund, or replacement of any part, the o wnership of the removed or replaced parts re verts to PEP
Modular Computers, and the remaining part of the original guarantee, or any new guarantee to cover the repaired or
replaced items, will be transferred to cover the new or repaired items. Any extensions to the original guarantee are
considered gestures ofgoodwill, and will be defined in the “Repair Report” returned from PEP with the repaired or replaced item.
Other than the repair, replacement, or refund specified abov e, PEP Modular Computers will not accept any liability for
any further claims which result directly or indirectly from any warranty claim. We specifically exclude any claim for
damage to any system or process in which the product was employed, or any loss incurred as a result of the product
not functioning at any given time. The extent of PEP Modular Computers liability to the customer shall not be greater
than the original purchase price of the item for which any claim exists.
PEP Modular Computers makes no warranty or representation, either expressed or implied, with respect to its products, reliability, fitness, quality, marketability or ability to fulfill any particular application or purpose. As a result, the
products are sold “as is,” and the responsibility to ensure their suitability for any given task remains the purchaser’s.
In no event will PEP be liable for direct, indirect, or consequential damages resulting from the use of our hardware or
software products, or documentation; even if we were advised of the possibility of such claims prior to the purchase
of, or during any period since the purchase of the product.
Please remember that no PEP Modular Computers employee, dealer, or agent are authorized to make an y modification
or addition to the above terms, either verbally or in any other form written or electronically transmitted, without
consent.
PEP’s VM162/172 combines high computational performance and fle xible I/O requirements through its
twin IndustryPack and single CXC interface with excellent communication ability afforded by the Motorola ‘QUICC’ controller.
A combination of high-performance CPUs (Motorola MC68040/MC68060) and the Quad Integrated
Communications Controller chip, the Motorola MC68EN360,‘QUICC’ not only enable computational
performances from approximately 35 MIPs to over 100 MIPs, but dispense with the usual restrictions
associated with serial communication.
Application-specific tailoring is assured through versatile interface options which, together with PEP’s
CXC interface, makes this 6U VMEb us CPU ideally suited for communication and automation applications.With up to 6 serial interfaces resident within the same realestate and support for standard LAN or
WAN interfaces provided, communicational versatility is guaranteed.
T wo on-board EPR OM sock ets are designed to accommodated R OMed applications and/or the PEPbug
debug monitor .The VM162/172 is supplied with these sock ets empty and the PEPbug programmed into
the FLASH memory residing on one of the DM6xx memory piggybacks.
VM162/VM172Chapter 1 Introduction
The PEP VM162/172 Board Support Package is available for several popular real-time operating systems: OS-9, VxWorks,VRTX/OS and pSOS+.
1.2 IndustryPack Flexibility
Fully integrated within the VM162/172 CPU boards are tw o IndustryPack carrier interf aces. Each inter face accesses an 8/16-bit databus and supports IP class 1 modules.
The IP concept is based on an open specification allowing vendors to fabricate an independent library
of digital, analog, communication or counter mezzanine plug-in modules for example that are compatible with carrier boards from manufacturers like PEP. With a few hundred such mezzanines currently
available, users can easily find the appropriate interface to a wide variety of industrial requirements.
In accordance with the IP specification, PEP has implemented an 8/16-bit data width interface operating
at 8 or 32MHz that supports interrupts and communicates with the host carrier via a 50-pin connector
with embedded address, data, control and power lines.This caters for more than 90% of the av ailable IP
modules which do not have DMA support.
Although the VM162/172 adds a new dimension to computer architecture with its direct IndustryPack
interface, it is also a continuation of the successful range of PEP’s CPU boards with communication processors and CXC capability. The CXC extends the already abundant industrial I/O capability of the CPU
and also allows custom design according to the guidelines laid-down in the CXC specification.
Introduced in 1990, PEP’s Controller eXtension Connector (CXC) concept enables a mezzanine Input/
Output extension on the VME or on distrib uted Input/Output systems based on CXC as a backplane bus.
The CXC is based on an open specification allowing unprecedented flexibility in meeting customer requirements.
PEP has named these mezzanine plug-in modules Controller eXtension Modules (CXM). These 96-pin
CXMs are designed to operate with CXC based host modules which includes the VM162/172.
Designed primarily to operate in harsh industrial environments, this versatile modularity provides not
only a cost-effective engineering solution but also allows customers a near exhaustive selection of system configurations through a selection of over 30 base CXMs providing analog, digital and other I/O
extensions such as SCSI and fieldbus connection (PROFIBUS, CAN, LON and Bitbus). Hence, a feature of the VM162/172 is that the ‘raw’ serial signals from the ‘QUICC’ SCC2, SCC3 and SCC4 channels being internally wired to the front panel as well as to the CXC interface.
Network interfacing is provided if required by ordering the relevant front-panel which comes complete
with the appropriate SI6-piggyback, serial port connectors and 50-pin D-Sub IndustryPack connector.
Naturally, to cater for those customers who merely wish to tak e advantage of the computing power and
CXC capablility that the VM162 offers, blank front-panels without the networking options have been
devised.
1.4 Front Panel and I/O Configuration
The illustrated front-panels show the possible connections of the SCC1 communications channel for
Ethernet, RS485 or blank. In addition, the front panels are available with mini-D-Sub connectors instead
of RJ45 connectors for the 4 standard serial channels.
The 50-pin, subminiature SCSI 2 style D-Sub connectors for emerging IP signals offer improved EMI
protection (compared with the on-board flat cable connector.) Each IP module has its o wn shielded connector for state-of-the-art industrial cabling.
All front-panels feature a user, watch-dog and halt status LED, reset and abort button switches and
where possible, the status of the Ethernet communication.
SC and SI6 piggybacks adapt the multi-protocol serial channels of the ‘QUICC’ to the physical interfaces provided on the VM162/172’s front-panel and CXC:
The 68060 processor operating at 50 Mhz provides the highest performance while the 68040(V) at 33
MHz sets the standard in the Motorola CISC portfolio.
68EN360
The ‘QUICC’ chip operates as an I/O and communication companion providing 4, high-speed serial
channels, timers, clocks and Time Slot Assignment (TSA).
Serial Channels
All high-speed SCC channels are equipped with hardware hand-shaking and are available for a variety
of applications. SCC1 can be configured for either ethernet or RS485 (e.g. PROFIBUS) use by fitting
the appropriate SI6 piggyback. SCC2 - SCC4 are configured by default for RS232 operation and can be
changed to optoisolated RS232/485 as required by fitting the SC piggyback.An SMC1 interface provides a simple RS232 connection for console/debug operations.
Figure 1.2 MC68EN360 Channel Assignment
MC68EN360 Channel
Assignment
SCC1
MC68EN360
SMC1
SCC2 SCC3 SCC4
}
3x Serial Interfaces for
SC-Piggyback And CXC
CXC Interface
}
SI-Interface
RS232 with
Rx and Tx only
SI-Piggyback
Interface
Real-Time
Clock
SC-Piggyback
Interfaces
Page 1- 6
CXC Interface
The 96-pin interface allows other I/O possibilities to be realised by utilising PEP’ s plug-in cards such as
the CXM-PFB12, CXM-CAN, CXM-LON, CXM-SCSI or CXM-SIO3..
Ethernet Interface
Three different SI6 piggybacks complete with all the associated control logic are available providing
10Base2, 10Base5 or 10BaseT interfaces.
RS485 Interfaces
This is a fully optoisolated RS485 SI6-interfacepiggyback with a 9-pin D-Sub connector.
Any two IndustryPacks from a wide-range may be fitted to cater for the needs of digital, analog, communication or counter functions. PEP also offers customers a non-gratis service that integrates the chosen IP module and RT-OS with the VM162/172 carrier board.
SC-Interface
Three RS232 SC-Piggybacks are fitted as standard for serial communication.These can be replaced by
optoisolated RS232 or RS485 piggybacks as required.
DMA Channels
2 independent channels are provided by the ‘QUICC’ chip for use by applications requiring DMA transfer between VMEbus, CXC-modules, DRAM,FLASH memory and dual-ported SRAM.
DRAM/FLASH
This memory, complete with a 32 bit-wide access bus is placed on a piggyback with addressing capability for up to two memory banks of 64 MByte each.The on-board programmable FLASH memory allows the user to produce low cost upgrades by over-writing existing stored data and may also be
configured as a boot device.
SRAM
This is a dual-ported battery-backed (Goldcap) memory area with a 16 bit- wide access bus. Users of the
VMEbus and CPU both have access to this memory.
EEPROM
A 2 kbit EEPROM is provided on-board, 1 kbit has been pre-programmed with PEP production data leaving the remaining available space for user application code.
Real-Time ClockV3021 with (year, month, week, day, hour, min., sec.)
Tick
Timer
Time-Out
WatchdogEnabled by software with front-panel LED
MC68040(V) @ 33 MHz
MC68060 @ 50 MHz
MC68EN360 Companion processor for network
support on SI6 piggybacks
1/4/16/32 MByte (32-bit access) DRAM
0.5/1/2/4 MByte (32-bit access) FLASH (Available
on DM6xx Memory Piggyback)
256 kByte or 1 MByte dual-ported SRAM with data
retention via Goldcap
2 kbit serial EEPROM for configuration data
2 ROM sockets for up to 1 MByte device (optional)
Built-in on MC68EN360 providing a programmable
periodic interrupt (default 10ms)
4x16, 2x32-bit resolution built-in timers on the
MC68EN360
On-board BERR* time-out min. 8 µ s, max.128 µ s
128 µ s VMEbus BERR* both with software enable/
disable
VM172-BASESame as order no. 16134 but with 1 MByte dual-ported SRAM16194
Goldcap for back-up), five serial interfaces (four available on the
front panel as RS232 (RJ45) and one available from the choice of
SI6-networking piggybacks), CXC interface, two IP interfaces and
PEPbug
VM162-BASESame as order no. 16026 but with 1 MByte dual-ported SRAM16193
DM 600
DM 600
DM 601
DM 601
DM 602
DM 603
Goldcap for back-up), five serial interfaces (four available on the
front panel as RS232 (RJ45) and one available from the choice of
SI6-networking piggybacks), CXC interface, two IP interfaces and
PEPbug
Memory Piggyback with 4 MByte DRAM and 1 MByte FLASH
memory for VM162/172
Memory Piggyback with 4 MByte DRAM and 4 MByte FLASH
memory for VM162/172
Memory Piggyback with 16 MByte DRAM and 1 MByte FLASH
memory for VM162/172
Memory Piggyback with 16 MByte DRAM and 4 MByte FLASH
memory for VM162/172
Memory Piggyback with 1 MByte DRAM and 1 MByte FLASH
memory for the VM162/172
Memory Piggyback with 32 MByte DRAM and 512 kByte FLASH
memory for the VM162/172
16026
11852
11853
11854
11855
12765
13027
DM 603
DM 604
DM 604
SI6-10B2-IP
SI6-10B5-IP
Page 1- 10
Memory Piggyback with 32 MByte DRAM and 2 MByte FLASH
memory for the VM162/172
Memory Piggyback with 8 MByte DRAM and 1 MByte FLASH
memory for the VM162/172
Memory Piggyback with 8 MByte DRAM and 4 MByte FLASH
memory for the VM162/172
10Base2 Thin Ethernet interface piggyback with RG58 coax.
connector
10Base5 Ethernet (AUI) interface piggyback with 15-pin D-Sub
connector
Important : The VM162 and VM172 must be ordered with a memory module (DM60x) and a front-panel with integrated SI6-piggyback module.
For configurations requiring the 2 x 50-pin D-Sub front-panel connectors instead of the flat-band cable
option, please contact the nearest PEP sales office for further information.
10BaseT Twisted pair Ethernet interface piggyback with RJ45
connector
Front panel without networking interface(s)
Optoisolated RS485 interface piggyback with 9-Pin D-Sub
connector
Optoisolated RS232 interface piggyback with TxD, RxD, DTR and
CTS signals and Baud rate up to 38.4 kBaud
Optoisolated RS485 interface piggyback for half-duplex
communication at a Baud rate up to 38.4 kBaud
3 meter RS232 Serial Interface cable with RJ45 to 9-Pin D-Sub
(male) for terminal connection
By supporting several types of CPUs the VM162/VM172 pro vides scalable computing po wer at optimized costs.
The CPU types differ in performance, power requirement and supported functions. Optional on-chip
functions are Memory Management Unit (MMU) and Floating Point Unit (FPU).
There are three categories of VM162/VM172 CPU boards. At the top there is the 68060 CPU board
which offers 2 to 3 times performance of a the following 68040 CPU board. At the low end there is the
CPU 68040V board which is the low cost and also low power version.
The Table below summerizes the differences between the CPU versions:
Table 2.1: CPU Options
CPU Type
6806050yesyes13377918.28high performance
6804033yesyes612559.43standard
68040V33yesno61255-lower cost/low power
6806066yesyesTBDTBDplanned
Note: Performance data based on the same test for all CPU versions of the VM162/VM172 is intended
to demonstrate the performance ratio between them.
The above measurements have been made under the OS-9 operating system version 3.0 with the UltraC compiler version 1.3.1.
2.3 Memory
Freq
MHz
MMUFPU
Integer
Performance
(
Dhrystone
Floating Point
Performance
(
)
Wheatstone
)
2.3.1 DRAM/FLASH
DRAM and FLASH memory is combined on a piggyback with addressing capabiltity for up to 64 MBytes each. It provides a fast 32 bit data access with DRAM Burst support. It provides also in-system
FLASH programming facility, thus ROM upgrades are easy and cost-effective by simply overwriting
existing stored data in FLASH. Hardwired write protection of FLASH can be optionally selected by
jumper.
The Table on the following page summarizes the variety of DRAM/FLASH modules present available
(refer also to the Memory Piggybacks Appendix). Please consult your sales representati v e for other possible applications.
DM6004 MByte1 or 4 MByte
DM60116 MByte1 or 4 MByte
DM6021 MByte0 or 0.5 or 2 MByte
DM60332 MByte1 or 4 MByte
DM6048 MBytes1 or 4 MBytes
Note: DRAM is accessed with a 5-2-2-2 burst cycle at 25 MHz bus clock (68060/50MHz) and with a 62-2-2 burst cycle at 33 MHz bus clock (68040(V)/33MHz).
2.3.2 SRAM
The SRAM on the VM162/VM172 is or ganized in one bank with 16 bit wide data access b us. It is bakked by two onboard service-free GoldCaps and optionally via VME StandBy. Additionally, this memory is dual-ported. Users of the VMEbus and the onboard CPU both have access to this memory.
The dual-ported SRAM is soldered directly on the base board available with size of 256 kB or 1 MB.
2.3.3 Boot ROM (optional)
The VM162/VM172 Boot R OM is an optional sock et de vice. The sockets support de vices up to 512 kB
size with a 16 bit wide data access for PLCC EPROMs.
By default, the board’s firmw are is stored directly in the FLASH on memory piggyback. Thus, the Boot
ROM is not mandatory. In case of using a Memory-PB without FLASH or if an application requires the
board’s firmware to be separated from FLASH then the Boot R OM sock et can be used. Whether starting
from FLASH or from Boot ROM is selected by jumper.
Supported chips for the Boot ROM:
128Kx8, 256Kx8, 512Kx8 PROM or EPROM, Standard JEDEC Pinning
The EEPROM is a non-volatile serial memory device. It provides 2 kbit size and is accessed over the
SPI (Serial Peripheral Interface) of the 68EN360.
1 kbit of this EEPROM memory is free for application relevant data whereas the rest of this EEPROM
is reserved. This part is used for storing board ID codes, Internet/Ethernet addresses and boot information.
Note: For more information on the EPROM type, please refer to the XICOR X25C02 data sheet. For
EEPROM internal address mapping, also refer to the Programming Chapter in this manual.
2.4 Communication Controller 68EN360 (QUICC)
The 68EN360 QUICC (Quad IntegratedCommunication Controller), serves as an I/O controller/processor on the VM162/VM172. This device is especially optimized for serial communication.
Therefore, it provides an unique internal hardware architecture and supports a variety of communication
protocolls and operating modes.
In addition, the QUICC is used for some on-board system functions such as DRAM control, Tick generation and address decoding by operating in the so-called companion mode. In this mode its own CPU32
core is disabled whereas all other features including its Communication Processor Module (CPM) are
still available.
In terms of communication tasks the QUICC works as a co-processor to the CPU. Its internal communication „hardware“ is built up with a command programmable Communication Processor , 14 dedicated
DMA channels, 4 Serial Communication Controllers (SCC), 2 Serial Management Controllers (SMC)
and a Time-Slot Assigner (TSA).
Among many others, protocolls supported by the SCCs for example are UART, HDLC/SDLC, Apple
Talk, Ethernet/IEEE 802.3, X.21 and Signaling System # 7. The Time-Slot Assigner supports building
2 time-domain-multiplexed (TDM) channels to be for instance E1/T1, ISDN Basic/Primary Rate or
User Defined.
Warning!
In the PEP supported BSP’s for OS-9 version 3.0, PEP makes sur e that the proper initialization sequence for the QUICC is followed. Never change this initialization sequence, as unexpected errors may occur.
2.4.1 Use of 68EN360 Communication Ports
Page 2- 6
The 68EN360 provides 5 serial ports based on 4 SCCs and 1 SMCs. These multiprotocol serial ports can
be physically translated to the different standards due to application specific demands. This translation
is very flexible on the VM162/VM172 by using SI- and SC- piggybacks or even CXMs. 5 configured
serial ports are available at front panel connectors.
Beside its main purpose which is to provide communication power to the VM162/VM172 the I/O controller 68EN360 is also used for some system integration function. First of all this is DRAM control and
global memory decoding. Therefore, the 8 CS lines provided by the 68EN360 memory controller are
connected to the different memory types or address areas folllowing the scheme in the following Table.
Note: In order to be compatible with the above configuration, the board initialization described in the
Programming Chapter must be closely adhered to.
2.4.3 Use of 68EN360 Interrupt Controller
The 68EN360 internal interrupt controller is one part of the VM162/VM172 interrupt control logic. The
68360 internal interrupt controller provides programmable interrupt vectors for all internal interrupt requests. For detailled description of these interrupts, please refer to the 68EN360 User’s Manual.
Additionally, some external signals are connected with 68EN360 dedicated interrupt inputs. Signals at
this inputs are processed by the 68EN360 to generate autovectored interrupt on fixed le vels to the CPU.
These signal are summarized below:
Note: In order to be compatible with the above configuration, the board initialization described in the
Programming Chapter must be closely adhered to.
VME ACFAIL* generates a non-maskable autovector level 7 interrupt (NMI) in the same way as the AB-
ORT button. When an ACFAIL* NMI is detected, it can be differentiated fr om an ABORT by reading bit
1 of the Board Configuration Register.
2.4.4 Use of 68EN360 DMA Channels
The 68EN360 includes altogether 14 DMA channels which are dedicated to the communication ports
(SDMA) and 2 independant DMA channels (IDMA). With the IDMAs memory to memory transfers
are possible with any combination of onboard and A24/D16 VME addresses.
Note: In order to be compatible with CPU VME and DMA VME transfers, the board initialization described in the Programming Chapter must be closely adhered to.
2.5 VMEbus Interface
The VM162/VM172 has a complete VMEbus Master interface with arbiter, system clock driver, power
monitor with system reset driver, IACK daisy chain driver and a 7-level VMEbus interrupt handler.
The VM162/VM172 VMEbus Master interface supports A32, A24 and A16 addressing modes in any
combination with D32, D16 and D8 data bus width.
Arbitration is single level FAIR on BR3. Used as system controller the board has to be placed in slot 1
of the VMEbus backplane (furthermost left slot).
VMEbus system signals ACFAIL* and SYSFAIL* are processed by the VM162/VM172 to autovectored interrupt requests (see also the Use of 68EN360 Interrupt Controller Section).
In addition, the board provides also a VMEbus Slave interface which consists of a dual-ported RAM
with programmable board address and a mailbox interrupt facility.
2.5.1.1 Supported Data Transfer Types (VMEbus AM Codes)
The VM162/VM172 supports three addressing modes which are A32, A24 and A16. The following AM
codes according to the standard for VME64 are supported by the VM162/VM172.
Table 2.5: External Signal Connection
AM Code (Hex)Function
3EA24 supervisory program access
3DA24 supervisory data access
3AA24 non-privaleged program access
39A24 non-privaleged sata access
2DA16 supervisory access
29A16 non-privaleged access
1F - 18User Defined
17 - 10User Defined
0EA32 supervisory program access
0DA32 supervisory data access
0AA32 non-privileged program access
09A32 non-privileged data access
Note: For the user-defined codes 1F - 18 and 17 - 10, there are A24/D16 cycles generated by the
VM162/VM172.
The various combinations of addressing modes and data bus sizes are selected on dif ferent address areas
within the address map of the CPU. The corresponding AM codes are generated according to the T able
below.
Note: The A32 VME addressing modes begin at VME offset 0, independent of their location within the
CPU address map.
Supervisor/use or program/data AM codes are generated, dependent on the type of CPU access that is
running.
2.5.2 System Controller Functions
2.5.2.1 Automatic First-Slot Detection
During power-up, the VM162/VM172 automatically detects if the board is placed in the far left slot of
the system. If so, it acts automatically as the system controller.
Note: This information is stored in the FSD (First Slot Detection) bit within the VMEbus Control/Status
register .
2.5.2.2 SYSCLK* Generator
The VMEb us SYSCLK* driver of the VM162/VM172 is controlled directly by the FSD bit. That means,
if the board has detected itself as system controller it will automatically drive SYSCLK* to the VMEbus. If it has detected not to be system controller its SYSCLK* driver is automatically disabled.
Note: The system integrator has to ensure that there is only one SYSCLK driver active for the whole system. This is especially important where boards with jumper enabled SYSCLK drivers are mixed with
VM162/VM172 boards.
The VM162/VM172 contains a power monitor which generates on-board system reset signal after the
on-board voltage falls below 4.65 V. This on-board system reset can also drive VME SYSRES*. If the
VM162/VM172 is not intended to drive VME SYSRES*, the signal can be disconnected using a jumper .
Note: In contrast to SYSCLK*, which may be driven by one board in the system, SYSRES* may be
driven more than once in a system.
SYSRES* originating from another power monitor within the system always resets the VM162/VM172.
2.5.2.4 VMEbus Monitor
The VM162/VM172 also provides a bus monitor for the VMEbus. A 128 µs timeout timer monitors
VMEbus data transfer cycle lengths and generates a VMEb us BERR* signal for error termination. This
timer is enabled/disabled via the VME Control/Status Register, which also supplies a timeout status bit
in order to identify bus errors generated by the VMEbus monitor.
2.5.3 VME Slave Interface
2.5.3.1 Dual-Ported RAM
The VM162/VM172 provides 256 kByte or 1 MByte of on-board SRAM which is dual-ported between
the CPU and VMEb us. Read-Modify-Write cycles (TAS instruction used for semaphores) are supported
in any direction.
The location of the dual ported SRAM as seen from VME is programmable via the VME Control/Status
Register. There are 16 different base addresses possible with separate enable/disable functions all located in VME A23/D16 space.
Note: The lowest 8 kByte of the dual-ported SRAM is reserved for generating mailbox interrupts.
2.5.3.2 Mailbox Interrupt
An external VMEb us master may interrupt the VM162/VM172 by setting the corresponding mailbox interrupt bit. This bit called P_IRQ5 is placed within the VME Control/Status Register. Setting this bit generates an autovectored 5 interrupt on the CPU. Typically, the on-board CPU resets P_IRQ5 during
processing the corresponding interrupt service routine.
Notes:
The complete VME Control/Status Register can be read also from an external VMEbus Master. It is
addressed on every odd addr ess of the lowest 8 kByte block of the VME board addr ess. Only the mailbox
interrupt P_IRQ5 can, however, be set; all other bits are write protected from the VME.
As the P_IRQ5 bit is located at bit 7 of the register, it can be directly used as a semaphore due to the fact
that Read-Modify-Write access is supported.
Although the VM162/VM172 cannot access itself via the VMEbus, setting the mailbox interrupt bit on
the local side also generates the interrupt to the CPU.
The T able belo w shows the VME board address map for external Master access dependent on the setting
of the board address bits within the VME Control/Status Register.
Note: All of the possible board address ranges are located in VME A24/D16 addressing mode. It is enabled for supervisor/user data access in accordance to AM codes 3D and 39.
The VME Control/Status Register is a one byte wide register with read/write access at default address
CD 00 00 05 (HEX).
01234567
CS7 + $5
P_IRQ5FSDEN_BERR2EN_DPR
Note: All bits except bit 4 (First Slot Detection) are clear ed after r eset. The firmware of the board initializes some of them at startup according to the default parameters stored in the EEPROM.
Register Description
NameValue
P_IRQ5
bit 7
EN_DPR
bit 6
EN_BERR2
bit 5
FSD
bit 4
1
1
1
1
Reset (HW)
Slot 1Other
00
00
00
10
Reset PEP (SW)
Slot 1Other
00
Value stored in
EEPROM
10
10
BADR2BADR3BADR1BADR0
Description
Pending mailbox IRQ
Dual-port RAM (inc. mailbox IRQ) for
VME requester enabled. Base address
fixed using BADRx bits
Enable bus monitor timer, all VME
cycles, timeout after 128µs
VMEbus ‘First Slot Detection’ flag,
system controller
BADR3 BADR0
bits 3-0
00
Value stored in
EEPROM
VME address location of dual-ported
RAM. Equivalent to VME address lines
A23-A20, programmable from $0-$F in
1 MByte windows, enabled with
EN_DPR
Note: All bits are cleared during a reset. FSD is set dependent on the slot position of the board in the
system. The board’s firmware initializes EN_DTR, EN_BERR2 and BADR[3-0] during startup following default parameters stored in the serial EEPROM.
The VM162/VM172 gives the user the choice to execute startup procedures from three different memory areas. These are FLASH (default on the memory Piggyback), or the optional Boot ROM or memory on the VMEbus. The boot device/memory is selected by jumpers.
The boot decoder logic redirects the initial CPU access which is always starting at address 0 (HEX) to
the boot device according the boot jumper setting. The boot device is swiched automatically to its default address area after the first access on it with its default address.
For more details, please refer to the Programming Chapter in this manual.
Notes: If VMEbus memory is selected to be the default boot device, it must be located at VME base
address 0 (HEX) in A24/D16 address space for supervisory program/data access (AM codes 3E, 3D).
If FLASH or VMEbus memory is selected to be the boot device, the optional Boot ROM can be used as
a standard ROM for storing program, data or application specific parameters.
2.6.2 Interrupt Control
The interrupt control logic processes internal interrupt requests (68EN360), together with external requests (VME) and external autovectored interrupt requests. The interrupt control logic is built up using
the 68EN360 internal interrupt controller for QUICC internal 68EN360 and a seven level VMEbus interrupt handler with the corresponding mask register.
2.6.2.1 Internal Requests
Internal requests are related to all interrupt requests caused by the 68EN360 sources, including the
68EN360 system integration functions (watchdog timer, periodic interrupt timer) and the communication processor module (RISC controller, timers, DMAs, SCCs and so on). For more information, please
refer to the 68EN360 User’s Manual.
In order to avoid conflicts regarding interrupt le vels, it is recommended to use IRQ le v el 4 for 68EN360
CPU internal requests and IRQ level 6 for 68EN360 SIM60 internal requests.
Note: The four IRQ lines specified by CXC are supplied by the 68EN360 Port C lines and ar e, therefor e,
also processed as internal requests (PC0, 1, 2, 3).
Autovectored interrupts are all generated via the 68EN360 pins for external interrupt sources. The y are
summarized in the table below . Care must be taken that the rele v ant 68EN360 register is initialised with
respect to the wiring (see also the Programming chapter in this manual).
The VME Interrupt Mask Register is a one byte wide register with read/write access situated at default
address CD 00 00 01 (HEX). All bits are cleared after reset.
01234567
EN_IRQ7EN_IRQ4EN_IRQ5EN_IRQ6
ReservedEN_IRQ3ReservedSYSFAIL
Note: The firmware of the board initializes this register using the default parameters stored in the EEPROM.
The VM162/VM172 provides an 128µs timeout timer which monitors the cycle lengths of on-board
data transfers, including on-board I/O, CXC, IndustryPack, dual-ported SRAM and some VME. After a
timeout occurs, it generates an on-board BERR signal for error termination.
This timer is enabled / disabled via the Board Control/Status Register, which also supplies a timeout status bit in order to identify bus errors generated by the on-board bus error timer.
Note: During VMEbus cycles, the on-board bus err or timer is r eset as soon as the VM162/VM172 gains
VMEbus ownership. This means that the time gap between a VMEbus request and the start of a VMEbus
cycle is monitored by the on-boar d Bus T imer. VMEbus cycles themselves are monitored by the separate
VME Bus Monitor.
2.6.4 Watchdog Timer
A 512ms watchdog timer is also provided by the VM162/VM172. Once enabled via the Board Control/
Status Register, the watchdog timer cannot be reset by software. It must be re-triggered via the corresponding bit in the Board Control/Status Register periodically within the timeout period.
‘Watchdog timer running’ is a status that is displayed by the yellow front panel LED. At timeout, the
watchdog timer triggers the on-board system reset.
Note: If the board’s VME SYSRES* jumper is set, the watchdog timer can reset the whole of the VME
system.
2.6.5 Board Control/Status Register
The Board Control/Status Register is a one byte wide register with read/write access at default address
CD 00 00 07 (HEX).
CS7 + $7
WDGEN_WDGBERR1BERR2
Note: Information may be lost if the user writes to bit 7.
Set by watchdog timer when timeout has been reached.
Used to differentiate between resets caused by the
watchdog and resets caused by the reset button (power up
resets can be identified within the 68EN360).
Set by VMEbus BUS monitor when timeout has been
reached. Used to identify BERR caused by this timer (see
also VMEbus Control/Status Register).
Set by on-board bus error timer when timeout has been
reached. Used to identify BERR caused by this timer.
Enable the watchdog timer. It can only be set once, and
remains enabled until the next reset.
Triggers the watchdog timer. Watchdog timeout=512ms.
Enables the on-board bus error timer. It also monitors all
on-board I/O cycles, including the time from the VMEbus
request to the VMEbus grant. Timeout=8µs.
VME ACFAIL signal latched when active in order to
distinguish between a level 7 NMI from an ABORT or
ACFAIL.
Enables the green ‘general purpose’ front panel LED.
The RTC (V3021 3-wire serial interface) is a 1-bit device which is accessible over the CS6 of the
68EN360. Its timekeeping features include:
•seconds, minutes, hours, day of month, month, year, week day and week number in BCD format.
•leap year and week number correction.
•standby supply smaller than 1µA.
For more details, please refer to the Programming Chapter in this manual and the V3021 data sheet.
2.7.2 Serial EEPROM
The serial EEPROM is a 1-bit device which is accessible o ver the SPI Interface (3-wire Interchip) of the
68EN360. The first half of the EEPROM (1 kbit) is reserv ed for factory data, including Board ID codes,
Internet/Ethernet addresses, boot information etc. The second half of the EEPROM is available for the
user. See also the Programming Chapter in this manual.
For more information on the EEPROM, please refer to the XICOR X25C02 data sheet.
2.7.3 TICK Timer
The 68EN360 internal Periodic Interrupt Timer is used by the PEP supported real-time operating systems as TICK generator.
For more information, please refer to the 68EN360 User’s Manual.
2.7.4 General Purpose Timer
There are four 16-bit general purpose timers available which are provided by the 68EN360. Two pair of
timers can cascaded internally or externally to form two 32-bit timers. Maximum period is 8.1s at
33MHz with a resolution of 30ns.
For more information please refer to the 68EN360 User’s Manual.
2.7.5 DMA Transfers
There are two independant fully programmable DMA channels available which are provided by the
68EN360. These IDMAs provide 32-bit address and 32-bit data capabiltity together with 32-bit byte
transfer counters. Fixed and rotating priority as well as single buffer, auto buffer or buffer chaining is
supported by the DMAs. With the IDMAs memory to memory transfers are possible with any combination of onboard and A23/D16 VME addresses.
For more information please refer to the 68EN360 User’s Manual.
Short term data retention for RTC and SRAM is gained with tw o Gold-Caps, each with a value of 0.22
Farad. In contrast to Lithium cells, Gold-Caps do not require servicing. This short term backup is intended for short power failures or for reconfiguring systems. An empty Gold-Cap needs approximately
three hours to charge up, with backup times dependant on the temperature, memory size and memory
manufacturer tolerances. A well charged Gold-Cap provides a minimum of 10 hours backup time.
Laboratory tests at PEP indicate a typical backup time of 1 week for both 256kB and 1MByte SRAM
plus RTC (typical onboard backup current is 2 µA).
Long term data retention is made via the VMEb us 5V Stby line. W ith respect to the VM162/VM172, this
voltage can drop to 2.5V, with the typical current via the 5V Stby being 30µA at 3V.
Notes: The VM162/VM172 board can be removed from the system and plugged in again without losing any information. Data retention switches from the VME 5V Stby to the on-board Gold-Caps automatically.
The on-board Gold-Caps ar e continuously reloaded via the 5V Stby line. The 5V Stby curr ent is typically
7mA for a few minutes when the Gold-Caps are at the beginning of the loading phase (fully dischaged).
2.7.7 Front Panel Buttons and LED Ports
Figure 2.1 LED Port and Button Location
Watchdog LED
Yellow
User General Purpose
Green
W
UH
RESET SwitchABORTSwitch
RST AB
2.7.7.1 RESET/ABORT Button
A RESET button is fitted to the front panel to avoid f alse operation. The RESET button triggers the onboard system reset generator, as well as the VME if jumper J2 is set.
T ogether with the RESET b utton, an ABORT button is also fitted to the front panel. The ABORT button
generates a level 7 IRQ (non-maskable interrupt) which is used for debugging purposes. In this case, bit
1 of the Board Control/Status Register is not set (remains ‘0’).
2.7.7.2 LED Port
The front panel LED port consists of three LEDs with the following functions:
CPU HALTor RESET
Red
Red LEDCPU in HALT or RESET status.
Yellow LEDWatchdog timer running status.
Green LEDGeneral purpose, set via Board Control/Status Register.
The green LED is free to be used by the customer. It is set by the software during startup when the
68EN360 is initialized.
The 5 serial ports of the VM162/VM172 are based on the 4 SCCs and 1 SMCs of the 68EN360. These
multiprotocol serial ports can be physically translated to the different standards due to application specific demands. A view of the range of front panels available for the VM162/VM172 can be found in Fi-
gure 1.1 of this manual.
Figure 2.2 MC68EN360 Channel Assignment
MC68EN360 Channel
Assignment
SI-Piggyback
SCC1
MC68EN360
SMC1
SCC2 SCC3 SCC4
}
}
SI-Interface
RS232 with
Rx and Tx only
Interface
Real-Time
Clock
3x Serial Interfaces for
SC-Piggyback And CXC
CXC Interface
This translation between the ‘raw’ 68EN360 signals and ready configured port on the front panel is very
flexible on the VM162/VM172 by using SI and SC piggybacks or e v en CXMs. 5 configured serial ports
are available on the front panel connectors.
The Table on the following page shows the a v ailability of the v arious logical serial ports on the internal
interfaces for physical configuration.
Note: For applications where D-Sub connectors are preferred rather than the default RJ45 connector,
a front panel is available whereby all serial ports can be connected via mini D-Sub connectors.
2.8.1 Ethernet/SER4 Port
If a network interface such as Ethernet or a fieldbus is required, the most upper port on the front panel
can be used. This port based on SCC1 of the 68360 is physically configured by a so-called SI Piggyback.
SI Piggybacks are available at the moment for the 3 standard Ethernet versions 10Base5 (A UI), 10Base2
and 10BaseT. Additionally, an isolated RS485 interface is available with 9-pin D-Sub frontpanel connector which is especially designed for Fieldbus applications available as well as a standard RS232 interface. for more information, please refer to the SI Piggyback Appendix in this manual.
The three serial ports, based on the SCC2, SCC3 and SCC4 lines of the 68EN360, are configured by default as RS232 ports. They support full modem handshake and can be re-configured by other piggybacks
in the SC product line. These ports are usually used for communication between systems or to subsystems/modems.
In addition, the signals of SCC2, SCC3 and SCC4 are routed to the CXC. This is mainly useful for physical adaptions where the application requirements cannot be met using SC piggybacks.
The port based on the SMC is fixed to RS232 interfaces. This port supply RxD/TxD interfaces with software handshake (XON/XOFF) capability. Usually, this port is used as terminal/debug port.
The Controller Extension Connector (CXC) is a local mezzanine interface. The CXC contains a 16-bit
data bus, 7 address lines and 8 decoded chip select lines. In total, there are 8 control signals. The base
address of the CXC can be programmed via the CS5 line of the 68EN360. The 8 CXC chip selects
(CXC_CS0 - CXC_CS7) occupy 256 Bytes each and have an address length of 400H (512 Bytes).
Furthermore, the CXC contains 4 IRQ capability (4 edge sensitive IRQs), DMA capability (1 channel,
DREQ + DACK), serial ports (3 channels, Full MODEM) and a set of parallel port signals. These special CXC functions are based on the 68EN360 resources.
For general CXC information, including generic pinouts and a comparison of the 68(EN)360 and 68302
CPU pinouts on the CXC, please refer to the CXC Specification User’s Manual and the CXC Appendix
attached to this manual.
user defineda5NoPB0Used on board SPI SEL for EEPROM.
Pin Nr.
a6NoPB1SPI Clk: can be used if an ‘SPI SEL’
a8NoPB2SPI TxD: can be used if an ‘SPI SEL’
a9NoPB3SPI RxD: can be used if an ‘SPI SEL’
a10NoPB8See 68360 User Manual
b11NoPB10Used on board SMC2 (Transmit)
c1NoPB6Used on board SMC1 (Transmit)
c4NoPB11Used on board SMC2 (Receive)
c10NoPB7Used on board SMC1 (Receive)
68302 HW
Compatible
68(EN)360
Port
Comment
Cannot be used on CXC
See note 2
other than PB0 is used
other than PB0 is used
other than PB0 is used
See note 1
See note 1
See note 1
See note 1
Notes:
Reserved Pins
1) On a standard VM162/VM172 board, these signals are already used for UART ports at BU7 and
BU8.
2) On a standard VM162/VM172 board, these signals are used for SPI to which the EEPROM is
already connected. PB0 is chip select of the EEPROM.
3) On PA13, a 24 MHz clock signal is routed via jumper J11. This signal is always needed for PEP
standard software (serial drivers).
Dual Functioning Signal Pins
4) These signals are routed both to the base board SI Interface connector (ST5C) and the CXC connector and can only be used by one or the other and not both at the same time.
Due to this, a conflict exists if the SCC4 port is to be used with the SI232 piggyback and CXC boards
(such as CXM-SIO3), as both boards access this port. The SCC4 port can, ther efore, not be used at
The CXC ports SER1, SER2 and SER3 are equivalent to ports SCC2, SCC3 and SCC4 resp. on the
68xx360.
With regard to special CXC capabilities, the CXC pinout on the VM162/VM172 has been developed to
provide maximum compatibility between the standard CXC functions. In addition, all signals are available in order to configure 2 time division multiplexed channels via the CXC (ISDN, PCM, GCI and so
on). Multi-function pins with incompatible functions with regard to the 68302 and 68EN360 (called
user defined in the generic CXC specification) are not part of the VM162/VM172 CXC specification.
Although the SMCs are configured on the base board, these ports are also integrated on the CXC. This
is because of possible ISDN applications where SMCs can be integrated and other protocols supported
by the 68EN360.
Note: If the RCLK2 signal (CXM pin c16) is required, jumper J11 (24 MHz clock) must be opened and
the serial drivers delivered by PEP modified.
The VM162/177 interface up to two IndustryPacks (IPs, referred as IPa and IPb).
The implementation of the IP interfaces is according to the VITA-4 standard for IP modules.
The VM162/177 (referred also as “IP-Carrier“ in this chapter) interfaces the tw o IP slots through a programmable IP controller.
Through this controller a lot of operating functions can be controlled individually per slot. For example,
IP bus speed, interrupt priority, memory space, Reset etc. can be programmed individually per IP slot.
The base addresses for the different IP address spaces like I/O, ID and memory space are fixed within
the address map.
2.10.2 Features
•up to standard IPs or 1 double-sized IP
•supports I/O, ID, Memory and Interrupt Acknowledge cycles
•supports 8-bit and 16-bit IP cycles
•IP slot control register, set of two per IP slot
•programmable IP bus speed 8 or 32 MHz
•individual IP bus speed per slot
•2 interrupts per IP, programmable level from 1 to 7
•up to 8 MB linear memory space per IP, programmable
•separate buffers for each IP slot for data, clock and control signals
•overload protection (fuse), separate per IP slot
2.10.3 Optional IP features, not supported
•32-bit IP cycle
•DMA transfer (compelled DMA)
Note: Since the VM162/177 provides two independant DMA channels which can also be used for memory-to-memory transfere all over the boar d, these DMAs can also be used to transfer data to the IPs.
From the IPs point of view these transfers do not differ from cycles initiated by the CPU.
The IP interface controller builts the bridge between the local CPU and the IP bus. Therefore, it synchronizes IP bus cycles with CPU cycles and performs the corresponding bus protocols.
Besides, the IP interface controller provides a set of two control registers. Each set is dedicated to one
IP slot. W ith these control registers reset, interrupt control, b us speed and memory space can be controlled individually for each IP slot.
Electrically, the IP interf ace controller consists of a FPGA and external high performance b uf fers for IP
bus and control signals.
2.10.5 IP Reset Control
By setting/resetting bit 4 of the IP slot control register an IP module can be enabled or disabled at any
time. The Reset Control Bit reflects directly the status on the reset line (low active).
Note: After a boar d reset (e. g. power up, VME SYSRES, Watchdog) the IP reset line becomes active by
default (low active). Therefor e, the Reset Control Bit has to be set to 1 in advance to further operations
with the IP module.
2.10.6 IP Clock Control
After a board reset the IP clock is set to 8 MHz by default. After detecting that the assembled IP module
supports also 32 MHz (by reading information stored within the module’s ID PROM) the IP clock can
be switched to 32 MHz by setting bit 5 of the IP slot control register.
On the IP interface controller there are implemented in parallel separate clock generators and state machines for the different IP bus speeds. Therefore, each IP slot can operate at its individual bus speed.
2.10.7 IP Interrupt Control
Both IP IRQ lines INT0 an INT1 can be used to generate interrupt requests. By programming the IRQ
level bits the interrupt priority of the corresponding IP slot can be selected in a range of 1 to 7 (low-tohigh priority).
Each IP slot provides two interrupt request lines per definition. Both IRQ lines INT0 and INT1 are supported per slot by the IP interface controller but, for selecting IRQ priotity there are the following restrictions.
-> INT1 IRQ priority can be set only to level 1, 3, 5 or 7.
-> INT0 IRQ priority can be set only to level 2, 4 or 6.
If both IP slots use the same IRQ level, IP slot a has automatically a higher priority than IP slot b.
Note: A separate Interrupt Enable bit for each INT must be set before any IP interrupt can be passed
from the corresponding IP slot to the CPU.
After a board reset the complete IP interrupt control logic is reset by default. That means the Interrupt
Enable bit is cleared as well as the IRQ level bits ( BIT 2-0).
After a board reset the IP Memory Size is set to 8 MB linear address space by default. By setting Bit 3
of the IP Slot Control register (Memory size bit) the linear addressable memory space can be reduced
from 8 MB to 1 MB.
If 1 MB is selected the whole IP memory address space of 8 MB is available further on. The currently
used memory page (1-of-8 1MB pages) is determined by the memory page bits within the Slot Control
register (Bit 2-0).
Note: This feature is implemented for compatibility reasons to further IP Carrier boards with reduced
address space.
2.10.9 IP Interface Address Map
IPa:
IPb:
Base Address
(HEX)
CE 00 08 00128 ByteD8-D16IP Slot a IO Space
CE 00 08 80128 ByteD8-D16IP Slot a ID Space
CE 00 09 01128 ByteD8IP Slot a Interrupt Control register
CE 00 09 81128 ByteD8IP Slot a Control ragister
D0 00 00 001 or 8 MBD8-D16IP Slot a Memory Space
Base Address
(HEX)
CE 00 0A 00128 ByteD8-D16IP Slot b IO Space
CE 00 0A 80128 ByteD8-D16IP Slot b ID Space
CE 00 0B 01128 ByteD8IP Slot b Interrupt Control register
CE 00 0B 81128 ByteD8IP Slot b Control ragister
SizePort WidthDevice
SizePort WidthDevice
Page 2- 32
D0 80 00 001 or 8 MBD8-D16IP Slot b Memory Space
Note: Whether 1 or 8 MByte memory address space is selected depends on the memory size bit within
the IP slot control register. Depending on the memory size bit, the memory page bits are relevant or not.
Default is 8 MByte, not paged.
INT1_EN0 -> IP interrupt request on INT1 line disabled
1 -> IP interrupt request on INT1 line enabled
INT1_IL2-0IP IRQ level for INT1 line (1 or 3 or 5 or 7)
INT0_EN0 -> IP interrupt request on INT0 line disabled
1 -> IP interrupt request on INT0 line enabled
INT0_IL2-0IP IRQ level for INT0 line (2 or 4 or 6)
The figure above shows the position of IP a and IPb on the VM162/177. Each IP is plugged into the board
via a pair of 50-pin IP connectors. The rear one (near to the VMEbus connector) connects the IP bus and
control signals whereas the other one (near to the frontpanel) carries the IP I/O signals.
The IP I/O signals are routed from the 50-pin IP I/O connector to a 50-pin flatcable connector and also
to the 50-pin frontpanel DSUB connector. There is a one-to-one correspondance between the pin (signal) numbers between the IP I/O connector, flatcable connector and DSUB connector.
The VM162/VM172 has four wire jumpers which can be configured by the user. Additionally, the
VM162/VM172 has a set of solder jumpers which are factory set. The list of default settings are shown
below.
3.1.1 Jumper Default Settings (Component Side)
VM162/VM172Chapter 3 Configuration
Jumper
J1OpenBoot from VMEbus memory disabled
J2OpenBoot from boot ROM disabled
J10SetOn-board reset generator to VME
J11OpenEnhanced CXC mode disabled
J8
Default
Setting
OpenProtective ground disconnected from signal ground
Description
(solder jumper)
3.1.2 Jumper Default Settings (Solder Side)
Jumper
J3
J12-J15
Default
Setting
Dependent on
board version
Dependent on
board version
Description
CPU type
CPU power supply
J5-J7
J4Set24 MHz Comm. Clock connected to 68EN360
J9OpenEEPROM write protection disabled
J161-3SRAM data retention on
J17OpenBERR1 timeout 8µs not selected
J18OpenBERR1 timeout 32µs not selected
J19 and J20
J21SetBERR1 timeout 128µs selected
J22SetVCB current test bridge
The VM162/VM172 normally boots from the FLASH memory on the DM60x piggyback. In some applications it may be useful to boot either from the VMEbus or the optionally assembled EPROM.
JumperSettingDescription
J1OpenBoot from VMEbus enabled
SetBoot from VMEbus disabledDefault
3.2.2 ROM Boot
JumperSettingDescription
J2SetBoot from boot ROM enabled
OpenBoot from boot ROM disabledDefault
3.2.3 Protective Ground - Signal Ground
JumperSettingDescription
J8SetProtective ground connected to signal ground
OpenProtective ground disconnected from signal groundDefault
3.2.4 VME SYSRES*
As long as the 5V supply is not within the VMEb us specification, the VM162/VM172 uses the VMEb us
RESET line. This behaviour may not be wanted in multi-master configurations and can be disconnected.
JumperSettingDescription
J10SetOn-board RESET generator to VMEDefault
OpenOn-board RESET generator disconnected from VME
The enhanced CXC describes the multiplexing of the CXC address lines in order to enhance the address
range to 16MByte. This is used today in conjunction with the CXM-PFB12 PROFIBUS board. Please
consult the relevant CXM User’s Manual to set the CXC mode.
The battery backup of the VM162/VM172 is connected to both the SRAM and RTC. This jumper gives
the user the possibility to disconnect the SRAM from the battery backup, giving the R TC longer backup
support.
JumperSettingDescription
J161-2SRAM data retention is off
1-3SRAM data retention is onDefault
3.3.9 BERR1 Timeout
This jumper sets the timeout of the BERR1 and can be used for debugging purposes.
Address range less than HEX 80 00 00 00 is to be initialized as cachable address areas and address range
greater than HEX 80 00 00 00 is to be initialized as non-cachable serialized address area.
VMEbus A24/D16 type, AM 1F-18
VMEbus A24/D16 type, AM 17-10
VMEbus A16/D16 type, AM 2D/29
VMEbus A24/D16 type, AM 3E/3D/3A/39
VMEbus A16/D32 type, AM 2D/29
VMEbus A24/D32 type, AM 3E/3D/3A/39
VMEbus A32/D16 type, AM 0E/0D/0A/09
VMEbus A32/D32 type, AM 0E/0D/0A/09
VMEbus A32/D32 type, AM 0E/0D/0A/09
68360 CS1 mirrored DRAM
68360 CS0 mirrored FLASH
68360 internal RAM/REG
68360 CS4, SRAM
68360 CS5, CXC
68360 CS6, RTC
68360 CS7, Board Regs. Area
IndustryPack, slot a, I/O area & control
IndustryPack, slot b, I/O area & control
D0 00 00 00
DE 00 00 00
DF 00 00 00
Note: CXC and ECXC address areas are exclusive to each other.
Enhanced CXC, 68360 CS5
IndustryPack, slot a, memory area
IndustryPack, slot b, memory area
Page 74
VM162/VM172Chapter 4 Programming
4.2 Initializing the 68EN360
Many components of the VM62(A) / VM42(A) are controlled by the MC68EN360. Due to this fact, this
chip requires a special initialization sequence before any other software can be started.
The following list describes how the initialization must be performed on the VM62(A) / VM42(A).
Note: The order of the initialization listed below must not be changed, otherwise erratic behaviour of
the board may result.
1) Set DPRBASE to 0x0000000x7000001.L -> MBAR (in CPU space!)
Example
move.l#7,d1select CPU space
move.l#$7000001,d0value to write to MBAR
movecd1,dfcselect CPU space
moves.ld0,MBARset MBAR
2) Clear reset status register0xFF.B -> RSR
3) Set system protection register
• bus monitor enabled, 128 system clocks timeout0x7.B -> SYPCR
4) Set module configuration register
• bus request MC68040 arbitration ID: 3
• arbitration synchronous timing mode
• bus clear out arbitration ID: 3
• SIM60 registers are Supervisor Data
• BusClear in arbitration ID: 3
• interrupt arbitration: 30x60008CB3.L -> MCR
5) Set PLL enabled and lock access0xC000.W -> PLLCR
6) Lock access to clock divider control register0x8000.W -> CDVCR
• enable autovector on levels 2, 3, 5 and 70xAC.B -> AVR
11)Configure Chip Select lines (General Example)
Note: It is important that the Chip Select lines are initialized in the sequence shown below. It should
also be noted that the following values need to be changed for various configurations of the on-board
memory (see note below).
• CS0: FLASH to 0x4000000, negate timing ‘0400x4000011.L -> BR0
• CS0: size to 16 MByte, port size 32 bit, tcyc 30x3F000000.L -> OR0
• CS1: size to 64 MByte, port size 32 bit, tcyc 0, bcyc 10xC000001.L -> OR1
• CS1: DRAM to 0x0, burst acknowledge ‘0400x21.L -> BR1
• CS2: size to 16 MByte, port size external, tcyc 10x1F000006.L -> OR2
• CS2: DMA - VME to 0x870000000x87000001.L -> BR2
• CS3: size to 16 MByte, port size external, tcyc 10x1F000006.L -> OR3
• CS3: AutoBahn to 0x90000000x9000001.L -> BR3
• CS4: size to 16 MByte, port size external, tcyc 10x1F000006.L -> OR4
• CS5: size to 8 kByte, port size external, tcyc 10x1FFFE006.L -> OR5
• CS5: CXC to 0xBF700000xBF70001.L -> BR5
• CS6: size to 2 kByte, port size external, tcyc 10x1FFFF806.L -> OR6
• CS6: RTC to 0xC0000000xC000001.L -> BR6
• CS7: size to 16 MByte, port size external, tcyc 10x1F000006.L -> OR7
• CS7: on-board control to 0xD0000000xD000001.L -> BR7
Note
CS1 and CS4
It is important that the values of these Select Lines are changed later (after RAM search) to the actual
configuration of the on-board memory. For example:
•A board with 16 MByte DRAM --> OR1: 0xF000001.L
•A board with 256 kByte SRAM --> OR4: 0xFFC00006.L
12)The system software normally determines the real sizes of the DRAM and SRAM installed and
re-programs the CS lines accordingly. The simplest way to achieve this is to write a pattern to the
first location and then search for that pattern at meaningful distances (e.g. 256kB, 512 kB, 1 MB,
2 MB, 4 MB, 8 MB, 16 MB). If the pattern is found at such an address, the original pattern must be
altered and then checked to see if the mirrored pattern changes in the same way. If not, the search
must be continued or, if yes, the memory size is found.
Note: The MC68040 normally operates in non-serialized mode, meaning that read accesses can occur
before write accesses, even if they are programmed in the opposite way. It is therefore recommended
that especially when changing the patterns, a ‘nop’ instruction should be inserted, as this forces all pending cycles to be completed.
13)Set vector and IRQ level for internal IRQ requester
• vector base = 0x40
• level = 40x8040.L -> CICR
Page 4- 6
14)Set SDMA configuration register0x770.W -> SDCR
15)If the card is in the first slot, enable the VMEbus monitor
If bit 4 in VCSR is set then set bit 5 in VCSR
16)Enable on-board I/O bus error timerSet bit 2 in BCSR
Before the system enables any cache present, they should be invalidated using:
cinva bc
Furthermore, the complete address range should not be cachable, as caching only makes sense on
DRAM and FLASH EPROM. Other areas should nev er be cached and must be switched to serialized in
order to prevent the MC68040/MC68060 from mixing up read and write cycles.
The easiest way of doing this is to make use of the DTT0 register, in the following way:
move.l#$807FE040,d1
movecd1,dtt0
The code above sets all addresses below $80000000 to cacheable and non-serialized, whereas all
addresses above are set to non-cacheable and serialized.
Accesses to the DRAM and FLASH should be made at $0 and $4000000. All other components addressed by the MC68EN360 should always be accessed over the mirrored area with $Cxxxxxxx, as described in the Address Map Section.
A number of piggybacks have been developed for PEP’s range of CPU boards to enhance their memory capabilities.
•DM600 piggyback with 4 MByte DRAM and 1 or 4 MByte FLASH;
•DM601piggyback with 16 MByte DRAM and 1 or 4 MByte FLASH;
•DM602 piggyback with 1 MByte DRAM and 1 MByte FLASH;
•DM603 piggyback with 32 MByte DRAM and 1 or 4 MByte FLASH;
•DM604 piggypack with 8 MB DRAM and 1 or 4 MByte FLASH.
Each of the piggyback options are described in the following sections.
Ordering Information
NameDescriptionOrder No
DM600Memory piggyback with 4 MByte DRAM and 1 MByte FLASH11852
DM600Memory piggyback with 4 MByte DRAM and 4 MByte FLASH11853
DM601Memory piggyback with 16 MByte DRAM and 1 MByte FLASH;11854
DM601Memory piggyback with 16 MByte DRAM and 4 MByte FLASH;11855
DM602Memory piggyback with 1 MByte DRAM and 1 MByte FLASH;12765
DM603Memory piggyback with 32 MByte DRAM and 512 kByte FLASH13027
DM603Memory piggyback with 32 MByte DRAM and 4 MByte FLASH13627
DM604Memory piggyback with 8 MByte DRAM and 1 MByte FLASH15911
DM604Memory piggyback with 8 MByte DRAM and 4 MByte FLASH15912
A number of piggybacks have been developed for PEP’s range of 6U CPU boards to adapt the multi-protocol serial
channels of the 68EN360 controller chip to one of the following physical interfaces:
•Ethernet 10Base2 (Thin) with SI6-10B2 piggyback;
•Ethernet 10Base5 (AUI) with SI6-10B5 piggyback;
•Ethernet 10BaseT (Twisted Pair) with SI6-10BT piggyback;
•RS485 optoisolated (PROFIBUS) with SI6-PB485-ISO piggyback.
Each of the piggyback options is described in the following Sections.
4
Ordering Information
NameDescriptionOrder No
SI6-10B210Base2 (Thin) Ethernet (cheapernet) interface with RG58 (coax) connector15058
SI6-10B510Base5 (AUI) Ethernet interface piggyback with 15-pin D-Sub connector15059
SI6-10BT10BaseT (Twisted pair) Ethernet interface piggyback with RJ45 connector15060
SI6-DUMMYFront panel without network interface(s) 6 50-pin D-Sub ModPack signal
output
15061
SI6-PB485-ISORS485 optoisolated interface piggyback for 2 wire half-duplex (e.g.
The SI6-10B2 is a physical Cheapernet (10Base2) interface to the 68EN360 Controller chip. It connects one of the range
of PEP CPU boards to a 50Ω coax cable via an RG58 BNC ‘T’ connector.
The SI6-10B2 has two LEDs fitted; a red LED indicates collision detection and a yellow LED for data.
1.1 Specifications
On-board termination
Max. Baud Rate
1.2 Connector
None (Cheapernet cable is terminated at both ends)
The SI6-10BT is a physical twisted pair (10BaseT) interface to the 68EN360 Controller chip. It connects one of the range
of PEP CPU boards to an unshielded 100Ω twisted pair cable via an RJ45 telephone jack.
The SI6-10BT has two LEDs fitted; a red LED indicates collision detection and a yellow LED for data.
The SI6-10BT is an RS485 optoisolated interface piggyback for 2-wire half-duplex (PROFIBUS) connection. It has one
LED fitted indicating data transmission.
4.1 Specifications
On-board termination
Isolation Voltage
Max. Baud Rate
4.2 Connector
150Ω, jumper selectable
Optocoupler specified up to 2.5 kV
10 Mbit/s as specified by Ethernet
Pin No.SignalDescription
1
2
3
4
5
6
7
8
9
Page SI6- 6
SHIELDShield, Protective Ground resp.
RPReserved for power
RxD+/TxD+Receive/Transmit Data +
CNTR+Control +
DGNDData Ground
VPVoltage Plus
RPReserver for power
RxD-/TxD-Receive/Transmit CNTR-Control -
BOOTSTRAP LOADER FOR VM(6)62, VM(6)42, VSBC 32 AND IUC-32
4
1 Introduction
The Bootstrap Loader is a stand alone software located in FLASH memory which allows the user to safely update the contents of the FLASH and delay the boot process for a specified time.
The Bootstrap Loader has the capability of programming FLASH memory from MOTOROLA S-records or from an absolute address. If the programmed image does not work, the Bootstrap Loader can be entered again. The memory contents
can be examined and another programming cycle initiated.
The Bootstrap Loader is delivered already installed in DM60x memory piggybacks.
Please read this user manual before reprog}amming any FLASH memory.
WARNING !
When programming FLASH memory , *NEVER* pr ess the RESET button or cyole power! This may damage the Bootstrap Loader and will consequently leave the board unusable due to damaged FLASH
contents. The ABORT button may be used to cancel a running operation.
After system reset, the Bootstrap Loader is started. It searches the FLASH memory area for a valid start key. If this start
key is found, the Bootstrap Loader checks the 'BootWaitTime' from serial EEPROM. If the time is valid, the continuation
of the boot process is delayed by this time while flashing the green front panel LED to indicate that the system is alive but
waiting for continuation. If the time is not valid, a default of 5 seconds is used. After the BootWaitTime has passed, the
program in FLASH is started.
The Bootstrap Loader has two modes of operation: non-interactive start mode as described abov e and the interactive command mode.
For normal board operation, only the non-interactive start mode is used to start a program in FLASH. This is done automatically without any user interaction. The interactiv e command mode is used to re-program the FLASH memory contents
or change the BootWaitTime.
The serial term port operates at 9600 Baud, 8 bits / character, 1 stop bit and no parity.
2.2 Entering the Command Mode
There are two possible cases:
1)
lf no valid start key was found, the Bootstrap Loader's command mode is entered automatically
If the user wants to enter the Bootstrap Loader manually (e.g. for re-programming the FLASH contents) he must use the
ABORT button on the front panel.
Note: The ABORT button must not be pushed until the green LED appears, because this button generates an NMI and the
exception vector tables must be initialized correctly to serve this NMI. Pressing the ABORT prior to the green LED leads
to HALT in most cases. In this case, press the RESET button and try again.
The ABORT button must, however, be pushed before the green LED stops flashing (BootWaitTime), because system contr ol
is passed to the downloaded binary image afterwards. The LED is cycled every 0.25 sec so if 1 second is specified as Boot
WaitTime, the LED will only flash 2 times.
CTRL-x deletes the complete input line while CTRL-a restores the last input line.
.
1)
The start key is a special combination of data appended at the end of the load program.
The image must be compiled / linked to run from the FLASH base address 0x4000000. The image must start with the ResetSP / ResetPC vectors as usual for ROM / FLASH images on 68000 processor boards.
A binary image must be converted to Motorola S-records or loaded to a VME memory board with battery-backup, FLASH
or EPROM population.
4
3.2 Programming with Motorola S-Records
Programming is done with the If command.
The If command accepts S1, S2 and S3 records. Operation is terminated by the appropriate S9, S8 or S7 record. Other
types of records are ignored.
The checksum of every record is checked; bad records are refused by the Bootstrap Loader. The address range of every
record is also checked; records that try to overwrite the Bootstrap Loader are refused. Additionally, every record must
match the programmable area exactly. To give the user an overview of the available ranges, the startup banner includes
address information.
If Sl or S2 record input is preferred, please note that these records only include 16 and 24-bit wide addresses. Therefore,
in order to reach the FLASH area an address offset must be specified using the '-o=...' option of the If command. Additionally, it must ensured that the code is not larger than the covered address range.
Note: The If command cannot be used to provram Motorola S-records to RAM areas.
For the neccessary serial connection, the lower (term) or upper (serO) RJ12 front panel connectors can be used. The serO
port should be preferred because in this configuration it is possible to monitor the progress of the operation via the term
port.
If not otherwise specified, sectors which are not touched by the programming operation are not erased. If you want to erase
all sectors while programming, the '-c' option can be specified along with the If command. This is useful for software which
searches memory during startup and should not find any old modules (e.g. OS-9).
Make sure that the XON/XOFF protocol is used on the host side. This is a fixed setting and cannot be changed. Additionally, make sure that your host does not stop transmission after a number of lines (e.g. OS-9: use the 'nopause attribute).
Serial parameters can be modified with the pf command.
The host is assumed to be an OS-9 development system. A serial cable is used to connect the ser0 port of the board to program to t0 of the development system. Additionally , we assume that we want to program a PEPbug image which is available as a file 'pbVM42' in a binary image format. The serial connection should run at 38400 Baud. The following steps must
be performed:
Host:
xmode /t0 baud=38400 nopause
iniz /tO
Target:
pf ser0 38400
lf -u
Host:
binex -s3 -a=4000000 pbVM42 >/t0
Example 2:
The host is assumed to be a PC with W indo ws, Windows95 or WindowsNT. A serial cable is used to connect the ser0 port
of the board to program to COM2 of the PC. Additionally, we assume that we want to program a Motorola S-record built
for address 0, e.g the VxWorks file bootrom.hex. The serial connection should run at 19200 Baud. The following steps must
be performed:
Host:
In a DOS Window, configure the COM 2 port to the correct parameters:
mode com2: baud=19200 parity=n data=8 stop=1
Target:
pf ser0 19200 lf -o=4000000
Host:
type bootrom.hex >com2:
In both examples, the programming can be monitored over the term port. The characters displayed have the following
meaning:
None of the above characters indicate an error. The first sector (which includes Reset SP / PC) and the last sector (which
includes the Bootstrap Loader itself) are protected. These sectors are not immediately programmed like the other sectors.
The contents of these protected sectors are buffered in RAM and programmed at the end of the operation. This is done to
limit the time the Bootstrap Loader itself is not in FLASH or not startable, because if the Bootstrap Loader crashes during
this critical period of time, it will not start again afterwards.
4
WARNING
When programming FLASH memory , *NEVER* pr ess the RESET button or cycle power! This may damage the Bootstrap Loader and will consequently leave the board unusable due to damaged FLASH
contents. The ABORT button may be used to cancel a running operation.
‘-q’ suppresses all messages and warnings except error messages.
Programming over the term
the propagation of the process cannot be monitored.
It is recommended that by default the programming over the ser0port should be used.
If the process must be aborted, press the ABORT button and try again.
port is also supported, but in this case the loader programs in the background by default and
3.3 Programming from an Absolute Address
The second possibility to program FLASH memory is to program it from an absolute address. The image to program must
be located in a visible address range, for example on the VMEbus. A memory card with battery-backup, FLASH or
EPROM can be used to hold the image to program. If we assume that the image is located at 0x87000000 and is 0x123456
bytes large we must type the following at the command prompt of the Bootstrap Loader:
lf -m=87000000 -l=123456
The characters which are displayed now have the same meaning as if we are programming from S-records, but the time
needed for each step to complete may be longer because the loader tries to program with the largest possible block size that
it can manage.
Again, '-c' can be used to clear untouched sectors.
Background operation is not supported and it is also not possible to specify an offset.
The programming cannot be aborted with ABORT.
The command bw can be used to display / change the current BootW aitT ime. Available delays are 1-2-5-10-20-50 seconds.
Note: The BootW aitTime is stored in the boot section of the serial EEPROM. This section is validated with a CRC code to
avoid the setting of random parameters. If the CRC of the Boot section is not valid, the BootW aitTime can be changed, but
this change has no effect because the bw command does not validate an invalid CRC to avoid undesired side effects. In this
case, the default of 5 seconds is always used.
To validate an invalid CRC, the appropriate utility from an operating system must be used (e.g. ee_config from OS-9).
Without parameters, bw displays the current setting.
For <time> 1, 2, 5, 10, 20 and 50 may be specified as time in seconds. Other values are not supported.
4.2 Load Flash
Syntax
If [-ol=]<offset>] [-u] [-q] [-c] [-m[=]<adr> -I[=]<len]
Description
Without parameters, the FLASH is loaded using S-records over the term port.
'<offset>' is a signed 32 bit offset which is added to e v ery record and can be used to mo ve the S-records to the FLASH po-
sition.
Note:This ontion must be used if 51 or S2 records are used.
'-u' must be used to download over ser0.
'-q' suppress all messages except error messages.
'-c' clears all untouched sectors and leaves no old code fragments.
For a Load Flash from an absolute address, the -m / -I options must be used.
Without parameters specified, the FLASH contents starting at 0x4000000 are displayed. This function is not limited to
FLASH and other address ranges can be specified.
Note: The ResetPC in FLASH is not identical to the ResetPC from the programming source (S-records memory block).
Without parameters specified, the current serial port settings are displayed.
<port> specifies the serial port. Valid values are term or serO.
<baud> specifies the baud rate. The values 50, 75, 110, 134.5, 150, 300, 600, 1200, 1800, 2000, 2400, 3600, 4800, 7200,
9600, 19200 and 38400 Baud can be specified.
<bitschar> specifies the bits / character. Valid values are 7 or 8.
<parity> specifies if parity should be checked / generated. The value n specifies none, o for odd and e for even parity.
<Stops> specifies the stopbits which will be generated. Valid values are 1 or 2.
Note: No spaces are allowed between the options. Options must be separated with the '/'. Not all options must be specified,
but the '/' characters must be present to distinguish the differ ent options from each other. The sequence can be aborted after
every option.
Examples
Setting term to 300 Baud, 7 Bits/char, odd parity and 2 stopbits: