Spectrum Digital, Inc. reserves the right to make changes to its products or to discontinue any
product or service without notice, and advises its customers to obtain the latest version of relevant
information to verify, before placing orders, that the information being relied on is current.
Spectrum Digital, Inc. warrants performance of its products and related software to current
specifications in accordance with Spectrum Digital’s standard w arranty. Testing and other quality
control techniques are utilized to the extent deemed necessary to support this warranty.
Please be aware that the products described herein are not intended for use in life-support
appliances, devices, or systems. Spectrum Digital does not warrant nor is liable for the product
described herein to be used in other than a development environment.
Spectrum Digital, Inc. assumes no liability for applications assistance, customer product design,
software performance, or infringement of patents or services described herein. Nor does Spectrum
Digital warrant or represent any license, either express or implied, is granted under any patent right,
copyright, or other intellectual property right of Spectrum Digital, Inc. covering or relating to any
combination, machine, or process in which such Digital Signal Processing development products or
services might be or are used.
WARNING
This equipment is intended for use in a laborato ry test environment only. It generates, uses, and can
radiate radio frequency energy and has not been tested for compliance with the limits of computing
devices pursuant to subpart J of part 15 of FCC rules, which are designed to provide reasonable
protection against radio frequency interference. Operation of this equipment in other environments
may cause interference with radio communications, in which case the user at his own expense will be
required to take whatever measures may be required to correct this interference.
TRADEMARKS
MS-DOS, MS-Windows, and Windows 95 are registered trademarks of Microsoft Corp
This document describes the board level operations of the TMS320F240 evaluation
module (EVM). The EVM is based on the Texas Instruments TMS320F240 Digital
Signal Processor .
The TMS320F240 EVM is a table top card to allow engineers and software developers
to evaluate certain characteristics of the TMS320F240 DSP to determine if the
processor meets the designers application requirements. Evaluators can create
software to execute onboard or expand the system in a variety of ways.
Notational Conventions
This document uses the following conventions.
The TMS320F240 will sometimes be referred to as the F240 or C24X.
Program listings, program examples, and interactive displays are shown is a special
italic typeface. Here is a sample program listing.
equations
!rd = XXXXXXXXXXX;
Information About Cautions
This book may contain cautions.
This is an example of a caution statement.
A caution statement describes a situation that could potentially damage your software,
or hardware, or other equipment. The information in a caution is provided for your
protection. Please read each caution carefully.
Related Documents
Texas Instruments TMS320F240 Users Guide
Texas Instruments TMS320 Fixed Point Assembly Language Users Guide
Texas Instruments TMS320 Fixed Point C Language Users Guide
Texa s Instruments TMS320 Fixed Point C Source Debugger Users Guide
Page 7
Chapter 1
Introduction to the TMS320F240
Evaluation Module
This chapter provides you with a description of the TMS32F240 Evaluation
Module along with the key features and a block diagram of the circuit
board.
Topic Page
1.0Overview of the TMS320F240 EVM 1-2
1.1Key Features of the TMS320F240 EVM1-2
1.2Functional Overview of the TMS320F240 EVM 1-3
1-1
Page 8
Spectrum Digital, Inc
1.0 Overview of the TMS320F240 EVM
The TMS320F240 evaluation module(EVM) is a stand-alone card that lets evaluators
examine certain characteristics of the F240 digital signal processor(DSP) to determine
if this DSP meets their application requirements. Furthermore, the module is an
excellent platform to develop and run software on the F240 family of processors.
The F240 EVM is shipped with a TMS320F240 DSP however other family members
can be placed in the on board socket as they become available. The EVM allows full
speed verification of F240 code. With 544 w ords of onchip data me mory, 128K words of
onboard memory, flash rom, on chip UART, on board UART, and an MP7680 Digital
to Analog Converter, the board can solve a variety of problems as shipped. Four
expansion connectors are provided to interface to any necessary evaluation circuitry
not provided on the as shipped configuration.
To simplify code develop and shorten debugging time a number of user interfaces ar e
available.
1.1 Key Features of the TMS320F240 EVM
The F240 EVM has the following features:
• F240 operating at 20 MIPS with 128K words of zero wait state memory
• MP7680 Four(4) Channel Digital to Analog converter
• On Chip UART with RS232 Drivers
• 32K words of onchip Flash ROM
• Second on board UART
• 32K words of on board Flash ROM
• 4 Expansion Connectors (data, address, I/O, and control)
• On board IEEE 1149.1 JTAG Connection for Optional Emulation
• 5 Volt Only Operation
1-2
TMS320F240 Evaluation Module Technical Reference
Page 9
Spectrum Digital, Inc
1.2 Functional Overview of the TMS320F240 EVM
Figure 1-1 shows a block diagram of the basic configuration for the F240 EVM. The
major interfaces of the EVM include the target ram and rom interface, target UART,
analog interface, and expansion interface.
The F240 interfaces to 128K Words of zero wait-state static memory. An external I/O
interface supports 65,000 parallel I/O ports and optional high speed synchronous serial
port. A Flash Boot Rom can be mapped into the memory interface.
A
D
D
R
E
S
S
/
D
A
T
A
P
3
C
O
N
T
R
O
L
P
4
SRAM
128K x 16
FLASH
DATA
ADDRESS
TMS320F240
CONTROL
ANALOG
PWM/IO
MP7680
D/A
I/O
EPROM
32K x 16
S
E
R
I
A
L
P
7
TL16C550
UART
JTAGUART
JTAG P5
A
N
A
L
O
G
E
X
P
A
N
S
I
O
N
P
2
I
/
O
E
X
P
A
N
S
I
O
N
P
1
S
E
R
I
A
L
P
6
Figure 1-1 BLOCK DIAGRAM TMS320F240 EVM
1-3
Page 10
Spectrum Digital, Inc
1-4
TMS320F240 Evaluation Module Technical Reference
Page 11
Chapter 2
Operation of the TMS320F240
Evaluation Module
This chapter describes the operation of the TMS32F240 Evaluation
Module along with the key interfaces and an outline of the circuit board.
This chapter describes the F240 Evaluation module, its key components, and how they
operate. It also provides information on the EVM’s various interfaces.The F240 EVM
consists of six major blocks of logic.
• F240 external memory
• Analog Interface
• On Chip Serial Interface
• On board Serial I/O interface
• Expansion interface
• JTAG Interface
2.1 The TMS320F240 EVM Board
The F240 EVM is a 3U sized board which is powered by an external 5 Volt only power
supply. Figure 2-1 shows the layout of the F240 EVM.
P1P3
U1
1
P5
L1U2
U3
11
JP1
1
JP2
1
JP3
1
JP4
JP5
JP6
P6
L2
C1
11
R34
U5U7
D1
11
I/OADDRESS/DATA
SPECTRUM DIGITAL
INCORPORATED
TMS320F240 EVM
JP7
C2
R23
U6
ANALOGCONTROL
PWB 503271 REV B
C3
L3
U10
U4
U11
U12
U8
U13
P4P2
ASSY 503270 REV
Figure 2-1 TMS32F240 EVM
U9U14
U15
U16
U17
C4
JP11
U19
TP1
U18
JP13
C5
JP8
1
1
JP9
1
L4
JP10
U21
U20
Y1
U22
JP12
11
JP14
+5V
J1
C6
SW1
D2
DS1
DS2
JP15
DS3
1
P7
2-3
Page 14
Spectrum Digital, Inc
2.1.1 Power Connector
The F240 is powered by a 5 Volt only power supply which is available with the module.
The board requires 750 milliamps. The power is supplied via 2 millimeter jack J1. If
expansion boards are connected to the mo dule a higher amperage power supply ma y
be necessary.
2.2 TMS320F240 Memory Interface
The EVM includes 64k Words of zero wait-state program ram memory and 64k words
of zero wait-state data ram memory, pr oviding a total of 128 k words of off chip static
ram. The board also features 2 sockets for flash rom.
It is important to remember that internal memory has a higher precedence than the
external memory. For more information on the memory in the device populated in your
EVM card please refer to Texas Instruments TMS320F240 Users Guide. Futhermore,
it is important to take into account that external memory is affected by wait-states. Wait
state generation for off-chip memory space (data, program, or I/O) is done with the
Wait State Generation Registe r(WSGR). To obtain zero waitstate off-chip memory
bits in the WSGR must be appropriately programmed. Th e board powers up with 1
wait-state. The EVM board does not generate wait states via the ready signal for
external program and data memory accesses.
External memory decode is done via U19 a GAL20V8. The generic array de vice selects
the RAM, FLASH ROM, or on board peripherals. The equations for the GAL are
included in Appendix A. The figure below shows a zero wait state program space
memory read followed by a data space memory write.
2-4
TMS320F240 Evaluation Module Technical Reference
Page 15
Spectrum Digital, Inc
CLKOUT
ADDRESS
DA TA
R/W
PS-
DS-
STRB-
RAMOE-
RAMWE-
The external Flash ROM is mapped into the program space. Note that this memory
requires multiple wait states. The main purpose of this memory is to allow for the boot
loading of programs without the need of programming the processors internal flash.
2.2.1 Program Memory
READWRITE
Zero Wait State Memory Timing
There are several configurations for program memory. The selection of these
configurations is done by the position of jumpers JP2 and JP14. If JP2 is in the 2-3
position then the DSP is in microcomputer mode and the internal memory is enabled
from 0x0000 to 0x3fff. If JP2 is in position 1-2 then the internal FLASH/ROM is disabled
and this address range is available to external memory.
External program memory is controlled by jumper JP14. When JP14 is configured in
the 1-2 position external RAM is enabled from 0x0000-0xffff. Remember internal
memory takes precedence over external memory. If JP14 is in position 2-3 the external
FLASH is enabled from 0x000-0x7fff. If enabled it is possible to select and deselect the
external FLASH memory by writing to bits D3 and D2 in the UART’S MCR register. For
instance you can set the configuration to Out2 = 0 and Ou t1 = 1 to copy the program
from FLASH to RAM at the same address.
2-5
Page 16
Spectrum Digital, Inc
Table 1: FLASH/RAM CONFIGURATION
UART MCR BITs
D3(Out2) D2(Out1)
00FLASH*
01FLASHRAM
10RAMFLASH
11RAMRAM
* Power up configuration
Note: The bits in the MCR register are inverted from
what appears on the output pins.
FUNCTION
READ WRITE
2-6
TMS320F240 Evaluation Module Technical Reference
Page 17
Spectrum Digital, Inc
Shown below are the four program memory configurations:
The two data memory configurations are configured by jumper JP12. Configured in the
1-2 position the external RAM is enabled from 0x8000-0xffff. Loading the GREG
register will disable all or part the external memory, depending on the value, and allow
devices connected to the expansion bus to be accessed.
When JP12 is configured in the 2-3 position and jumper JP9 is also configured in the
2-3 position then the setting of the GREG register is used to remap the unused 32K of
RAM into the memory map. In this mode BR- is used to invert address A15. In other
words if BR- is inactive address 0x8000 would map to address 0x8000 in the RAM. If
BR- was active then address 0x8000 would be mapped to 0x0000 in the data RAM.
The I/O map for the TMS320F240 EVM is shown below:
2.3 Onboard UART
The TMS320F240 EVM has a TL16C550 UART mapped into the I/O space of the F240
at locations 0x0010 - 0x0018. The UART allows users to use this resource for data
logging, code debugging or other application features. Appendix C contains the
programming information for the TL16C550 device.
2.4 Oscillator Selection
Hex
0000
0004
0005
000F
0010
0018
0019
FEFF
FF00
FFFF
I/O Space
D/A Converter
Reserved
Off-Chip UART
External
Reserved
The TMS320F240 EVM is equipped with a 10 Megahertz oscillator. When the
processor resets the PLL Clock Module defaults to CLKIN/2 yielding a 5 Mhz clkout.
The user should refer to the “PLL Clock Module” section in the TMS320F240 User’s
guide for valid clock configurations.
2-9
Page 20
Spectrum Digital, Inc
2.5 Digital to Analog Converter
The TMS320F240 EVM provides four(4) 12-bit D/A channels. The output is from 0 to 5
volts DC. The con v erter is mapped into I/O address space 0x0000 to 0x0004. Lo cations
0x0000 through 0x0003 are used for the data holding registers for channels 1-4
respectively. I/O address 0x0004 is used to transfer values in the holding registers to
the converters. For instance y ou can write to the 4 holding registers and transfer all 4 to
the converters at the same time. Information about programming this converter can be
found in appendix D.
Table 2: DAC I/O Addresses
I/O AddressChannel #
0x00001
0x00012
0x00023
0x00034
0x0004Transfer
2.6 Expansion Bus
The TMS320F240 EVM has an expansion bus which brings out all of the signals from
the DSP. This expansion bus allows the user to design custom circuitry to be used with
his application without having to design a CPU card. In addition this interface is used b y
Spectrum Digital for all of its add-on modules.
2.6.1 TMS320F240 EVM Expansion Connector
Expansion boards interface to the TMS320F240 EVM via an expansion bus.
This expansion bus is divided into 4 double row header connectors. This se ction
contains the signal definitions and pin numbers for each of the connectors.
2-10
TMS320F240 Evaluation Module Technical Reference
Page 21
Spectrum Digital, Inc
2.6.1.1 Expansion I/O Connector
The definition of P1, which has the I/O signals is shown below.
The TMS320F240 Evaluation Module is supplied with a 14 pin header interface, P5.
This is the standard interface used by JTAG emulators to interface to Texas
Instruments DSPs. The pinout for the connector is shown below:
TMS
TDI
PD (+5V)
TDO
TCK-RET
TCK
EMU0
12
3
56
7
9
11
13
TRST-
4
GND
no pin (key)
GND
8
GND
10
GND
12
EMU1
14
Header Dimensions
Pin-to-Pin spacing, 0.100 in. (X,Y)
Pin width, 0.025-in. square post
Pin length, 0.235-in. nominal
2-15
Page 26
Spectrum Digital, Inc
2.8 On-Chip Asynchronous Serial Port
The TMS320F240 DSP has an on-chip asynchronous serial port. This port is brought
out to connector P6 on the EVM320F240. Connector P6 is a DB9 fema le connector.
This RS232 connector allows the user to connect an e xternal instrument or computer to
the EVM320F240. This means data can be logged or commands given to the control
algorithm. The user should refer to documentation on jumpers JP4 and JP5 prior to
using this serial port. The pin positions for the P6 connector as view ed from the edg e of
the EVM320F240.
The pin numbers and their corresponding signals are shown in the table below:
The EVM320F240 has a TL16C550 UART which provides an additional serial
interface. This UART is mapped into I/O space at locations 0x0010 to 0x0018.
This device allows users to use this reso urce for data logging, code debugging and
other applications.
NOTE:
To use the UART you must enable the clockout of the F240.
You must also make sure the number of wait states is set correctly
in the WSGR register.
This UART is brought out to connector P7 on the EVM320F240. Connector P7 is a
DB9 female connector. The pin positions for th e P4 connector as viewed from the edge
of the EVM320F240.
5
3
4
9
The pin numbers and their corresponding signals are shown in the table below:
Jumper JP11 allows the generation of a system reset from the serial port. If jumper JP11 is in
the 1-2 position a reset will occur when the DTR- signal is brought active low.
2-17
Page 28
Spectrum Digital, Inc
2.10 TMS320F240 EVM Jumpers
The TMS320F240 EVM has 14 jumpers which determine how fe atures on the
EVM are utilized. The table below lists the jumpers and their function. The following
sections describe the use of each jumper.
Jumper #SizeFunction
JP11 x 3Enable/Disable Flash Programming
JP21 x 3Enable/Disable Internal ROM/FLASH
JP31 x 3Oscillator Source Select
JP41 x 3Enable/Disable RTS to BIO-/IOPC3
JP51 x 3Enable/Disable RXD to SCIRXD/IO
JP61 x 3VREFHI Source Select
JP71 x 3VREFLO Source Select
JP81 x 3UART Interrupt Select
JP91 x 3A15 Source Select
JP101 x 3Not Used
JP111 x 2Enable/Disable Host Reset via DTRJP121 x 3Enable/Disable Memory Mapping
JP131 x 3Not Used
JP141 x 3Enable/Disable Onboard FLASH
JP151 x 3Onboard UART CTS Routing
Table 9: Jumpers
Each jumper on the TMS320F240 EVM is a 1x3 jumper. Each jumper must have the
selection 1-2 or 2-3. The #2 pin is the center pin. The #1 pin has a square solder pad
and can be seen from the solder side of the printed circuit board. This pin is usually
marked with a ‘1’ on the boards silkscreen. A top view of this type of jumper is shown
below:
Jumper JP1 is connected to the VCCP pin of the TMS320F240. On the F240 device
this pin enables the programming of the internal flash memory. It also allows disabling
the watchdog timer module. Refer to the F240 User’s Guide for the programming
sequence to disable the watchdog timer. The table below shows the positions and their
functions:
Jumper JP2 is connected to the MP/MC- pin on the TMS320F240. When the jumper is
in position 1-2 the internal ROM/FLASH is disabled. If the shorting plug is in the 2-3
position the internal memory is then enabled. The table below shows the positio ns and
their functions:
Table 11: Jumper JP2
PositionFunction
1-2Internal ROM/FLASH disabled
(microprocessor mode)
2-3Internal ROM/FLASH enabled
(microcomputer mode)
2-19
Page 30
Spectrum Digital, Inc
2.10.3 Jumper JP3, Oscillator Source Select
Jumper JP3 is used to select the source of the TMS320F240 Clockin. Jumper position
1-2 selects the onboard oscillator. If position 2-3 is used the clock is from pin 31 on the
Control connector P4. The table below shows the positions and their functions:
Table 12: Jumper JP3
PositionFunction
1-2Selects Onboard Oscillator
2-3Selects Pin 31 on Control
connector P4
2.10.4 Jumper JP4, Enable/Disable RTS to BIO-/IOPC3
Jumper JP4 enables the serial port P6 RTS- to the DSP’s BIO-/IOPC3 pin. Using
position 1-2 disables this feature, while position 2-3 enables it.
Note:
If this feature is enabled(2-3) then you must not drive the BIO-/IOPC3 pin from the
Control connector P4
.
The table below shows the positions and their functions:
2-20
Table 13: Jumper JP4
PositionFunction
1-2Disables P6 RTS-
to BIO-/IOPC3
2-3Enables P6 RTS- to
BIO-/IOPC3
TMS320F240 Evaluation Module Technical Reference
Page 31
Spectrum Digital, Inc
2.10.5 Jumper JP5, Enable/Disable RXD to SCIRXD/IO
Jumper JP5 enables the serial port P6 RXD to the DSP’ s SCIRXD/IO pin. If positio n 1-2
is selected this features is enabled. Selecting position 2-3 disables this feature.
Note:
If this feature is enabled(1-2) then you
Control connector P4.
The table below shows the positions and their functions:
2.10.6 Jumper JP6, VREFHI Select
must not
Table 14: Jumper JP5
PositionFunction
1-2Enables P6 RXD to
DSP SCIRXD/IO
2-3Disables P6 RXD
to DSP SCIRXD/IO
drive the SCIRXD/IO pin from the
Jumper JP6 is used to select the source for the VREFHI pin on the TMS320F240.
Position 1-2 selects the VCCA power which is +5 volts. If position 2-3 is used trim pot
R34 is used which allows a variable VREF High from 0-5 volts. The table below shows
the positions and their functions:
Table 15: Jumper JP6
PositionFunction
1-2VCCA (+5V VrefH)
2-3Trim Pot R34 (0-5V
VrefH)
2-21
Page 32
Spectrum Digital, Inc
2.10.7 Jumper JP7, VREFLO Select
Jumper JP7 is used to select the source for the VREFLO pin on the TMS320F240.
Positio n 1-2 selects the Analog ground. If position 2-3 is used trim pot R23 is used
The table below sho w s the positions and their functions:
Table 16: Jumper JP7
PositionFunction
1-2Analog Ground
2-3Trim Pot R23
2.10.8 Jumper JP8, UART Interrupt Select
Jumper JP8 selects the interrupt for the onboard UART. Position 1-2 selects NMI- while
position 2-3 selects the XINT1- pin. If you want to use both of these interrupts from
Control connector P4 then neither position should be selected. The table below shows
the positions and their functions:
(VrefL)
(0-5V VrefL)
Table 17: Jumper JP8
PositionFunction
1-2Selects NMI- as
UART Interrupt
2-3Selects XINT1- as
UART Interrupt
2-22
TMS320F240 Evaluation Module Technical Reference
Page 33
Spectrum Digital, Inc
2.10.9 Jumper JP9, A15 Source Select
Jumper JP9 is used to select the source for the memory’s A15 signal. When position
1-2 is used the TMS320F240’s A15 is used. The 2-3 position selects a mapping signal
from PAL U19. Refer to the memory section for details. The table below shows the
positions and their functions:
Table 18: Jumper JP9
PositionFunction
1-2TMS320F240 A15
2-3Mapped A15
2.10.10 Jumper JP10
Jumper JP10 is not used at this time.
2.10.11 Jumper JP11, Enable/Disable Host Reset via DTR-
Jumper JP11 allows the generation of system resets from the serial port P7. When
position 1-2 is used this feature is enabled meaning the system is reset when pin 4
(DTR-) is pulled low. This feature is disabled when position 2-3 is used. The table
below shows the positions and their functions:
Jumper JP12 enables the address 15 mapping feature. Using position 2-3 enables this
feature. If position 1-2 is u sed the feature is disabled. Refer to the Data Memory section
on the use of this feature. The table below shows the positions and their functions:
Table 20: Jumper J12
PositionFunction
1-2A15 Mapping Disabled
2-3A15 Mapping Enabled
2.10.13 Jumper JP13
Jumper JP13 is not used at this time.
2.10.14 Jumper JP14, Enable/Disable Onboard Flash
Jumper JP14 is used to enable the onboard flash memory. Connecting positions 2-3
enables the onboard flash while position 1-2 disables it. Refer to the Program Memory
Section for the use of this feature. The table below shows the positions and their
functions:
2-24
Table 21: Jumper J14
PositionFunction
1-2Disables onboard
flash memory
2-3Enables onboard
flash memory
TMS320F240 Evaluation Module Technical Reference
Page 35
Spectrum Digital, Inc
2.10.15 Onboard UART CTS Routing Jumper, JP15
Jumper JP15 is used to configure the source of the CTS signal on the onboard UART.
When position 1-2 is used the pin 4 on P7 is used as the CTS input. If position 2-3 is
chosen pin 7 on P7 is used as the CTS input.
Table 22: Onboard UART CTS Routing
JP15 PositionCTS Routing
1-2P7 pin 4 used on CTS input
2-3P7 pin 7 used on CTS input
2.11 LEDs
The TMS320F240 EVM has three light emitting diodes. The are under software
control. DS3 is normally ‘on’ after reset.These are shown in the table below:
Table 23: LEDs
LED #ColorControlling SignalOn Signal State
2.12 Resets
There are multiple resets for the TMS320F240 EVM. The first reset is the power on
reset which is generated by the U1. This device waits until power is within the specified
range before releasing the power on reset pin to the TMS320F240.
There is also a system reset RS- which is both input and output from the TMS320F240.
Internal conditions such as a watchdog time-out will cause the RS- pin to go low.
External sources such as the push button(SW1), Host reset pin 4 on P4, and pin p13
on the Control connector P4 can generate a reset condition.
2.13 Test Point
One test point is provided on the TMS320F240 EVM that is connected to the GND
plane. This is used for connecting a scope’s ground signal.
DS1RedXF/IOPC2 on DSP1
DS2YellowBIO-/IO PC3 on DSP1
DS3GreenDTR- on external UART0
2-25
Page 36
Spectrum Digital, Inc
2-26
TMS320F240 Evaluation Module Technical Reference
Page 37
Printed in U.S.A., June 1998
503279-0001 Rev. C
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.