Motorola reserves the right to make changes without further notice to any products herein to
improve reliability, function, or design. Motorola does not assume any liability arising out of the
application or use of any product or circuit described herein; neither does it convey any license
under its patent rights nor the rights of others. Motorola products are not designed, intended, or
authorized for use as components in systems intended for surgical implant into the body, or other
application in which the failure of the Motorola product could create a situation where personal
injury or death may occur. Should Buyer purchase or use Motorola products for any such
unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its
officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs,
damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any
claim of personal injury or death associated with such unintended or unauthorized use, even if
such claim alleges that Motorola was negligent regarding the design or manufacture of the part.
Motorola and the Motorola logo are registered trademarks of Motorola Inc.
Motorola Inc. is an Equal Opportunity/Affirmative Action Employer.
PowerPC is a trademark of International Business Machines Corporation.
This manual provides general information, hardware preparation, installation instructions, and
support information for the MPC505EVB Evaluation Board (EVB). The EVB lets you evaluate
PowerPC MPC505 RISC Microcontrollers.
1.2 FEATURES
EVB features include:
• MPC505 MCU running at 4-33 MHz (the default is 4 MHz)
• 512 kilobytes of flash memory (may be upgraded to 2 megabytes)
• 128 kilobytes of synchronous static RAM (may be upgraded to 1 megabyte)
• Serial port with 25-pin RS-232 connector to host computer
• MC68681 DUART providing two serial interfaces for RS-232 evaluation
• MC68HC711 MCU for the background debug mode port interface
• SCSI-2 port (optional)
• Expansion connectors for the MPC505 MCU signals
• 20-pin logic analyzer connectors for the MPC505 MCU signals
• 5-volt-to-3.3-volt converter for the MPC505 and signal buffers operation
• Reset data configuration switches
• Crystal or crystal oscillator operation
MPC505EVBUM/D1-1
GENERAL INFORMATION
1.3 GENERAL DESCRIPTION
The EVB is a low-cost tool for evaluating and debugging MPC505 MCU-based systems. The
MPC505 MCU device is an advanced single-chip MCU with on-chip memory and peripheral
functions. For more information refer to the PowerPC MPC505 RISC Microcontroller Technical
Summary (MPC505TS/D).
The EVB includes a monitor/debugging program (MPCbug) that demonstrates the capabilities of
the MPC505. You can debug user code under control of the MPCbug monitor program, assemble
it (as either a Motorola S-record, COFF, or ELF file) and download it to RAM.
The Motorola S-record format lets you encode programs or data files in a printable format for
transportation between computer systems. The transportation process can therefore be monitored
and the S-records easily edited. Refer to Appendix A for additional S-record information.
The EVB has one host computer port (P4), two RS-232C serial ports (P2 and P3) and a
background debug mode port (P5). The host computer port (DB-25 connector) is for
downloading S-records and communicating with the EVB via a host computer. You can
configure P4 as DTE or DCE. P4 is fixed at 19200 baud. P2 and P3 (DB-9 connectors) on the
EVB are RS-232C I/O ports. These two I/O ports let you evaluate MPC505 control of RS-232
communication. These ports can be configured as either data computer equipment (DCE) or data
terminal equipment (DTE) protocol via a set of switches. (An example of DCE is a modem and
DTE a computer terminal). These serial ports are available to you at all times; the development
system monitor, MPCbug, does not require these ports. Supported baud rates for P2 and P3 are
1200 to 19200. P5 (10-pin berg) lets you communicate with the MPC505 MCU in background
debug mode.
The EVB requires a user-supplied +5 Vdc power supply. The power supply voltage is converted
to +3.3 Vdc by the EVB on-board voltage converter. +3.3 Vdc is the voltage required by the
MPC505 MCU.
The EVB comes with a 4 MHz crystal and a socket for a crystal oscillator. The EVB is factory
configured to use the 4 MHz crystal as the input. You can increase the clock frequency up to 33
MHz (refer to paragraph 2.2.8).
All MPC505 MCU signals are available, unbuffered, on the expansion connectors and logic
analyzer connectors. The logic analyzer connectors let you monitor MPC505 MCU activity
during the development stage.
There are four flash memory devices (U24, U25, U27, and U28) on the EVB that provide 512
kilobytes of program storage memory. These devices are organized as long-word (32 bits wide).
You may program on-board flash memory using the MPCbug commands to download the
program via the debug port and run the programming algorithm. Flash memory may be upgraded
1-2MPC505EVBUM/D
GENERAL INFORMATION
to 2 megabytes by replacing the devices at locations U24, U25, U27, and U28 with larger
devices. The flash memory devices require +5 volts.
There are a total of eight 52-pin PLCC sockets on the EVB (U19, U20, U21, U22, U29, U30,
U31, and U32) for synchronous static RAM (SSRAM) devices. These sockets are paired as upper
and lower words and organized for long-word (32 bits wide) data transfers. Each pair is referred
to as BANKx.
The SSRAM factory default for the EVB is 128 kilobytes installed in BANK1 (U19 and U29).
These devices have 9 nanosecond access times and zero wait state cycles. On-board SSRAM may
be expanded to 256 kilobytes by replacing the devices at locations U19 and U29 with larger
devices.
Alternately, you may increase the amount of on-board SSRAM by populating U20, U21, U22,
U30, U31, and U32 with additional SSRAM devices. You may increase the SSRAM size up to 1
megabytes. (For information on increasing on-board memory see paragraph 2.2.9.)
The EVB includes an optional SCSI-2 port connection on the MPC505. The required parts are
not provided, and the user may add them if the SCSI port is needed. A list of the required parts
are provided in Chapter 2.
1.4 SPECIFICATIONS
Table 1-1 lists the EVB specifications.
Table 1-1. EVB Specifications
CharacteristicsSpecifications
MCUMPC509 MCU is used to emulate the
I/O ports:
I/O devices
Host computer
Temperature:
Operating
Storage
Relative humidity0 to 90% (non-condensing)
Power requirements+5 Vdc @ 2.0 A (min.)
Dimensions:9.173 in. X 6.299 in. (23.3 cm X 16.0 cm)
MPC505 MCU
RS-232C compatible
RS-232C compatible
+25C
0 to +50 degrees C
0 to +50 degrees C
MPC505EVBUM/D1-3
GENERAL INFORMATION
1.5EQUIPMENT REQUIRED
Table 1-2 lists the external equipment requirements for EVB operation.
Table 1-2. External Equipment Requirements
External Equipment
+5 Vdc power supply
SUN host computer
RS-232C cable assembly
1-4 MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
CHAPTER 2
HARDWARE PREPARATION AND INSTALLATION
2.1 INTRODUCTION
This chapter provides unpacking instructions, hardware preparation, and installation instructions
for the EVB. Chapter 6 is a description of the EVB Diagnostic Monitor (MPCdiag).
2.2 HARDWARE PREPARATION
This paragraph describes the preparation of EVB components prior to use. These preparations
ensure that the EVB components are properly configured. The EVB has been factory-tested and
shipped with factory-installed jumpers. Figure 2-1 shows the EVB connector, switch, and jumper
header locations. The EVB consists of:
• Dip switch DS1 lets you disconnect the on-board chip selects so you can use them on
the target board.
• Dip switches DS2 through DS5 define the data bus reset configuration word.
• Dip switch DS6 sets P2 ,P3 ,P4 and for BDM connector as DTE or DCE.
• Jumper headers J1 through J7 are for cust omizing EVB operation (described in Table
2-2 and paragraphs 2.2.1 through 2.2.5).
• Connector P1 is a SCSI interface connector (not populated).
• Connectors P2 and P3 let you connect RS-232C devices to the EVB for evaluation
purposes.
• Connector P4 is the serial port for communicating with the EVB using a host
computer. You must supply your own cable for communication with the EVB.
• Connector P5 is the debug mode port for communicating with the EVB in background
debug mode.
• Expansion connectors P6 and P8 let you connect MPC505 MCU signals to a target
board.
• Connector P7 is the EVB +5 Vdc power connector.
• POD1 through POD7 are 20-pin logic analyzer connectors for use in evaluating
MPC505 MCU signals.
• Switch SW1 lets you reset the MPC505 MCU.
• Switch SW2 lets you reset the EVB.
MPC505EVBUM/D2-1
HARDWARE PREPARATION AND INSTALLATION
Figure 2-1. EVB Connector, Switch, and Jumper Header Location Diagram
2-2MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
Table 2-1. Jumper Header Types
Jumper Header
TypeSymbolDescription
two-pin with solder
strap
two-pinTwo-pin jumper header and designated as JX (X = the jumper
two-pin with jumperTwo-pin jumper header with jumper, designated as JX (X = the
three-pinThree-pin jumper header, designated as JX (X = the jumper
three-pin with jumperThree-pin jumper header with jumper and designated as JX (X =
Two-pin plate through holes (without jumper header block) and
designated as JX (X = the jumper header number). Bus wire
soldered between the two pins of the plate through holes to
create a short.
header number). Use a fabricated jumper to create a short
between the two pins of the jumper header.
jumper header number).
header number). Use a fabricated jumper to create a short
between two of the three pins of the jumper header.
the jumper header number). To change the factory jumper header
configuration, move the jumper to the two desired pins.
Table 2-2. MPFB Jumper Header Descriptions
Jumper
HeaderTypeDescription
J1
Crystal clock
sourcr select
header
(XTAL)
J2
Clock
oscillator
source select
header
(EXTAL)
J3
Keep alive
power 2 select
header
MPC505EVBUM/D2-3
2 1
3 2 1
3 2 1
Bus wire soldered between pins 1 and 2 (factory default); selects the EVB
on-board 4 MHz crystal clock source.
Bus wire between pins 1 and 2 is removed; lets you select an external
clock source as the MCU EXTAL input signal.
Bus wire between pins 1 and 2; lets you select an crystal oscillator clock
source as the MCU EXTAL input signal. (You must remove the bus wire
between pins 1 and 2 on
Bus wire soldered between pins 2 and 3 (factory default); selects the EVB
on-board 4 MHz crystal clock source.
Jumper installed on pins 1 and 2 (factory default); keep alive power 2 is
active as long as power is applied to the EVB (+3.3 Vdc present on the
VKAPWR2 pin of the MCU).
+3.3 Vdc external power supply attached to pins 2 and 3; maintains MCUinternal RAM after EVB power is turned OFF.
Jumper installed on pins 1 and 2 (factory default); MCU-internal oscillator,
time base, and decrementer operates as long as power is applied to the
EVB (+3.3 Vdc present on the VKAPWR2 pin of the MCU).
+3.3 Vdc external power supply attached to jumper header J4 pins 2 and 3;
maintains MCU-internal oscillator, time base, and decrementer operates
after EVB power is turned OFF.
Jumper installed on pins 1 and 2 (factory default); jumper headers J6 and
3
J7 select the MCU clock mode. The state of this signal during reset selects
2
the source of the system clock.
1
Jumper installed on pins 1 and 2 (factory default); jumper headers J6 and
3
J7 select the MCU clock mode.
2
1
2-4MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
2.2.1Crystal Clock Select Header (J1)
Jumper header J1 connects the crystal clock to the MCU XTAL pin clock source. The drawing
below shows the factory configuration: bus wire soldered on pins 1 and 2. This configuration
selects the crystal clock source; crystal in socket at located Y1. When you want to use the clock
oscillator as the EVB clock, remove the bus wire on J1 and move the bus wire on J2 from pins 2
and 3 to pins 1 and 2 (see paragraph 2.2.2). This disconnects the MCU XTAL pin from the
crystal clock circuit at location Y1 and selects the clock oscillator (U7) as the MCU clock source.
The frequency of the crystal clock circuit is 4 MHz. The frequency of the crystal oscillator circuit
can be as fast as 40 MHz.
J1
Bus Wire
21
The EVB comes with a 4 MHz crystal and a socket for a crystal oscillator. The EVB is factory
configured to use the 4 MHz crystal as the input. You can configure the clock frequency up to 33
MHz by setting the MF bits (bits 9-12) and RFD bits (bits 28-31) in register SCCR at address
0x8007_FC50 (shown in Table 2-3).
Table 2-3. MF and RFD Bits Required to Set Clock Speed
Use jumper header J2 to select either a crystal or clock oscillator as the MCU clock source. The
drawing below shows the factory configuration: bus wire soldered on pins 2 and 3. This
configuration selects the crystal clock source; crystal in socket at located Y1. When you want to
use the clock oscillator as the EVB clock, move the bus wire on J2 from pins 2 and 3 to pins 1
and 2 and remove the bus wire on J1 (see paragraph 2.2.1). This disconnects the MCU XTAL pin
from the crystal clock circuit at location Y1 and selects the crystal oscillator (U7) as the MCU
clock source. The frequency of the crystal clock circuit is 4 MHz. The frequency of the crystal
oscillator circuit can be as fast as 40 MHz.
J2
321
Bus Wire
2.2.3Keep Alive Power 2 Select Header (J3)
Jumper header J3 provides power to the MCU-internal RAM module via the MCU VKAPWR2
pin. You may use either the on-board +3.3 Vdc (jumper on J3 pins 1 and 2) or connect an
external +3.3 Vdc power supply to J3 pins 2 and 3. An external +3.3 Vdc power supply on J3
pins 2 and 3 will maintain MCU-internal RAM data after EVB power is turned OFF. To attach
an external power supply to VKAPWR2: remove the jumper on J3 pins 1 and 2, and connect the
power supply ground to J3 pin 3 and +3.3 Vdc to pin 2.
Applying power to the EVB with J4 removed and no external
power supply attached to J4 will damage the MPC505 MCU.
Always keep a jumper or an external +3.3 Vdc power supply on J4
pins 1 and 2. If using an external power supply, apply VKAPWR1
before powering up the EVB.
2-6MPC505EVBUM/D
CAUTION
HARDWARE PREPARATION AND INSTALLATION
2.2.4Keep Alive Power 2 Select Header (J4)
Jumper header J3 provides power to the MCU-internal oscillator, time base, and decementer
modules via the MCU VKAPWR1 pin. You may use either the on-board +3.3 Vdc (jumper on J4
pins 1 and 2) or connect an external +3.3 Vdc power supply to J4 pins 2 and 3. An external +3.3
Vdc power supply on J4 pins 2 and 3 will maintain MCU-internal RAM data after EVB power is
turned OFF. To attach an external power supply to VKAPWR1: remove the jumper on J4 pins 1
and 2, and connect the power supply ground to J4 pin 3 and +3.3 Vdc to pin 2.
Applying power to the EVB with J4 removed and no external
power supply attached to J4 will damage the MPC505 MCU.
Always keep a jumper or an external +3.3 Vdc power supply on J4
pins 1 and 2. If using an external power supply, apply VKAPWR1
before powering up the EVB.
2.2.5Burst Memory Select Header (J5)
Unused.
CAUTION
MPC505EVBUM/D2-7
HARDWARE PREPARATION AND INSTALLATION
2.2.6System Clock Selection Headers (J6 and J7)
Jumper headers J6 and J7 let you define the system clock source. The factory configuration
(shown below) is for normal operation; a fabricated jumper on J6 and J7 pins 1 and 2. Refer to
Table 2-4 for configuring the system clock source.
Table 2-4. System Clock Source Configuration
MODCLK (J6)
Jumper Settings
1 and 2 (default)1 and 2 (default)Normal Operation
2 and 31 and 21:1 Mode
1 and 22 and 3SPLL Bypass Mode
2 and 32 and 3Special Test Mode
VDDSYN (J7)
Jumper Settings
System Phase-Lock-
Loop Options
J6
3
2
1
Fabricated Jumpers
2-8MPC505EVBUM/D
J7
3
2
1
HARDWARE PREPARATION AND INSTALLATION
2.2.7EVB LED Descriptions
There are three LEDs on the EVB. Their functions are:
• LD1 – 3.3 Vdc power: ON = 3.3 Vdc power is applied to the EVB.
• LD2 – Debug Mode: ON = MPC505 is in debug mode
• LD3 – +5 Vdc power: ON = power is applied to the EVB.
2.2.8Optional Memory Configuration
There are eight 52-pin PLCC sockets on the EVB (U19, U20, U21, U22, U29, U30, U31, and
U32) for synchronous static RAM (SSRAM) devices. These sockets are paired as upper and
lower words and organized for long-word (32 bits wide) data transfers. Each pair is refered to as
BANKx. Table 2-5 shows on-board, memory configuration options.
The SSRAM factory default for the EVB is 128 kilobytes (two 64Kb I.C.s) installed in BANK1
(U19 and U29). You may increase the amount of on-board SSRAM to 256 kilobytes by
increasing the memory in sockets U19 and U29. You can further expand on-board memory by
populating U20, U21, U22, U30, U31, and U32 with additional SSRAM devices in each bank.
The EVB can have up to 1 megabyte of on-board SSRAM.
MPC505EVBUM/D2-9
HARDWARE PREPARATION AND INSTALLATION
2.2.9EVB Reset Switches
There are two reset switches on the EVB:
• Switch SW1 lets you reset the MPC505 MCU
• Switch SW2 lets you reset the EVB.
2.2.10 EVB DIP Switches
There are six DIP switches on the EVB (DS1 – DS6):
• DS1 – Attaches the MCU chip selects to the EVB on-board memory and peripheral
devices. You may disable on-board chip selects and connect them via the expansion
connectors (P6 and P8) to external memory or peripheral devices.
• DS2, DS3, DS4, DS5 – Data Bus Reset Configuration Word
• DS6 – On the EVB are 3 RS232 ports (P2, P3, & P4) and one background debug
mode connector (P5). Each of the RS-232 ports can be either DTE or DCE port
(defined by DS6 switches 2, 3 and 4). While the host computer may be connected to
the RS-232 port or the debug mode connector (DS6 switch 1).
2-10MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
2.2.10.1Chip Select Dip Switch (DS1)
The MPC505 MCU uses several chip selects on-board to control EVB functionality (memory and
peripheral devices). You can redefine these chip selects to control external devices via the
expansion connectors. To avoid conflicts between on-board and external devices, disable the
appropriate chip select by setting the appropriate DS1 switch (see Table 2-6).
Dip switches DS2 – DS5 are connected through 4 buffers on the MPC505 MCU data bus (D31 –
D0). At RESET the MCU reads the data bus and changes its configuration according to these
switches ("ON" = 0 LOGIC).
There are two reset configuration modes: data bus configuration mode (pertinent to the EVB) or
internal default mode. In either mode the configuration is set by the MCU driving a configuration
word onto the internal data bus. Table 2-7 describes the configuration options. The EVB Default
Mode column shows the default reset configuration word. The default reset data bus
configuration word is X9E5EF4A3. For information on the internal reset configuration mode
refer to the PowerPC MPC505 RISC Microcontroller Technical Summary, MPC505TS/D.
Table 2-7. Data Bus Reset Configuration Word
Data
Bus
Bit
0Address BusMinimum Bus Mode
1Vector Table Location
2Burst Type/IndicationType 2/LASTType 1/BDIP0
3Interface Type for
4CSBOOT Port Size32-Bit16-Bit1
5Reset Configuration
[6:8]TA Delay For CSBOOTTA Delay Encoding
Configuration
Function
Effected
(IP Bit)
CSBOOT
Source For DATA[6:13]
Effect of
Mode Select = 1
During Reset
ADDR[0:11] = CS[0:11]
Vector Table
0xFFF0 0000
ITYPE = 001
Asynchronous (Time to
Hi-Z = 2Clk)
Latch Configuration from
external pins.
000
001
010
011
100
101
110
111
Effect of
Mode Select = 0
During Reset
Maximum Bus Mode
ADDR[0:11] = Address Pins
Vector Table
0x0000 0000
ITYPE = 1000
Synchronous Burst
Latch Configuration from
internal defaults.
# of Wait States
0
1
2
3
4
5
6
7
EVB
Default
Mode
1
0
1
1
100
2-12MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
Table 2-7. Data Bus Reset Configuration Word (continued)
L-bus Memory modules are
disabled and emulated
externally.
No effect0
Test Slave Mode Enabled1
Test Transparent Mode
Enabled
Default
EVB
Mode
1
1
2-14MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
2.2.10.3DTE/DCE Settings
DS6 switch 1 lets you define which connector to use with your host computer. While DS6
switches 2 - 4 lets you define I/O connectors P2, P3, and P4 as DTE or DCE. Table 2-8 shows
DS6 switch settings.
Table 2-8. DS6 Communication Type Switch Settings
Pin #Signal NameConnectorDescription
1OEDSDIDSCKP4/P5Switch to ON when using P4 as the I/O port
Switch to OFF when using BDM connector P5 as the
I/O port
2ADCE_DTE~P2ON = DTE
OFF = DCE
3BDCE_DTE~P3ON = DTE
OFF = DCE
4CDCE_DTE~P4ON = DTE
OFF = DCE
5—UNUSED
6—UNUSED
7—UNUSED
8—UNUSED
MPC505EVBUM/D2-15
HARDWARE PREPARATION AND INSTALLATION
2.3 INSTALLATION INSTRUCTIONS
The EVB is designed for table top operation. A user supplied power supply and host computer
(with an RS-232C port) are required for EVB operation.
2.3.1Host Computer – EVB Interconnection
Interconnection of a host computer to the EVB is accomplished via a user supplied 25-pin flat
cable assembly. One end of the cable assembly is connected to the EVB connector P4 (shown
below). The other end of the cable assembly is connected to the host computer. For connector pin
assignments and signal descriptions of the EVB I/O port connector P4, refer to Appendix B.
P4
NC
CTXD
CRXD
CRTS
CCTS
CDSR
GND
CDCD
NC
NC
NC
NC
NC
1
2
3
4
5
6
7
8
9
10
11
12
13
HOST COMPUTER
14
15
16
17
18
19
20
21
22
23
24
25
NC
NC
NC
NC
NC
NC
CDTR
NC
NC
NC
NC
NC
2-16MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
2.3.2Background Mode Connector (P5)
Use connector P5 (pinouts shown below) to communicate with the EVB via the background
debug mode (BDM). You may use the serial development interface (SDI) as your BDM interface.
Connect one end of the SDI to your host computer and the other to connector P5. For more
information about the SDI refer to the M68SDIUM Users Manual, M68SDIUM/D.
P5
VFLS01••2SRESET~
GND3••4DSCK
GND5••6VFLS1
RESET~7••8DSDI
VCC/V3.39••10 DSDO
MPC505EVBUM/D2-17
HARDWARE PREPARATION AND INSTALLATION
2.3.3Power Supply – EVB Interconnection
The EVB requires +5 Vdc @ 2 amp power supply for operation. Connector P7 pin 1 is +5 Vdc;
pins 2 and 3 are ground (shown in Figure 2-2). Use 16-22 AWG wire in the connector (supplied
with the board). EVB power supply interconnection for connector P7 is shown below.
Figure 2-2. Power Supply Connector (P7)
2-18MPC505EVBUM/D
HARDWARE PREPARATION AND INSTALLATION
2.3.4RS-232C – EVB Interconnection
Interconnection of an RS-232C compatible device to the EVB is accomplished via a user
supplied 9-pin cable assembly. One end of the cable assembly is connected to either EVB port P2
or P3 (shown below). The other end of the cable assembly is connected to the user supplied RS232C compatible device. For connector pin assignments and signal descriptions of the EVB RS232C ports P2 and P3, refer to Appendix B.
ADCD
ARXD
ATXD
ADTR
GND
P2
1
6
2
7
3
8
4
9
5
RS-232 DEVICE
ADSR
ARTS
ACTS
NC
BDCD
BRXD
BTXD
BDTR
GND
P3
1
6
2
7
3
8
4
9
5
RS-232 DEVICE
BDSR
BRTS
BCTS
NC
MPC505EVBUM/D2-19
HARDWARE PREPARATION AND INSTALLATION
2.3.5EVB Expansion Connectors
There are two expansion connectors (P6 and P8) on the EVB. The pin assignments for the
expansion connectors are in Figures 2-3 and 2-4. Signal descriptions are in Appendix B.
Use connectors POD1 through POD7 to connect a logic analyzer to the circuit being evaluated.
Below are the pin assignments for the logic analyzer connectors.
The EVB printed circuit board includes an optional SCSI port. The required parts for the SCSI
port are user supplied. SCSI port parts list is provided in Table 2-9.
Reference DesignationComponent Description
P1SCSI Connector, AMP 749830-5
U1, U2I.C., DS2107S, SCSI Terminator, DALLAS
U3I.C., 53C90B, SCSI Controller, NCR
MPC505EVBUM/D2-23
Table 2-9. SCSI Port Parts List
Semiconductor
HARDWARE PREPARATION AND INSTALLATION
2-24MPC505EVBUM/D
FUNCTIONAL DESCRIPTION
CHAPTER 3
FUNCTIONAL DESCRIPTION
3.1INTRODUCTION
This chapter is a functional description of the EVB and its components.
3.2EVB DESCRIPTION
The EVB may be configured in either of two ways; the BCC mounted on the PFB or the BCC
mounted on the target system. Figure 3-1 is the EVB block diagram.
When the BCC is mounted on the PFB, you may evaluate the MCU and debug user developed
code. To do this connect a terminal or host computer to PFB connector P9 and run the MPCbug
debug monitor program. Logic analyzer connection may be made to connectors P1 through P6 of
the PFB.
Mount the BCC on the target system to verify hardware design. With the BCC mounted on the
target system, MC68332 MCU device emulation with hardware breakpoints is possible by
connecting a PC to BCC connector P4 and running MPCbug debug monitor. Logic analyzer
connection may be made to connectors P1 and P2 of the BCC.
MPC505EVBUM/D3-1
FUNCTIONAL DESCRIPTION
3-2 MPC505EVBUM/D
Figure 3-1. EVB Block Diagram
FUNCTIONAL DESCRIPTION
3.3MCU SUMMARY
The resident MC68332 Microcontroller Unit (MCU) of the BCC provides resources for
designing, debugging, and evaluating MC68332 MCU based target systems and simplifies user
evaluation of prototype hardware/software products.
The MCU device is a 32-bit integrated microcontroller, combining high-performance data
manipulation capabilities with powerful peripheral subsystems. The MCU includes:
• 32-bit central processor unit (CPU32)
• Time processor unit (TPU)
• Queued serial module (QSM)
• Random access memory (RAM)
• External bus interface
• Chip selects
• System clock
• Test module
3.3.132-Bit Central Processor Unit
The CPU32 is the central processor for the MC68332 MCU device. The CPU32 is source and
object code compatible with the MC68000 and MC68010. All user programs can be executed
unchanged. The CPU32 features are:
• 32-Bit internal data path and arithmetic hardware - 16-bit external data bus
• 32-Bit internal address bus - 24-bit external address bus
• Powerful instruction set
• Eight 32-bit general purpose data registers
• Seven 32-bit general purpose address registers
• Separate user and supervisor stack pointers and address spaces
• Separate program and data address spaces
• Flexible addressing modes
• Full interrupt processing
MPC505EVBUM/D3-3
FUNCTIONAL DESCRIPTION
3.3.2Time Processor Unit
The Time Processor Unit (TPU) optimizes performance of time-related activities. The TPU has a
dedicated execution unit, tri-level prioritized scheduler, data storage RAM, dual time bases, and
microcode ROM which drastically reduces the need for CPU intervention. The TPU controls
sixteen independent, orthogonal channels; each channel has an associated I/O pin and can
perform any time function. Each channel also contains a dedicated event register, for both match
and input capture functions.
Each channel can be synchronized to either of two 16-bit, free-running counters with a pre-scaler.
One counter, based on the system clock, provides resolution of TPU system clock divided by 4.
The second counter, based on an external reference, also provides resolution of TPU system
clock divided by 8. Channels may also be linked together, allowing the user to reference
operations on one channel to the occurrence of a specified action on another channel, providing
inter-task control.
3.3.3Queued Serial Module
The QSM contains two serial ports. The queued serial peripheral interface (QSPI) port provides
easy peripheral expansion or inter-processor communications via a full-duplex, synchronous,
three-line bus: data-in, data-out, and a serial clock. Four programmable peripheral select pins
provide address-ability for as many as 16 peripheral devices. A QSPI enhancement is an added
queue in a small RAM. This lets the QSPI handle as many as 16 serial transfers of 8- to 16-bits
each, or to transmit a stream of data as long as 256 bits without CPU intervention. A special
wrap-around mode lets the user continuously sample a serial peripheral, automatically updating
the QSPI RAM for efficient interfacing to serial peripheral devices (such as analog-to-digital
converters).
The serial communications interface (SCI) port provides a standard non-return to zero (NRZ)
mark/space format. Advanced error detection circuitry catches noise glitches to 1/16 of a bit time
in duration. Word length is software selectable between 8- or 9-bits, and the SCI modulus-type,
baud rate generator provides baud rates from 64 to 524k baud, based on a 16.77 MHz system
clock. The SCI features full- or half-duplex operation, with separate transmitter and receiver
enable bits and double buffering of data. Optional parity generation and detection provide either
even or odd parity check capability. Wake-up functions let the CPU run uninterrupted until either
a true idle line is detected or a new address byte is received.
3.3.4Random Access Memory
2k bytes of static RAM are contained within the MC68332 MCU device. The RAM is used for
storage of variable and temporary data. RAM data size may be 8-bits (byte), 16-bits (word), or
32-bits (longword). The RAM can be mapped to any 2k byte boundary in the address map.
3-4 MPC505EVBUM/D
FUNCTIONAL DESCRIPTION
3.3.5External Bus Interface
The external bus consists of 24 address lines and a 16-bit data bus. The data bus allows dynamic
sizing between 8- and 16-bit data accesses. A read-modify-write cycle (RMC) signal prevents
bus cycle interruption. External bus arbitration is accomplished by a three-line handshaking
interface.
3.3.6Chip Selects
Twelve independently programmable chip selects provide fast, two-cycle external memory, or
peripheral access. Block size is programmable from 2 kilobytes through 1 megabyte. Accesses
can be selected for either 8- or 16-bit transfers. As many as 13 wait states can be programmed for
insertion during the access. All bus interface signals are automatically handled by the chip select
logic.
3.3.7System Clock
An on-chip phase locked loop circuit generates the system clock signal to run the device up to
16.78 MHz from a 32.768 kHz watch crystal. The system speed can be changed dynamically,
providing either high performance or low power consumption under software control. The
system clock is a fully-static CMOS design, so it is possible to completely stop the system clock
via a low power stop instruction, while still retaining the contents of the registers and on-board
RAM.
3.3.8Test Module
The test module consolidates the microcontroller test logic into a single block to facilitate
production testing, user self-test, and system diagnostics. Scan paths throughout the MC68332
provide signature analysis checks on internal logic. User self-test is initiated by asserting the test
pin to enter test mode. This test provides a pass/fail response to various externally supplied test
vectors.
3.4USER MEMORY
On board the BCC is 32k x 16 bits of RAM and 64k x 16 bits of EPROM. The RAM is the
debug monitor storage area and user accessible memory space; the M68MPCBUG Debug
Monitor is stored in the BCC EPROMs. For debug monitor functionality see the M68MPCBUG
Debug Monitor User’s Manual, M68MPCBUG /AD1. Figure 3-3 is the EVB memory map.
The PFB has sockets for 32k x 16 or 64k x 16 bit RAM or 64k x 16 bit EPROM. The RAM
and/or EPROM, supplied by the user, is user-accessible memory space.
MPC505EVBUM/D3-5
FUNCTIONAL DESCRIPTION
INTERNAL RAM
(1)
MCU
INTERNAL
MODULES
OPTIONAL FPCP
(3)
PFB: U5
ALTERNATE MCU
INTERNAL MODULES
LOCATION
(4)
OPTIONAL RAM/EPROM
PFB: U2 & U4
CPU32BUG EPROM
BCC: U1 & U2
OPTIONAL RAM
PFB: U1 & U3
TARGET RAM
BCC: U3 & U4
SYSTEM RAM
BCC: U3 & U4
XXX7FF
(2)
XXX000
FFFFFF
FFF000
FFE800
800000
7FF000
110000 /120000
100000
0E0000
020000
010000
003000
000000
(5)
CPU32BUG
INTERNAL STACK
CPU32BUG
INTERNAL
VARIABLES
CPU32BUG VECTOR
TABLE
TARGET VECTOR
TABLE
1. Consult the MCU device user’s manual.
2. XXbase address is user programmable. Internal modules, such as
internal RAM, can be configured on power-up/reset by using the
initilization table (INITTBL) covered in Appendix C of the
M68MPCBUG Debug Monitor User’s Manual, M68MPCBUG /AD1.
3. Floating point coprocessor - MC68881/MC68882.
4. See Appendix C of the M68MPCBUG Debug Monitor User’s Manual,
M68MPCBUG /AD1.
5. Depends on the memory device type used.
3-6 MPC505EVBUM/D
Figure 3-2. EVB Memory Map
FUNCTIONAL DESCRIPTION
3.5I/O CONNECTORS
There are two 64-pin expansion connectors on the BCC (P1 and P2). Through these connectors
the BCC communicates with the PFB or target system. Background mode operation is available
through P3 and serial communication through P4. Chapter 5 contains a description of the
interface connectors pin assignments.
3.5.164-Pin Expansion Connectors
The expansion connectors interconnect the BCC to the PFB or target system. The pin-outs of the
MC68332 MCU device, serial communication, and background mode interface are available on
the expansion connectors.
3.5.2Serial Communication Connectors
A terminal or host computer with terminal emulation (PCKERMIT.EXE, PROCOMM, etc.), can
be connected to the BCC or to the PFB. Terminal connections are provided through the serial
communication connectors, BCC P4 or to PFB P9.
3.5.3Background Mode Interface Connector
The background debug mode is implemented in MCU microcode. In background mode, registers
can be viewed or altered, memory can be read or written, and test features can be executed.
Background mode is initiated by one of several sources: externally generated breakpoints,
internal peripherally generated breakpoints, software, and catastrophic exception conditions.
Instruction execution is suspended for the duration of background mode. Background mode
communications between the BCC and the development system are via a serial link (P3).
3.6PFB DESCRIPTION
The PFB is the physical location for installing the BCC. The user may expand the user accessible
memory. I/O connectors are available for communication, power, and a logic analyzer.
3.6.1Floating-Point Coprocessor Socket (U5)
Socket U5 on the PFB accommodates an optional coprocessor for the EVB. Either an MC68881
or an MC68882 coprocessor can be used in socket U5. The coprocessor software interface is not
part of the EVB, so must be provided by the user. For developing the coprocessor software
interface, see the application note MC68881 Floating-Point Coprocessor as a Peripheral in an
M68000 System, AN947.
MPC505EVBUM/D3-7
FUNCTIONAL DESCRIPTION
The coprocessor interface is a transparent, logical extension of the MC68332 MCU device
registers and instructions. To the external environment the CPU and coprocessor execution
model appear to be on the same chip.
A coprocessor interface is an execution model based on sequential instruction execution by the
CPU and coprocessor. For optimum performance, the coprocessor interface lets floating point
instructions execute concurrently with CPU integer instructions. Concurrent instruction
execution is further extended by the coprocessor, which executes multiple floating-point
instructions simultaneously.
3.6.2Logic Analyzer Connectors
To debug hardware and software developed for the MC68331 MCU device, connect a logic
analyzer to the desired pins of PFB connectors P1 - P6.
3-8 MPC505EVBUM/D
SUPPORT INFORMATION
CHAPTER 4
SUPPORT INFORMATION
4.1 INTRODUCTION
The tables in this chapter describe EVB connector signals.
4.2 CONNECTOR SIGNAL DESCRIPTIONS
The following are all the connectors on the board include pin number mnemonic and signal
description.
Connector P7 connects external power to the EVB. th e host computer connects to the EVB via
P4. POD1 through POD7 let you connect a logic analyzer to the EVB. P2 and P3 are EVB I/O
ports for evaluating RS-232C devices.
NOTE
The signal descriptions in the following tables are for quick
reference only. For a complete description of the MCU signals
consult the appropriate MCU user’s manual, data book, or technical
summary. For a complete description of the SCSI signals consult
the appropriate NCR 53C90B User Manual Data Book. For a
complete description of the P2,P3 signals consult the appropriate
MOTOROLA M68681 User Manual Data Book.
Tables 4-1 through 4-19 list pin assignments for these connectors:
1GNDGROUND
2SDB0SCSI DATA BUS (bit 0) – Bit 0 of the SCSI bi-directional data bus lines.
3GNDGROUND
4SDB1SCSI DATA BUS (bit 1) – Bit 1 of the SCSI bi-directional data bus lines.
5GNDGROUND
6SDB2SCSI DATA BUS (bit 2) – Bit 2 of the SCSI bi-directional data bus lines.
7GNDGROUND
8SDB3SCSI DATA BUS (bit 3) – Bit 3 of the SCSI bi-directional data bus lines.
9GNDGROUND
10SDB4SCSI DATA BUS (bit 4) – Bit 4 of the SCSI bi-directional data bus lines.
11GNDGROUND
12SDB5SCSI DATA BUS (bit 5) – Bit 5 of the SCSI bi-directional data bus lines.
13NCNot Connected
14SDB6SCSI DATA BUS (bit 6) – Bit 6 of the SCSI bi-directional data bus lines.
15GNDGROUND
16SDB7SCSI DATA BUS (bit 7) – Bit 7 of the SCSI bi-directional data bus lines.
17GNDGROUND
18SDBPSCSI DATA BUS PARITY – SCSI bi-directional data parity line.
19 – 25GNDGROUND
26VCC+5 VDC POWER – Input voltage (+5 Vdc @ 2.0 A) used by the EVB
32ATNI*ATTENTION – Active-low output signal that indicates to the target that
the MPC505 has a message to send.
33 – 35GNDGROUND
36BSYBUSY – Active low I/O signal that indicates the SCSI is busy.
37GNDGROUND
38ACKACKNOWLEDGE – Active-low handshake signal that indicates to the
target that the MPC505 has transfered a byte.
39GNDGROUND
40RSTRESET – Active-low output signal that indicates a reset condition. All
devices using the bus must release it.
41GNDGROUND
42MSGMESSAGE – Active-low output signal that indicates the target is
sending a message.
43GNDGROUND
44SELSELECT – Active-low output signal used by the MPC505 to select a
target.
45GNDGROUND
46C/DCONTROL/DATA – Active-low output signal that indicates whether
control of data is on the data bus. This signal is controlled by the target.
47GNDGROUND
48REQREQUEST – Active-low handshake signal that indicates to the MPC505
that the target has transfered a byte.
49GNDGROUND
50I/OINPUT/OUTPUT – Active-low output signal driven by the target that
1ADCD*DATA CARRIER DETECT – An output signal used to indicate an
acceptable received line (carrier) signal has been detected.
2ARXDRECEIVE DATA – RS-232C serial input signal.
3ATXDTRANSMIT – RS-232C serial output signal.
4ADTR*DATA TERMINAL READY – An output line that indicates an on-line/in-
service/active status.
5GNDGROUND
6ADSR*DATA SET READY – An output signal (held high) that indicates an on-
line/in-service/active status.
7ARTSREQUEST TO SEND – An input signal used to request permission to
transfer data.
8ACTS*CLEAR TO SEND – An output signal that indicates a ready-to-transfer
1BDCD*DATA CARRIER DETECT – An output signal used to indicate an
acceptable received line (carrier) signal has been detected.
2BRXDRECEIVE DATA – RS-232C serial input signal.
3BTXDTRANSMIT – RS-232C serial output signal.
4BDTR*DATA TERMINAL READY – An output line that indicates an on-line/in-
service/active status.
5GNDGROUND
6BDSR*DATA SET READY – An output signal (held high) that indicates an on-
line/in-service/active status.
7BRTSREQUEST TO SEND – An input signal used to request permission to
transfer data.
8BCTS*CLEAR TO SEND – An output signal that indicates a ready-to-transfer
1VFLS0VISIBILITY FLUSH - If VFLS0 and VFLS1 are high the MPC505 is in
background debug mode.
2SRESET*SYSTEM RESET – Active-low, MPC505 MCU output signal that is
asserted by the MCU during reset.
3GNDGROUND
4DSCKDEVELOPMENT SERIAL CLOCK – Serial input clock for background
debug mode.
5GNDGROUND
6VFLS1VISIBILITY FLUSH - If VFLS0 and VFLS1 are high the MPC505 is in
background debug mode.
7RESET*RESET – Active-low, input signal that resets the MPC505 MCU.
8DSDIDEVELOPMENT SERIAL DATA IN – Serial data input signal for debug
mode.
9VCC+5 VDC POWER – Input voltage (+5 Vdc @ 2.0 A) used by the EVB
logic circuits.
10DSDODEVELOPMENT SERIAL DATA OUT – Serial data output signal for
debug mode.
MPC505EVBUM/D4-7
SUPPORT INFORMATION
Table 4-6. P6 Expansion Connector Pin Assignments
PinMnemonicSignal
A-1FOE*FLASH OUTPUT ENABLE - Active low output signal that lets you read
the EVB on-board flash memory.
A-2CS5*CHIP SELECT 5 Output signal that selects peripheral/memory devices
at programmed addresses.
A-3 A-13A10 A20ADDRESS BUS (bits 10 – 20) – 11-pins of the three-state output
address bus.
A-14GNDGROUND
A-15 A-30D0 D15DATA BUS (bits 0 15) – Bi-directional data pins.
A-31GNDGROUND
A-32NCNot Connected
B-1 B-3VCC+5 VDC POWER –Input voltage (+5 Vdc @ 2.0 A) used by the EVB
logic circuits.
B-4BSWE2*Address signal A8 - one signal of the three-state output address bus.
B-5BSWE0*Address signal A6 - one signal of the three-state output address bus.
B-30CLKOUTSYSTEM CLOCK OUT – Output signal that is the MPC505 MCU
internal system clock.
B-31, B-32GNDGROUND
C-1BSWE3*Address signal A9 - one signal of the three-state output address bus.
C-2BSWE1*Address signal A7 - one signal of the three-state output address bus.
C-3CSBT*BOOT CHIP SELECT – Active-low output signal that selects peripheral
or memory devices at programmed addresses.
C-4 C-12A21 A29ADDRESS BUS (bits 21 29) – 9-pins of the three-state output address
bus.
C-13GNDGROUND
C-14 C-29D16 D31DATA BUS (bits 16 31) – Bi-directional data pins.
C-30GNDGROUND
C-31, C-32NCNot Connected
4-8MPC505EVBUM/D
SUPPORT INFORMATION
Table 4-7. Input Power Connector P7 Pin Assignments
PinMnemonicSignal
1VCC+5 VDC POWER – Input voltage (+5 Vdc @ 2.0 A) used by the EVB
logic circuits. The "VCC" write on the board nere the coresponding pin.
2GNDGROUND The "GND" write on the board nere the coresponding pin
3GNDGROUND The "GND" write on the board nere the coresponding pin
Table 4-8. P8 Expansion Connector Pin Assignments
PinMnemonicSignal
A-1, A-2V3.3+3.3 VDC POWER – Voltage generated by the on-board voltage
converter for use by the MPC505 MCU logic circuits.
A-3AACK*ADDRESS ACKNOWLEDGE – An active-low input signal that indicates
the slave has received the address from the bus master.
A-4TS*TRANSFER START – An active-low output signal that indicates the
start of a bus cycle.
A-5VDDSYNVDDSYN – Clock synthesizer power.
A-6 A-8IRQ6* –
IRQ4*
A-9 A-12CT0 CT3CYCLE TYPE SIGNALS – Four bits that indicate what type of bus cycle
A-13GNDGROUND
A-14 A-16VF0 VF2VISIBILITY FETCH – Instruction queue status bits that indicate the last
A-17R_W*READ/WRITE – Active-high output signal that indicates the direction of
A-18TA*TRANSFER ACKNOWLEDGE – An active-low input signal that
A-19TEA*TRANSFER ERROR ACKNOWLEDGE – An active-low input signal that
INTERRUPT REQUEST (6 -4) – Prioritized active low input lines that
requests MCU synchronous interrupts. IRQ1* has the highest priority.
the bus master is initiating.
fetched instruction or the number of instructions flushed from the
instruction queue.
data transfer on the bus.
indicates the slave has received data during a write cycle or returned
data during a read cycle.
indicates bus error condition.
A-20AT1ADDRESS TYPES bit 1 – One of two output bits that defines address
MPC505EVBUM/D4-9
space as: user data, user instruction, supervisor data, or supervisor
4 CLKOUT SYSTEM CLOCK OUT – Output signal that is the MPC505 MCU
internal system clock.
5 RESET* RESET – Active-low, input signal that resets the MPC505 MCU.
6 SRESET* SYSTEM RESET – Active-low, MPC505 MCU output signal that resets
the EVB.
7 – 10 CT0 – CT3 CYCLE TYPE SIGNALS – Four bits that indicate what type of bus cycle
the bus master is initiating.
11 CR* CANCEL RESERVATION Active-low input that instructs the bus master
to clear the external device's reservation.
12 BR* BUS REQUEST – Active-low input signal that indicates that an external
device requests bus mastership.
13 BB* BUS BUSY – Active-low, bi-directional signal asserted by the current
master that indicates that the bus is in use.
14 BG* BUS GRANT – Active-low input signal that indicates that an external
device has assumed control of the bus.
15, 16 IRQ0*, IRQ1*INTERRUPT REQUEST (0, 1) – Prioritized active low input lines that
requests MCU synchronous interrupts. IRQ1* has the highest priority.
17 ECROUT ENGINEERING CLOCK REFERENCE OUT Clock reference for
peripheral chips.
18 MODCLK CLOCK MODE SELECT – Active-high input signal that selects the
source of the internal system clock.
19 PDWU POWER DOWN WAKEUP Output signal sends a power-down wakeup