Quin Systems CPU360 Hardware Manual

Page 1
Quin Systems Limited
CPU360 Issue D/E Hardware Manual
Issue 4
June 2004
(MAN530)
Page 2
Quin Systems Limited
CPU360 Issue D/E Hardware Manual
Issue 4 April 2004 (MAN530)
Page 3
Copyright Notice
Copyright  2004 Quin Systems Limited. All rights reserved. Reproduction of this document, in part or whole, by any means, without the prior
written consent of Quin Systems Limited is strictly prohibited.
Hardware Issue
This manual reflects the Issue D/E CPU360 hardware.
Important Notice
Quin Systems reserves the right to make changes in the products described in this document in order to improve design or performance and for further product development. Examples given are for illustration only, and no responsibility is assumed for their suitability in particular applications. Reproduction of any part hereof without the prior written consent of Quin Systems is prohibited.
Although every attempt has been made to ensure the accuracy of the information in this document, Quin Systems assumes no liability for inadvertent errors.
Suggestions for improvements in either the products or the documentation are welcome.
Page 4
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 1
Contents
Contents 1 List of Figures 3
1. Introduction 4
2. Using the CPU360 5
2.1 Processor Selection 5
2.2 Software Control 5
2.3 Chip Selects 5
2.4 G64 Bus Address Map 7
2.5 I/O Address Map 8
2.6 68360 Internal Registers 9
2.7 Memory Control Signals 9
2.8 Memory Sizes 9
2.9 Communications Ports 10
2.10 Ethernet Port 10
2.11 Daughter Board Port 11
2.12 Serial Ports 12
2.13 Serial Eeprom 13
2.14 Other Signals 13
2.15 CANbus Ports 13
2.16 Daughter Board 13
3. Configuration 14
3.1 Eprom/Flash Pin 31 : J1 14
3.2 Eprom/Flash Pin 1 : J2 14
3.3 Dram Burst Addressing : J3 14
3.4 Serial Eeprom Write Protect : J4 14
3.5 Interrupt Configuration : J5 14
3.6 Reset and Watchdog : J6 15
3.7 Processor Configuration : J7 15
3.8 CIO Clock Frequency : J8 16
3.9 Serial Port A Override : J9 17
3.10 Static Ram Size : J10 17
3.11 CANbus Interrupts : J11 17
3.12 Jumper Locations 18
Page 5
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 2
4. Connections 19
4.1 Signal Names 19
4.2 Power Supplies 19
4.3 Serial Ports 19
4.4 CANbus 20
4.5 Daughter Board 21
4.6 Ethernet 21
4.7 G64 Bus 22
4.8 General Purpose I/O 23
4.9 Background Debug Port 24
4.10 JTAG Port 24
5. Diagnostics and Tests 25
5.1 Switch-on Self-Test 25
5.2 Entry to Flashboot Diagnostics 25
5.3 Update Commands 25
5.4 Exit to PTS code 26
5.5 LED functions 26
Index 27
Page 6
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 3
List of Figures
Figure 1. Address map 6 Figure 2. G64 bus address map 7 Figure 3. I/O address map 8 Figure 4. Interrupt configuration : J5 14 Figure 5. Reset and watchdog : J6 15 Figure 6. Processor configuration : J7 15 Figure 7. CIO clock frequency : J8 16 Figure 8. Serial port A override : J9 17 Figure 9. Static ram size : J10 17 Figure 10. CANbus interrupts : J11 17 Figure 11. Jumper locations 18 Table 12. CPU360 serial port connections 19 Table 13. CANbus connections 20 Table 14. Bitbus connections 21 Table 15. Ethernet AUI connections 21 Table 16. G64 bus connections : P1 22 Table 17. General purpose I/O connections : P2 23 Table 18. Background debug connector : P3 24 Table 19. JTAG test connector : P4 24
Page 7
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 4
1. Introduction
This document describes the Quin Systems CPU360 single board computer. The CPU360 module is a medium performance 32-bit processor module, based around
the Motorola 68EN360 integrated processor. It is designed specifically for standalone operation in rom-based embedded systems, and in particular is used in the PTS range of systems. It offers eprom/flash, dram and non-volatile memory, various serial ports, an Ethernet port with AUI and twisted pair interfaces, and two CANbus interfaces. It also has provision for an optional 68040 processor if more performance is required.
The CPU360 provides four 32-pin JEDEC sockets for eproms or flash roms, allowing a maximum of 4 Mbytes using 1M×8 devices. It normally has 1 Mbyte of dram, configured as 256k×32 in two devices, 128k bytes o f eeprom, and 128k bytes of battery backed sram. These are used for non-volatile data storage. It also has a small serial
eeprom device which is used to store the Ethernet physical address and any software license keys.
Four serial ports are available on the 68EN360 processor. One is dedicated to the Ethernet port, one is reserved for use with a protocol-specific daughter board, and the remaining two are configurable separately for RS-232 or RS-485 operation. A Z8536 device provides up to 20 digital input/output lines at LSTTL levels, and up to three counter/timers. A calendar/clock device with battery backup provides date/time information. A hardware watchdog timer is also available.
The Ethernet interface provides access to local area networks. It may be used with the onboard 10 base T twisted pair transceiver, or via the AUI port with an external transceiver for connection to other media such as thick or thin coax.
The two CANbus interfaces are compatible with the CAN in Automation (CiA) draft standard DS102 Version 2.0, CAN Physical Layer for Industrial Applications . They are electrically isolated and fully independent. Each has both a plug and a socket connected in parallel to allow for simple cable connection between units.
The board supports a range of daughter board communications modules made by Hilscher GmbH. These offer a range of communications protocols and interfaces, including Profibus and Interbus-S.
Offboard expansion is available via the G64 bus, which supports a wide range of third party input/output modules. It has a 16 bit data bus and a 16 bit address bus, and supports both synchronous and asynchronous bus cycles.
Page 8
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 5
2. Using the CPU360
2.1 Processor Selection
The 68360 processor config pins select the initial bus size, and whether it is in normal cpu or slave mode. For normal use with the cpu32+ processor core enabled, 32 bit rom chip select, set config210 to 100 by fitting links to jumper J7 pins 1-2 and 3-4. Also link J7 pins 7-8 so that all devices return DSACKn for 32 bit transfers. For use with the 68040 in companion mode, config210 should be set to 011 by removing links from J7 pins 1-2 and 3-4, and linking J7 pins 5-6. Also remove the link from J7 pins 7-8 as the 68040 only uses a single DSACK signal, and all transfers are 32 bits wide.
2.2 Software Control
The CPU360 board makes extensive use of the programmable features of the 68360 cpu and its system integration module (SIM). These must be correctly set up by any application or system software when the b oard starts up. A brief description of the various control lines used by the CPU360 is given in the following sections.
2.3 Chip Selects
The programmable chip select pins are used as follows :
CS0 eprom, 256k×32, 512k×32, or 1M×32 CS1 dram /RAS, 256k×32 CS2 sram, 128k×8, battery backed CS3 eeprom, 128k×8 CS4 I/O devices (RTC, CAN, CIO) CS5 G64 bus
Only the CS0 chip select is active when the processor starts after a hard reset. All other chip select address ranges and options must be set by the boot software. Note that the sram and eeprom devices are 8 bits wide, but are accessed on the 32 bit processor bus to allow for the optional 68040 cpu. This means that they can only be accessed on every 4th byte.
Page 9
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 6
Because the CPU360 module uses the programmable chip select outputs for the rom, ram and i/o areas, the address map is determined by the software at startup. A suggested address map is shown in the following table.
Figure 1. Address map
0x0
0x07FFFFFF
0x08000000
Eprom (max 2 M )
G64 bus
0xFFFFFFFF
Dram (1M)
Unused
0x085FFFFF
0x08600000
0x001FFFFF
0x00200000
0x01FFFFFF
0x02000000
0x030FFFFF
0x03100000
0x02FFFFFF
0x03000000
Sram (128k)
Eeprom (128k)
Unused
Unused
0x020FFFFF
0x02100000
0x0307FFFF
0x03080000
0x0317FFFF
0x03180000
0xFFFEFFFF
0xFFFF0000
0xFFFF084F
0xFFFF0850
I/O
0x06FFFFFF
0x07000000
SIM360 internal registers
0x07000FFF
0x07001000
Unused
Page 10
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 7
2.4 G64 Bus Address Map
The address map within the G64 bus address space is shown below. Note that the G64 data bus is 16 bits wide, but is accessed on the 32 bit processor bus to allow for the optional 68040 cpu. This means that G64 bus locations are accessed on alternate words.
Figure 2. G64 bus address map
0x08000000
0x082FFFFF
0x08300000
0x08FFFFFF
0x085FFFFF
0x08600000
Unused
G64 bus : VMA
0x084FFFFF
0x08500000
0x080FFFFF
0x08100000
0x083FFFFF
0x08400000
0x081FFFFF
0x08200000
Synchronous 2 MHz
G64 bus : VPA Synchronous 2 MHz
G64 bus : VMA Synchronous 1 MHz
G64 bus : VPA Synchronous 1 MHz
G64 bus : VMA Asynchronous
G64 bus : VPA Asynchronous
Page 11
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 8
2.5 I/O Address Map
The address map for the CPU360 I/O devices is shown below. Note that these devices are all 8 bits wide, but are accessed on the 32 bit processor bus to allow for the optional 68040 cpu. This means that the device registers are accessed on every 4th byte only.
Figure 3. I/O address map
0xFFFF0000
0xFFFF083F
0xFFFF0840
0xFFFFFFFF
Unused
82527 CAN controller 0
0xFFFF03FF
0xFFFF0400
0xFFFF084F
0xFFFF0850
0xFFFF07FF
0xFFFF0800
(256 bytes)
82527 CAN controller 1 (256 bytes)
RTC72423 real time clock (16 bytes)
Z8536 CIO (4 byte s)
Page 12
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 9
2.6 68360 Internal Registers
In the 68360 processor, the internal registers in the SIM module and the dual port ram for the communications processor module (CPM) occupy an 8k byte block. This block is located on any 8k byte boundary by programming the module base address register MBAR. The standard software in the PTS systems locates the internal memory at address 0x07000000.
The MBAR is located at address 0x0003FF00 in cpu space. Note that this does not conflict with the CS0 chip select address range, as any cpu space access to any global internal registers does not assert external chip select pins. Accessing the MBAR requires the use of the MOVES instruction with the SFC or DFC source/destination function code registers containing the function code for cpu space. Please refer to page 6-3 in the 68360 User’s Manual for more details.
2.7 Memory Control Signals
The port E pins need to be programmed for use with the memory configuration used on the CPU360 board by programming the port E pin assignment register PEPAR. Set bit 7 to 1 to enable /WE0-3 instead of A28-31. Set bit 6 to 1 to enable the AMUX function for dram address multiplexer control. Set bits 4 and 2 to 0 to select the /CAS0-3 functions for the dram column address strobes. For more details on setting up the memory controller and chip select pins, please refer to the 68360 User’s Manual, chapter 6.
2.8 Memory Sizes
The CPU360 issue D supports the following memory sizes.
EPROM 256k×32, 512k×32, or 1M×32 (four devices) DRAM 256k×32 or 1M×32 (factory fitted only) SRAM 128k×8 or 512k×8 (factory fitted only) EEPROM 128k×8, 256k×8, or 512k×8.
Note that the larger size dram and sram options must be specified when the CPU360 board is ordered, as they are surface mount packages and are soldered directly to the board.
Also note that the use of larger memory devices may require software changes to correctly set up the programmable chip select pins on the 68360 processor.
The CPU360 issue E supports the same memory, except that the EPROM is flash memory, factory fitted. Default is four devices giving 512k×32.
Page 13
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 10
2.9 Communications Port s
The serial communications ports on the CPU360 are very flexible, and use the CPM communications processor module on the 68EN360 cpu. The four ports are allocated as follows to the four serial communications controllers (SCCs) on the 68EN360.
SCC1 Ethernet SCC2 Daughter board (for example, isolated RS-485 for Bitbus) SCC3 Serial port B SCC4 Serial port A
The 68EN360 cpu has some software control over various functions of each port, usually by means of programmable output port pins.
2.10 Ethernet Port
The Ethernet port uses all of the signal lines available to SCC1.
PA0 RXD1 PA1 TXD1 PC0 TENA PC4 CLSN PC5 RENA PA8 TCLK1 PA9 RCLK1
The Ethernet transceiver device, the 68160, has several programmable functions. These are controlled by output lines on port B. Refer to the 68160 data sheet for more details.
PB10 Twisted pair enable PB11 Twisted pair auto polarity check PB12 /Twisted pair full duplex PB13 /Twisted pair heartbeat PB14 Auto twisted pair detect PB15 Loopback PB16 Standby
Page 14
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 11
2.11 Daughter Board Port
Serial channel SCC2 is connected to daughter board socket XS6. It uses the following port pins.
PA2 RXD2 PA3 TXD2 PC1 RTS2 PC6 CTS2 PC7 CD2 PA10 TCLK2 PA11 RCLK2 PB4 MODE0 PB5 MODE1
The function of these pins depends on the particular hadrware present on the daughter board. Standard daughter boards will be made available for specific communications interfaces as required. For example, a Bitbus interface board provides an isolated RS-485 interface with software control using the mode signals to select between synchronous or self-clocked modes, and the data rate for self-clocked operation. The daughter board uses XS3 and/or XS5 to bring its external signals out to two D type sockets on the CPU360.
Page 15
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 12
2.12 Serial Ports
The two standard serial ports use programmable RS-232/485 transceivers. These are controlled by output port signals from the processor, and need to be set up appropriately by the system software.
Port B uses the following pins.
PA4 RXD3 PA5 TXD3 PC2 RTS3 PC8 CTS3 PC9 CD3
Port A uses the following pins.
PA6 RXD4 PA7 TXD4 PC3 RTS4 PC10 CTS4 PC11 CD4
Each port may be set up for RS-232, RS-485 point-to-point (enabled), or RS-485 multidrop with tristate control. When RS-232 mode is selected, ports A and B support hardware handshake using the RTS/CTS signals, and an optional CD carrier detect signal for use with modems.
Port B (SCC3)
Mode PB8 PC2 RS-2320 RTS3 RS-4851 tristate control (0=enabled, 1=disabled)
Port A (SCC4)
Mode PB9 PC3 RS-2320 RTS4 RS-4851 tristate control (0=enabled, 1=disabled)
Port A also has a jumper to allow it to be forced into RS-232 mode if required. Normally a link is fitted to J9 pins 1–2 for software control as described above. If this link is removed, then port A is set to RS-485 mode. If the link is fitted to J9 pins 2–3, then RS-232 mode is selected.
Page 16
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 13
2.13 Serial Eeprom
The following port pins are used for the serial eeprom device. This is normally an SPI compatible device, a Xicor X25040, having a capacity of 4k bits (512×8).
PB0 /SPISEL serial eeprom enable PB1 S PICLK serial eeprom clock PB2 SPIMOSI data output to serial eeprom PB3 SPIMISO data input from serial eeprom
2.14 Other Signals
Other port lines are used as follows.
PA12 Green LED (low = on) PA13 Red LED (low = on) PA14 Hardware watchdog trigger PA15 Hardware watchdog status (low = watchdog tripped)
These red and green LEDs indicate start-up self-test in the PTS firmware: on together during test, then green only as the system runs.
2.15 CANbus Ports
The CPU360 module supports two separate CANbus ports. These use the Int el 82527 CANbus controller, which supports both CAN 1 and CAN 2 protocols. The hardware implementation of the physical layer is fully isolated and uses the Philips 82C250 transceiver which operates at a bit rate of up to 1Mbit/second. It complies with the CAN in Automation (CiA) draft standard DS102Version2.0, CAN Physical Layer for Industrial Applications.
The CANbus implementation requires an external power supply to provide power to the isolated transceivers. If the CANbus is disconnected, or the power supply is not present, then the CANbus interface will not operate. An optocoupler device is connected to the CANbus network power supply, and allows software to detect whether or not it is present.
2.16 Daughter Board
The CPU360 board supports a range of standard communications modules made by Hilscher GmbH. These offer several different protocols and interfaces, including Profibus and Interbus-S. The modules connect to the CPU360 board via daughter board connector XP1. XS2 and XS4 connect status and error signals to the front panel LED indicators. The communications link signals use XS5 to connect to one of the 9 way D sockets on the CPU360. The high speed communications modules use a local processor with a dual port memory interface to the CPU360. These use a local serial port to configure the communications module, which is via XS3 to the second 9 way D socket.
Page 17
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 14
3. Configuration
3.1 Eprom/Flash Pin 31 : J1
J1 selects the signal connected to pin 31 of the eprom or flash rom devices in sockets IC3-6. For 27C020 or similar eproms (256k ×8), link pins 1 and 2 only. For 27C040 eproms (512k×8) or larger, l ink pins 1–2 and 3–4. For all flash roms, no links should be fitted to J1.
3.2 Eprom/Flash Pin 1 : J2
J2 selects the signal connected to pin 1 of the eprom or flash rom devices in sockets IC3-
6. For most eproms and flash devices, no link should be fitted to J2. For 27C080 eproms (1M×8), link pins 1 and 2. For 29F040 flash roms, link pins 2 and 3.
3.3 Dram Burst Addressing : J3
Jumper J3 allows the dram memory to be configured for burst cycles when used with the optional 68040 processor. For normal operation with the 68360 processor, link pins 1–3 and 2–4. To allow burst cycle operation with the optional 68040 processor, link pins 3–5 and 4–6.
3.4 Serial Eeprom Write Protect : J4
To write protect the serial eeprom device IC16, fit a link to jumper J4.
3.5 Interrupt Configuration : J5
Jumper J5 is used to connect various interrupt sources to the seven processor interrupt inputs.
Figure 4 . Inte rrupt configura t ion : J5
The normal configuration is with the G64 bus /FIRQ interrupt connected to level 6, and the G64 bus /IRQ signal connected to irq level 2. The standard firmware supplied with the PTS system uses these interrupt levels.
/IRQ7 : 1 /IRQ6 : 3
/IRQ5 : 5
J5
2 : /G64NMI 4 : /G64FIRQ
6 : /COMIRQ (from daughter board) /IRQ4 : 7 /IRQ3 : 9 /IRQ2 : 11
8 : /COMIRQ
10 : /COMIRQ 12 : / G 64IRQ
/IRQ1 : 13 1 4 : /C IOIR Q
Page 18
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 15
3.6 Reset and Watchdog : J6
Jumper J6 sets up options for the hardware watchdog and reset device. Link pins 1 and 2 to give a manual reset signal to the processor. Link pins 3 and 4 to enable the external hardware watchdog. Link pins 5 and 6 to enable the external hardware reset to the processor. Pins 7 and 8 connect the rechargeable battery to the VBB supply rail for the battery backed memory and real time calendar/clock devices. The normal configuration is with links fitted to pins 5–6 and 7–8.
Figure 5. Reset and watchdog : J6
3.7 Processor Configuration : J7
Jumper J7 is used to set the processor configuration. For normal use with the 68360 cpu, link J7 pins 1–2, 3–4 and 7–8. For use with the optional 68040 cpu, link J7 pins 5–6 only. To disable the MMU on a full 68040 cpu, link J7 pins 11 and 12. This has no effect on the 68360 cpu, or on other variants of the 68040 such as the 68EC040 or 68LC040. For JTAG testing, link J7 9-10 unless the 68040 is fitted.
Figure 6. Processor configuration : J7
2 : 0V 4 : CPU PA14 6 : /Hardware Reset
J6
/Manual Reset : 1
Watchdog trigger : 3
/Reset to CPU : 5
8 : Battery V +VBB battery supply : 7
2 : /Reset 4 : /Reset 6 : /Reset
J7
CONFIG0 : 1 CONFIG1 : 3 CONFIG2 : 5
8 : /DSACK1/DSACK0 : 7
68040 TDO : 9 10 : 68360 TDO
/MDIS : 11 12 : 0V
Page 19
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 16
3.8 CIO Clock Frequency : J8
Jumper J8 sets the Z8536 CIO peripheral clock frequency as a power of 2 division of the main processor clock. The normal configuration is for a CIO clock of 6MHz from a main processor clock o f 24MHz.
Figure 7. CIO clock frequency : J8
A link fitted connects the clock select line to 0V. The table below shows the clock division ratios for all link settings, and the peripheral clock speeds fo r a 24MHz main processor clock.
A B C Divisor 24 MHz in in in 2 12 MHz
out in in 4 6 MHz (default) in out in 8 3 MHz out out in 16 1.5 MHz in in out 32 750 kHz out in out 64 375 kHz in out out 128 187.5 kHz out out out 256 93.75 kHz
The clock oscillator enable input (pin S) is also brought to J8. This is to allow the clock to be disabled during board testing, and is not used in normal operation..
2 : 0V 4 : 0V 6 : 0V
J8
A : 1 B : 3
C : 5
8 : 0VS : 7
Page 20
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 17
3.9 Serial Port A Override : J9
The serial ports on the CPU360 module are configured by the software for RS-232 or RS-485 as required, to reduce the number of jumpers that need to be configured by the customer for different applications. Jumper J9 allows the software configuration for port A to be overridden for testing. For normal operation under software control, link J9 pins 1 and 2. To force RS-232 operation, link pins 2 and 3. To force RS-485 operation, remove the link.
Figure 8. Serial port A override : J9
3.10 Static Ram Size : J10
The CPU360 module can support a 128k×8 or a 512k×8 static ram device. Jumper J10 sets the appropriate address line configuration. For normal operation with a 128k ×8 device (e.g. HM628128), link J10 pins 1 a nd 2. For use with a 512k×8 device (e.g. HM628512), link pins 2 and 3. Note that the larger static ram is only available if specified when the CPU360 is ordered, as the device is in a surface mount package and is soldered directly to the circuit board.
Figure 9. Static ram size : J10
3.11 CANbus Interrupts : J11
Jumper J11 is used to set up the interrupt signals from the two CANbus interfaces. Note that the two interfaces may use the same interrupt or two different processor interrupts if required. The defaults shown cater for SERVOnet and ‘synchro2’ communications.
Figure 10. CANbus interrupts : J11
J9
CPU PB9 : 1
Port A select : 2
0V : 3
J10
Pull-up to +5V :
IC13 pin 30 : 2
A19 : 3
2 : /IRQ5 4 : /IRQ4 6 : /IRQ3
J11
/CAN0 I RQ : 1 /CAN0 I RQ : 3 /CAN0 I RQ : 5
8 : /IRQ5/CAN1 I RQ : 7
/CAN1 I RQ : 9 10 : /IRQ4 /CAN1 IRQ : 11 12 : /IRQ3
Page 21
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 18
3.12 Jumper Locations
Figure 11. Jumper locations
CPU360 module - component side
S2
Top
Bottom
S1
P1
P2
J9
J5
J8
J4
J6
1
1
1
S5
S6
S4
S3
J2
1
J1
1
J3
1
1
J7
1
P3
1
J11
1
P4
1
J1
1
Page 22
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 19
4. Connections
4.1 Signal Names
On all signals, a ‘/’ prefix is used to denote an inverted or active low signal. For example, the /VPA signal is the active low Valid Peripheral Address signal on the G64 bus.
4.2 Power Supplies
The power supplies to the CPU360 module are connected via the 64 way G64 bus connector P1 and the general purpose I/O connector P2. The relevant pins are as follows:
0V P1 pins 1a, 1b, 32a, 32b
P2 pins 1a, 1c, 32a, 32c
+5V P1 pins 31a, 31b
P2 pins 2a, 2c, 31a, 31c +12V P1 pin 30a, P2 pin 30a –12V P1 pin 30b, P2 pin 30c
Where the CPU360 is used as a Machine Manager, these supply rails are given by a dedicated backplane, taking +24 volts input.
4.3 Serial Ports
The following table shows the CPU360 serial port connections on the 9 way D sockets in position S4. Port A uses the lower socket, and port B uses the upper socket.
The normal configuration in the PTS systems is for RS-232 signals on port A, the main terminal port, and RS-485 signals on port B for the Operator’s Panel. The serial port transceivers are software controlled.
Pin no. Signal Pin no.
Signal
RS-232 RS-485
1 High termination 6 CD 2 TxD 7 RTS /TxD 3 RxD 8 CTS /RxD 4 Low termination 9 50V
Table 1: CPU360 serial port connections
Page 23
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 20
4.4 CANbus
The CPU360 has two double 9 way D plugs and sockets for two separate CANbus interfaces. Optional software will allow multiple PTS systems to be linked together via CANbus. This will support motor synchronisation between similar systems (peer to peer operation) and use of the CPU360 to supervise a number of CANbus slave modules. CAN interface 0 uses the plug and socket in the S5 position, while CAN interface 1 uses those in the S6 position. The plug and socket are connected pin-to-pin, to allow a simple daisy chain connection between several units using a standard cable assembly.
The connections for the CANbus interfaces on the front panel 9 way plugs and sockets are shown below. Note that these comply with the CAN in Automation (CiA) draft standard DS102 Version 2.0, CAN Physical Layer for Industrial Applications.
Note that the CANbus interfaces require an external power supply to power the isolated network transceivers. This may be connected via any of the normal D type connectors, or it may be connected on the general purpose i/o connector P2. The CANbus power connections on P2 are as follows:
CAN0 V+ P2 pins 25a, 25c CAN0 0V P2 pins 26a, 26c CAN1 V+ P2 pins 27a, 27c CAN1 0V P2 pins 28a, 28c
Where the CPU360 is used as a Machine Manager, the dedicated backplane provides terminal connections for these supplies.
Pin no. Signal Pin no. Signal
1Reserved 6GND 2CAN_L 7CAN_H 3CAN_GND 8ERROR 4Reserved 9CAN_V+
(7–13V)
5CAN_SHLD
(screen)
Table 2: CANbus con nec tions
Page 24
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 21
4.5 Daughter Board
Two additional 9 way D socke ts are fitted to the CPU360 in position S3 . These are provi ded fo r use by any option al daughte r board. The low er D socke t connects to daughter board socket XS5, and the upper D socket connects to daughter board socket XS3. Connections for these two sockets depend on the particular daughter board fitted.
The following table shows the external connections for the Bitbus interface daughter board on the 9 way D plug and socket in position S3. The Bitbus daughter board links the plug and socket together pin-to-pin to allow daisy chain cable connections.
Note that the Bitbus interface is fully isolated from the CPU360 power supplies.
4.6 Ethernet
The CPU360 provides an Ethernet interface using either a standard AUI port, or a twisted pair (10baseT) interface. The AUI port uses a standard 15 way D socket, and the twisted pair port uses an 8 way RJ-45 socket.
The pin functions for the AUI 15 way D socket are shown below.
Pin no. Signal Pin no. Signal
1 Link1 6 Link6 2 GND 7 GND 3 DATA* 8 DATA 4RTS* 9RTS 5RGND
Table 3: Bitbus connections
Pin no. Signal Pin no. Sig nal
1GND 9CL– 2 CL+ 10 TX– 3TX+ 11 4 GND 12 RX– 5 RX+ 13 +12V 6 GND 14 GND 715 8GND
Table 4: Ethernet AUI connections
Page 25
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 22
4.7 G64 Bus
The connections to the G64 bus (P1) are given in this table.
Signal Pin Signal Pin 0V supply GND 1a 0V supply GND 1b
Address line A0 2a Address line A8 2b Address line A1 3a Address line A9 3b Address line A2 4a Address line A1 4b Address line A3 5a Address line A1 5b Address line A4 6a Address line A1 6b Address line A5 7a Address line A1 7b Address line A6 8a Address line A1 8b Address line A7 9a Address line A1 9b Bus grant /BGT 10a Bus request /BRQ 10b Data strobe /DS0 11a Data st robe /D S1 11b
12a Bus busy / B BUSY 12b SYSCLK 13a E clock 13b Valid peripheral address /VPA 14a Reset output /RESET 14b MRDY or / DTA CK 15a Non-maskable in te rr upt /NMI 15b Valid mem or y ad d re s s /VMA 16 a In te r ru p t r equ es t /IR 16b Read/write R/W 17a Fast interrup t reques t /FIRQ 17b
18a 18b Data line /D8 19a Data line /D12 19b Data line /D9 20a Data line /D13 20b Data line /D10 21a Data line /D14 21b Data line /D11 22a Data line /D15 22b Data line /D0 23a Data line /D4 23b Data line /D1 24a Data line /D5 24b Data line /D2 25a Data line /D6 25b Data line /D3 26a Data line /D7 26b
27a 27b Chain out CHOUT 28a Ch ain in CHIN 28b
29a 29b +12V su pply 30a –12V supply 30b +5V sup pl y VCC 31a +5V supply VC 31b 0V supply GND 32a 0V supply GND 32b
Table 5: G64 bus connections : P1
Page 26
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 23
4.8 General Purpose I/O
The general purpose input/output connections on plug P2 are given here.
Signal Pin Signal Pin 0V supply GND 1a 0V supply GND 1c
+5V supply VCC 2a +5V supply VCC 2c Port line PA1 3a Port line PA0 3c Port line PA3 4a Port line PA2 4c Port line PA5 5a Port line PA4 5c Port line PA7 6a Port line PA6 6c Port line PC1 7a P or t line PC 7c Port line PC3 8a P or t line PC 8c 0V 9a 0V 9c Port line PB1 10a Port line PB0 10c Port line PB3 11a Port line PB2 11c Port line PB5 12a Port line PB4 12c Port line PB7 13a Port line PB6 13c Port line PC1 14a Port line PC 14c Port line PC3 15a Port line PC 15c 0V 16a 0V 1 6c
17a 17c
18a 18c
19a 19c
20a 20c
21a 21c
22a 22c
23a 23c
24a 24c
CAN0 V+ (7-13V) 25a CAN0 V+ (7-13V) 25c CAN0 0V 26a CAN0 0V 26c CAN1V+ (7-13V) 27a CAN1 V+ (7-13V) 27c CAN1 0V 28a CAN1 0V 28c
29a 29c
+12V supply 30a –12V s up ply 30 c +5V supply VCC 31a +5V supply VCC 31c 0V supply GND 32a 0V supply GND 32c
Table 6: General purpose I/O connections : P2
Page 27
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 24
4.9 Background Debug Port
The connections on the background debug connector P3 are given here. It is used during software development and testing.
4.10 JTAG Port
The connections on the JTAG test connector P4 are given here. They are compatible with equipment supplied by JTAG Technologies BV. It is used during board testing.
Test methods using access through the JTAG port are described in the Controller Repairs Test Specification, document reference TST026. For JTAG testing, remember to link J7 9-10 unless the 68040 is fitted.
Pin no. Signal Pin no. Signal
1 /DS 2 /BERR 3 0V 4 /BKPT/DSCLK 50V 6FREEZE 7 /RESET 8 IFETCH/DSI 9 +5V 10 IPIPE/DSO
Table 7: Background debug connector : P3
Pin no. Signal Pin no. Signal
1/TRST 20V 3TDO 40V 5TDI 60V 7TMS 80V 9TCK 100V
Table 8: JTAG test connector : P4
Page 28
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 25
5. Diagnostics and Tests
The flashboot functions of the CPU360 perform a brief self-test before starting the PTS code. Issue E also has features to enable firmware upgrade from the Toolkit 2000.
5.1 Switch-on Self-Test
The processor performs a brief memory self-test following switch-on. The LED numeric displays show testing status:
The memory address test turns on green and red LEDs L1:D and L2:D (below the Port A socket, furthest from the board).
On successful test completion the green LED L1:D is left on, the red L2:D is turned off.
In the event of test failure, both LEDs stuck on shows address problems, or both off shows data bus problems.
5.2 Entry to Flashboot Diagnostics
The entry to fla shboo t co de make s us e of Tool kit 2000 . Fro m sta ndard terminal, Firmware Upgrade and choice of Version 2.x use the ZP command to switch the PTS to the flashboot, at the same time as the terminal changes to 38400 baud. Or if there is no live PTS, the terminal anyway selects 38400 baud. From there, user sel ection of Unlock will await a PTS response to the UNLOCK string, then act as a terminal in the faster flashboot mode. The flashboot Help prompt is given:
Flash Boot Version 2.2 05/19/00 > h boot Restart the processor erase <start> <num> Erase <num> sectors from <start> program Program Flash memory verify Verify Flash memory >
Commands can be shortened to an initial letter, so ‘b’ and return will restart, or ‘m a’ and return sets a unit to be an axis module.
5.3 Update Commands
This card has four byte-wide flash chips, to give a 32-bit memory bus access. For erase program or verify the sector or base address is defined as a hexadecimal number of 64kbyte blocks per flash chip; but the numeric part of the file name extension defines the start number of 64kbytes in total for a file download. Thus to erase from or write starting at address $40000, the user would select sector 1 but a file with extension .b4 when prompted in response to the Erase or Program command.
Page 29
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 26
As far as possible the user can upgrade a unit or change mode without needing any deep understanding. The erase function is normally automatic before programming, and the user is given a file already named, so need not know the details of sector numbering. For a basic unit upgrade of version using Toolkit, the following steps are needed:
Select ‘Tools’, ‘PTS Firmware upgrade’, and choose Flashboot V2.x
If the terminal was not already live, select ‘Unlock’ and switch on when
prompted.
Select ‘Program’ and choose a file, then click ‘Download’. The toolkit issues
the necessary commands for erase and programming.
When complete, as indicated by the bar, ‘Close’ the download box. To exit now back to PTS code, select ‘Restart’ to run the new PTS firmware just loaded.
5.4 Exit to PTS code
This uses the b command from the menu. ‘Restart’ on the Toolkit window toolbar will give the b command and change the terminal baud rate back to 9600.
5.5 LED functio ns
LEDs are used as follows, working from top of the board, left (nearest board) to right:
Red L4 COM board communications error
Green L3:A COM board Ready: flashing = self-test error
Bitbus board, Async, 375 kbps speed: off = 62.5 kbps
L3:B COM board Run: flashing = protocol task error
Bitbus board: Synchronous, 2.4 mbps speed
L3:C COM board: not used
Bitbus board: transmit enable
L3:D COM board: data exchange
Bitbus board: data
Refer to the relevant COM or Bitbus board data for details.
Green L1:A Ethernet transmit
L1:B Ethernet receive L1:C Ethernet twisted pair: off = AUI L1:D Power-up self-test: see above
Red L2:A Ethernet collision
L2:B Ethernet jabber L2:C twisted pair polarity error L2:D Power-up self-test
Page 30
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Ltd Page 27
Index
68040 processor 5, 15
A
address map
G64 bus 7 I/O 8 memory 6
B
background debug port 24 battery configuration 15 board layout 18 burst cycles 14
C
CANbus 13
connections 20
network power supply 13 CANbus interrupt 17 chip selects 5 CIO clock frequency 16 communica ti ons ports 10 configuration 14 connections
background debug 24
CANbus 20
daughter board 21
Ethernet 21
G64 bus 22
general purpos e I/O 23
JTAG 24
power supplies 19
serial port 19
D
daughter board 13
connections 21 daughter board port 11 diagno stic L EDs 13 download
firmware 26 dram burst addressing 14
E
eprom/flash pin 1 14 eprom/flash pin 31 14 Ethernet connections 21
Ethernet port 10 Ethernet transceiver 10
F
firmware upgrade
upgrade 26 flashboot 25 force RS-232 on port A 17
G
G64 bus
address map 7
connections 22 general purpose I/ O connection 23
H
hardware watchdog 13
I
I/O address map 8 internal registers 9
interrupts
CANbus 17
configur ation 14
J
JTAG port 24 jumper l o ca tions 1 8
M
MBAR 9 memory address map 6 memory control signals 9 memory sizes 9
O
optional memory size 9
P
PEPAR 9 power supply connections 19 processor c onfi guration 15 processor selection 5
Page 31
Issue 4 CPU360 Hardware Manual
Copyright © 2004 Quin Systems Limited Page 28
Profibus 13 programmable chip selects 5
R
reset configuration 15 RS-232 12 RS-485 12
S
self-test 25 serial eeprom 13 serial eeprom write protect 14 serial port A override 17 serial port conne c tions 19 serial port 12 signal names 19 SIM module 9 static ram size 17 switch locations 18
T
tristate control 12 twisted pair 10
W
watchdog configuration 15 write protect serial eeprom 14
Loading...