− Three Capture Units for Time-Stamping
of External Events
− Input Qualifier for Select Pins
− On-Chip Position Encoder Interface
Circuitry
− Synchronized A-to-D Conversion
− Designed for AC Induction, BLDC,
Switched Reluctance, and Stepper Motor
Control
− Applicable for Multiple Motor and/or
Converter Control
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of
Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.
Pin
DExternal Memory Interface (LF2407A)
− 192K Words x 16 Bits of Total Memory:
64K Program, 64K Data, 64K I/O
− Texas Instruments (TI) ANSI C Compiler,
Assembler/Linker, and Code Composer
Studio Debugger
− Evaluation Modules
− Scan-Based Self-Emulation (XDS510)
− Broad Third-Party Digital Motor Control
Support
DPackage Options
− 144-Pin LQFP PGE (LF2407A)
− 100-Pin LQFP PZ (2406A, LC2404A)
− 64-Pin TQFP PAG (LF2403A, LC2403A,
LC2402A)
− 64-Pin QFP PG (2402A)
DExtended Temperature Options (A and S)
− A: − 40°C to 85°C
− S: − 40°C to 125°C
Code Composer Studio and XDS510 are trademarks of Texas Instruments.
Other trademarks are the property of their respective owners.
†
IEEE Standard 1149.1−1990, IEEE Standard Test-Access Port; however, boundary scan is not supported in this device family.
PRODUCTION DATA information is current as of publication date.
Products conform to specifications per the terms of Texas Instruments
standard warranty. Production processing does not necessarily include
testing of all parameters.
The TMS320LF240xA and TMS320LC240xA devices, new members of the TMS320C24x generation of
digital signal processor (DSP) controllers, are part of the TMS320C2000 platform of fixed-point DSPs. The
240xA devices offer the enhanced TMS320 DSP architectural design of the C2xx core CPU for low-cost,
low-power, and high-performance processing capabilities. Several advanced peripherals, optimized for digital
motor and motion control applications, have been integrated to provide a true single-chip DSP controller. While
code-compatible with the existing C24x DSP controller devices, the 240xA offers increased processing
performance (40 MIPS) and a higher level of peripheral integration. See the TMS320x240xA Device Summary
section for device-specific features.
The 240xA generation offers an array of memory sizes and different peripherals tailored to meet the specific
price/performance points required by various applications. Flash devices of up to 32K words offer a
cost-effective reprogrammable solution for volume production. The 240xA devices offer a password-based
“code security” feature which is useful in preventing unauthorized duplication of proprietary code stored in
on-chip Flash/ROM. Note that Flash-based devices contain a 256-word boot ROM to facilitate in-circuit
programming. The 240xA family also includes ROM devices that are fully pin-to-pin compatible with their Flash
counterparts.
All 240xA devices offer at least one event manager module which has been optimized for digital motor control
and power conversion applications. Capabilities of this module include center- and/or edge-aligned PWM
generation, programmable deadband to prevent shoot-through faults, and synchronized analog-to-digital
conversion. Devices with dual event managers enable multiple motor and/or converter control with a single
240xA DSP controller. Select EV pins have been provided with an “input-qualifier” circuitry, which minimizes
inadvertent pin-triggering by glitches.
The high-performance, 10-bit analog-to-digital converter (ADC) has a minimum conversion time of 375 ns and
offers up to 16 channels of analog input. The autosequencing capability of the ADC allows a maximum of
16 conversions to take place in a single conversion session without any CPU overhead.
A serial communications interface (SCI) is integrated on all devices to provide asynchronous communication
to other devices in the system. For systems requiring additional communication interfaces, the 2407A, 2406A,
2404A, and 2403A offer a 16-bit synchronous serial peripheral interface (SPI). The 2407A, 2406A, and 2403A
offer a controller area network (CAN) communications module that meets 2.0B specifications. To maximize
device flexibility, functional pins are also configurable as general-purpose inputs/outputs (GPIOs).
To streamline development time, JTAG-compliant scan-based emulation has been integrated into all devices.
This provides non-intrusive real-time capabilities required to debug digital control systems. A complete suite
of code-generation tools from C compilers to the industry-standard Code Composer Studio debugger
supports this family. Numerous third-party developers not only offer device-level development tools, but also
system-level design and development support.
TMS320C24x, TMS320C2000, TMS320, and C24x are trademarks of Texas Instruments.
functional block diagram of the 2407A DSP controller
PLLF
PLLV
XINT1/IOPA2
RS
CLKOUT/IOPE0
TMS2
BIO/IOPC1
MP/MC
BOOT_EN/XF
VDD (3.3 V)
TP1
TP2
V
(5V)
CCP
A0−A15
D0−D15
PS, DS, IS
R/W
RD
READY
STRB
WE
ENA_144
VIS_OE
W/R / IOPC0
PDPINTA
CAP1/QEP1/IOPA3
CAP2/QEP2/IOPA4
CAP3/IOPA5
PWM1/IOPA6
PWM2/IOPA7
PWM3/IOPB0
PWM4/IOPB1
PWM5/IOPB2
PWM6/IOPB3
T1PWM/T1CMP/IOPB4
T2PWM/T2CMP/IOPB5
TDIRA/IOPB6
TCLKINA/IOPB7
DARAM (B0)
256 Words
C2xx
DSP
Core
V
SS
DARAM (B1)
256 Words
DARAM (B2)
32 Words
PLL Clock
10-Bit ADC
(With Twin
Autosequencer)
SCI
SARAM (2K Words)
SPI
Flash/ROM
(32K Words:
4K/12K/12K/4K)
External Memory
Interface
CAN
WD
Digital I/O
(Shared With
Other Pins)
JTAG Port
Event Manager A
D 3 × Capture Input
D 6 × Compare/PWM
Output
D 2 × GP
Timers/PWM
Event Manager B
D 3 × Capture Input
D 6 × Compare/PWM
Output
D 2 × GP
Timers/PWM
CCA
PLLF2
XTAL1/CLKIN
XTAL2
ADCIN00−ADCIN07
ADCIN08−ADCIN15
V
CCA
V
SSA
V
REFHI
V
REFLO
XINT2/ADCSOC/IOPD0
SCITXD/IOPA0
SCIRXD/IOPA1
SPISIMO/IOPC2
SPISOMI/IOPC3
SPICLK/IOPC4
SPISTE/IOPC5
CANTX/IOPC6
CANRX/IOPC7
Port A(0−7) IOPA[0:7]
Port B(0−7) IOPB[0:7]
Port C(0−7) IOPC[0:7]
Port D(0) IOPD[0]
Port E(0−7) IOPE[0:7]
Port F(0−6) IOPF[0:6]
TRST
TDO
TDI
TMS
TCK
EMU0
EMU1
PDPINTB
CAP4/QEP3/IOPE7
CAP5/QEP4/IOPF0
CAP6/IOPF1
PWM7/IOPE1
PWM8/IOPE2
PWM9/IOPE3
PWM10/IOPE4
PWM11/IOPE5
PWM12/IOPE6
T3PWM/T3CMP/IOPF2
T4PWM/T4CMP/IOPF3
TDIRB/IOPF4
TCLKINB/IOPF5
Indicates optional modules.
The memory size and peripheral selection of these modules change for different 240xA devices.
See Table 1 for device-specific details.
The TMS320LF2407A device is the superset of all the 240xA devices. All signals are available on the 2407A
device. Table 2 lists the signals available in the 240xA generation of devices.
Table 2. LF240xA and LC240xA Pin List and Package Options
2403A,
PIN NAME
CAP1/QEP1/IOPA38357574
CAP2/QEP2/IOPA47955553
CAP3/IOPA57552522Capture input #3 (EVA) or GPIO (↑)
PWM1/IOPA656393959Compare/PWM output pin #1 (EVA) or GPIO (↑)
PWM2/IOPA754373758Compare/PWM output pin #2 (EVA) or GPIO (↑)
PWM3/IOPB052363657Compare/PWM output pin #3 (EVA) or GPIO (↑)
PWM4/IOPB147333354Compare/PWM output pin #4 (EVA) or GPIO (↑)
PWM5/IOPB244313153Compare/PWM output pin #5 (EVA) or GPIO (↑)
PWM6/IOPB340282850Compare/PWM output pin #6 (EVA) or GPIO (↑)
T1PWM/T1CMP/IOPB416121240Timer 1 compare output (EVA) or GPIO (↑)
T2PWM/T2CMP/IOPB518131341Timer 2 compare output (EVA) or GPIO (↑)
TDIRA/IOPB6141111
TCLKINA/IOPB737262649
CAP4/QEP3/IOPE7886060
CAP5/QEP4/IOPF0815656
CAP6/IOPF1694848Capture input #6 (EVB) or GPIO (↑)
PWM7/IOPE1654545Compare/PWM output pin #7 (EVB) or GPIO (↑)
PWM8/IOPE2624343Compare/PWM output pin #8 (EVB) or GPIO (↑)
PWM9/IOPE3594141Compare/PWM output pin #9 (EVB) or GPIO (↑)
PWM10/IOPE4553838Compare/PWM output pin #10 (EVB) or GPIO (↑)
PWM11/IOPE5463232Compare/PWM output pin #11 (EVB) or GPIO (↑)
PWM12/IOPE6382727Compare/PWM output pin #12 (EVB) or GPIO (↑)
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
LF2407A
(144-PGE)
CCA
, VSS, or V
DDO
2406A
(100-PZ)
be isolated from the digital supply voltage (and V
SSO
LC2404A
(100-PZ)
EVENT MANAGER A (EVA)
EVENT MANAGER B (EVB)
) should be left unconnected. All power supply pins must be connected appropriately for proper
Counting direction for general-purpose (GP) timer (EVA) or
GPIO. If TDIRA = 1, upward counting is selected. If
TDIRA = 0, downward counting is selected. (↑)
External clock input for GP timer (EVA) or GPIO. Note that
the timer can also use the internal device clock. (↑)
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
LC2402A
(64-PAG)
and
2402A
(64-PG)
SSA
DESCRIPTION
Counting direction for general-purpose (GP) timer
(EVB) or GPIO. If TDIRB = 1, upward counting is
selected. If TDIRB = 0, downward counting is
selected. (↑)
External clock input for GP timer (EVB) or GPIO.
Note that the timer can also use the internal
device clock. (↑)
§
from digital ground) to maintain the specified accuracy
PIN NAME
LF2407A
(144-PGE)
2406A
(100-PZ)
LC2404A
(100-PZ)
EVENT MANAGER B (EVB) (CONTINUED)
T3PWM/T3CMP/IOPF2877Timer 3 compare output (EVB) or GPIO (↑)
T4PWM/T4CMP/IOPF3655Timer 4 compare output (EVB) or GPIO (↑)
TDIRB/IOPF4222
TCLKINB/IOPF51268989
ANALOG-TO-DIGITAL CONVERTER (ADC)
ADCIN00112797918Analog input #0 to the ADC
ADCIN01110777717Analog input #1 to the ADC
ADCIN02107747416Analog input #2 to the ADC
ADCIN03105727215Analog input #3 to the ADC
ADCIN04103707014Analog input #4 to the ADC
ADCIN05102696913Analog input #5 to the ADC
ADCIN06100676712Analog input #6 to the ADC
ADCIN0799666611Analog input #7 to the ADC
ADCIN081138080Analog input #8 to the ADC
ADCIN091117878Analog input #9 to the ADC
ADCIN101097676Analog input #10 to the ADC
ADCIN111087575Analog input #11 to the ADC
ADCIN121067373Analog input #12 to the ADC
ADCIN131047171Analog input #13 to the ADC
ADCIN141016868Analog input #14 to the ADC
ADCIN15986565Analog input #15 to the ADC
V
REFHI
V
REFLO
V
CCA
V
SSA
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
CCA
DDO
, VSS, or V
115828220ADC analog high-voltage reference input
114818119ADC analog low-voltage reference input
116838321Analog supply voltage for ADC (3.3 V)
117848422Analog ground reference for ADC
be isolated from the digital supply voltage (and V
) should be left unconnected. All power supply pins must be connected appropriately for proper
SSO
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
PIN NAME
CONTROLLER AREA NETWORK (CAN), SERIAL COMMUNICATIONS INTERFACE (SCI), SERIAL PERIPHERAL INTERFACE (SPI)
CANRX/IOPC7
CANTX/IOPC6
SCITXD/IOPA025171743SCI asynchronous serial port transmit data or GPIO (↑)
SCIRXD/IOPA126181844
SPICLK/IOPC4
SPISIMO/IOPC2
SPISOMI/IOPC3
SPISTE/IOPC5
CANRX7049−63CAN receive data or GPIO (LF2403A) (↑)
IOPC770494963GPIO only (2402A) (↑)
CANTX7250−64CAN transmit data or GPIO (LF2403A) (↑)
IOPC672505064GPIO only (2402A) (↑)
SPICLK35242447SPI clock or GPIO (LF2403A) (↑)
IOPC435242447GPIO only (2402A) (↑)
SPISIMO30212145SPI slave in, master out or GPIO (LF2403A) (↑)
IOPC230212145GPIO only (2402A) (↑)
SPISOMI32222246SPI slave out, master in or GPIO (LF2403A) (↑)
IOPC332222246GPIO only (2402A) (↑)
SPISTE332323−
IOPC5332323−
LF2407A
(144-PGE)
2406A
(100-PZ)
LC2404A
(100-PZ)
EXTERNAL INTERRUPTS, CLOCK
LC2402A
(64-PAG)
and
2402A
(64-PG)
DESCRIPTION
SCI asynchronous serial port receive data or or
GPIO (↑)
SPI slave transmit-enable (optional) or GPIO (↑)
Device Reset (in) and Watchdog Reset (out).
Device reset. RS causes the device to terminate execution
and to set PC = 0. When RS
execution begins at location 0x0000 of program memory.
RS133939328
PDPINTA76636
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
be isolated from the digital supply voltage (and V
CCA
, VSS, or V
DDO
) should be left unconnected. All power supply pins must be connected appropriately for proper
SSO
This pin is driven low by the DSP when a watchdog reset
occurs. During watchdog reset, the RS
low for the watchdog reset duration of 128 CLKIN cycles.
The output buffer of this pin is an open-drain with an
internal pullup (20 µA, typical). It is recommended that this
pin be driven by an open-drain device. (↑)
Power drive protection interrupt input. This interrupt, when
activated, puts the PWM output pins (EVA) in the
high-impedance state should motor drive/power converter
abnormalities, such as overvoltage or overcurrent, etc.,
arise. PDPINTA
from digital ground) to maintain the specified accuracy
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
PIN NAME
XINT1/IOPA2231616
XINT2/ADCSOC/IOPD021151542
CLKOUT/IOPE07351511
PDPINTB1379595
XTAL1/CLKIN123878724
XTAL2124888825
PLLV
CCA
IOPF61319292General-purpose I/O (↑)
BOOT_EN12186−23
BOOT_EN /
XF
XF121868623
PLLF119938PLL loop filter input 1
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
LF2407A
(144-PGE)
12101039PLL supply (3.3 V)
be isolated from the digital supply voltage (and V
CCA
, VSS, or V
DDO
2406A
(100-PZ)
EXTERNAL INTERRUPTS, CLOCK (CONTINUED)
OSCILLATOR, PLL, FLASH, BOOT, AND MISCELLANEOUS
) should be left unconnected. All power supply pins must be connected appropriately for proper
SSO
LC2404A
(100-PZ)
LC2402A
(64-PAG)
and
2402A
(64-PG)
DESCRIPTION
External user interrupt 1 or GPIO. Both XINT1 and XINT2
are edge-sensitive. The edge polarity is
programmable. (↑)
External user interrupt 2 and ADC start of conversion or
GPIO. External “start-of-conversion” input for ADC/GPIO.
Both XINT1 and XINT2 are edge-sensitive. The edge
polarity is programmable. (↑)
Clock output or GPIO. This pin outputs either the CPU clock
(CLKOUT) or the watchdog clock (WDCLK). The selection
is made by the CLKSRC bit (bit 14) of the system control
and status register (SCSR). This pin can be used as a GPIO
if not used as a clock output pin. (↑)
Power drive protection interrupt input. This interrupt, when
activated, puts the PWM output pins (EVB) in the
high-impedance state should motor drive/power converter
abnormalities, such as overvoltage or overcurrent, etc.,
arise. PDPINTB
PLL oscillator input pin. Crystal input to PLL/clock source
input to PLL. XTAL1/CLKIN is tied to one side of a reference
crystal.
Crystal output. PLL oscillator output pin. XTAL2 is tied to
one side of a reference crystal. This pin goes in the
high-impedance state when EMU1/OFF
Boot ROM enable, GPO, XF. This pin will be sampled as
input (BOOT_EN
reset and then driven as an output signal for XF. After
durin
reset, XF is driven high. ROM devices do not have boot
ROM, hence, no BOOT_EN modes. The BOOT_EN
must be driven with a passive circuit only. (↑)
from digital ground) to maintain the specified accuracy
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
PIN NAME
PLLF2108837PLL loop filter input 2
V
(5V)58404060
CCP
TP160424261Test pin 1. Do not connect.
TP263444462Test pin 2. Do not connect.
BIO/IOPC11198585
EMU09061617
EMU1/OFF9162628
TCK135949429JTAG test clock with internal pullup (↑)
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
LF2407A
(144-PGE)
OSCILLATOR, PLL, FLASH, BOOT, AND MISCELLANEOUS (CONTINUED)
CCA
, VSS, or V
DDO
2406A
(100-PZ)
be isolated from the digital supply voltage (and V
SSO
LC2404A
(100-PZ)
) should be left unconnected. All power supply pins must be connected appropriately for proper
LC2402A
(64-PAG)
and
2402A
(64-PG)
Flash programming voltage pin. This pin must be connected to
a 5-V supply for Flash programming. The Flash cannot be
programmed if this pin is connected to GND. When not
programming the Flash (i.e., during normal device operation),
this pin can either be left connected to the 5-V supply or it can
be tied to GND. This pin must not be left floating at any time. Do
not use any current-limiting resistor in series with the 5-V supply
on this pin. This pin is a “no connect” (NC) on ROM parts (i.e.,
this pin is not connected to any circuitry internal to the device).
Connecting this pin to 5 V or leaving it open makes no difference
on ROM parts.
Branch control input. BIO is polled by the BCND pma,BIO
instruction. If BIO
it should be pulled high. This pin is configured as a branch
control input by all device resets. It can be used as a GPIO, if
not used as a branch control input. (↑)
EMULATION AND TEST
Emulator I/O #0 with internal pullup. When TRST is driven high,
this pin is used as an interrupt to or from the emulator system
and is defined as input/output through the JTAG scan. (↑)
Emulator pin 1. Emulator pin 1 disables all outputs. When TRST
is driven high, EMU1/OFF is used as an interrupt to or from the
emulator system and is defined as an input/output through the
JTAG scan. When TRST is driven low, this pin is configured as
OFF
high-impedance state. Note that OFF
testing and emulation purposes (not for multiprocessing
applications). Therefore, for the OFF
apply:
TRST
EMU0 = 1
EMU1/OFF
DESCRIPTION
is low, a branch is executed. If BIO is not used,
. EMU1/OFF, when active low, puts all output drivers in the
= 0
= 0 (↑)
from digital ground) to maintain the specified accuracy
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
PIN NAME
TDI139969630
TDO142999931
TMS14410010032
TMS236252548
LF2407A
(144-PGE)
2406A
(100-PZ)
EMULATION AND TEST (CONTINUED)
LC2404A
(100-PZ)
LC2402A
(64-PAG)
and
2402A
(64-PG)
DESCRIPTION
JTAG test data input (TDI) with internal pullup. TDI
is clocked into the selected register (instruction or
data) on a rising edge of TCK. (↑)
JTAG scan out, test data output (TDO). The
contents of the selected register (instruction or
data) is shifted out of TDO on the falling edge of
TCK. (↓)
JTAG test-mode select (TMS) with internal pullup.
This serial control input is clocked into the TAP
controller on the rising edge of TCK. (↑)
JTAG test-mode select 2 (TMS2) with internal
pullup. This serial control input is clocked into the
TAP controller on the rising edge of TCK. Used for
test and emulation only. This pin can be left
unconnected in user applications. If the PLL bypass
mode is desired, TMS2, TMS, and TRST
held low during reset. (↑)
JTAG test reset with internal pulldown. TRST, when
driven high, gives the scan system control of the
operations of the device. If this signal is not
connected or driven low, the device operates in its
functional mode, and the test reset signals are
ignored. (↓)
should be
NOTE: Do not use pullup resistors on TRST
an internal pulldown device. TRST
TRST11133
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
be isolated from the digital supply voltage (and V
CCA
DDO
, VSS, or V
) should be left unconnected. All power supply pins must be connected appropriately for proper
SSO
test pin and must be maintained low at all times
during normal device operation. In a low-noise
environment, TRST
instances, an external pulldown resistor is highly
recommended. The value of this resistor should be
based on drive strength of the debugger pods
applicable to the design. A 2.2-kΩ resistor generally
offers adequate protection. Since this is
application−specific, it is recommended that each
target board be validated for proper operation of the
debugger and the application. (I ↓)
from digital ground) to maintain the specified accuracy
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
LC2402A
(64-PAG)
and
2402A
(64-PG)
SSA
Data space strobe. IS, DS, and PS are always
high unless low-level asserted for access to the
relevant external memory space or I/O. They are
placed in the high-impedance state.
I/O space strobe. IS, DS, and PS are always high
unless low-level asserted for access to the
relevant external memory space or I/O. They are
placed in the high-impedance state.
Program space strobe. IS, DS, and PS are always
high unless low-level asserted for access to the
relevant external memory space or I/O. They are
placed in the high-impedance state.
Read/write qualifier signal. R/W indicates transfer
direction during communication to an external
device. It is normally in read mode (high), unless
low level is asserted for performing a write
operation. R/W
¶
state.
Write/Read qualifier or GPIO. This is an inverted
R/W
signal useful for zero-wait-state memory
interface. It is normall
operation is performed. See Table 12, Port C
section, for reset note regarding LF2406A and
LF2402A. (↑)
Read-enable strobe. Read-select indicates an
active, external read cycle. RD
external program, data, and I/O reads. RD
placed in the high-impedance state.
Write-enable strobe. The falling edge of WE
indicates that the device is driving the external
data bus (D15− D0). WE
program, data, and I/O writes. WE
high-impedance state.
External memory access strobe. STRB is always
high unless asserted low to indicate an external
bus cycle. STRB is active for all off-chip
accesses. STRB
¶
state.
from digital ground) to maintain the specified accuracy
PIN NAME
LF2407A
(144-PGE)
2406A
(100-PZ)
LC2404A
(100-PZ)
ADDRESS, DATA, AND MEMORY CONTROL SIGNALS
DS87
IS82
PS84
R/W92
W/R19
W/R / IOPC0
IOPC0191414
RD93
WE89
STRB96
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
be isolated from the digital supply voltage (and V
CCA
, VSS, or V
DDO
) should be left unconnected. All power supply pins must be connected appropriately for proper
SSO
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
PIN NAME
READY120
MP/MC118
ENA_144122
VIS_OE97
A080Bit 0 of the 16-bit address bus
A178Bit 1 of the 16-bit address bus
A274Bit 2 of the 16-bit address bus
A371Bit 3 of the 16-bit address bus
A468Bit 4 of the 16-bit address bus
A564Bit 5 of the 16-bit address bus
A661Bit 6 of the 16-bit address bus
A757Bit 7 of the 16-bit address bus
A853Bit 8 of the 16-bit address bus
A951Bit 9 of the 16-bit address bus
A1048Bit 10 of the 16-bit address bus
A1145Bit 11 of the 16-bit address bus
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
LF2407A
(144-PGE)
ADDRESS, DATA, AND MEMORY CONTROL SIGNALS (CONTINUED)
CCA
, VSS, or V
DDO
2406A
(100-PZ)
be isolated from the digital supply voltage (and V
SSO
LC2404A
(100-PZ)
) should be left unconnected. All power supply pins must be connected appropriately for proper
LC2402A
(64-PAG)
and
2402A
(64-PG)
DESCRIPTION
READY is pulled low to add wait states for external accesses.
READY indicates that an external device is prepared for a bus
transaction to be completed. If the device is not ready, it pulls the
READY pin low. The processor waits one cycle and checks
READY again. Note that the processor performs
READY-detection if at least one software wait state is
programmed. To meet the external READY timing parameters,
the wait-state generator control register (WSGR) should be
programmed for at least one wait state. (↑)
Microprocessor/Microcomputer mode select. If this pin is low
during reset, the device is put in microcomputer mode and
program execution begins at 0000h of internal program memory
(Flash EEPROM). A high value during reset puts the device in
microprocessor mode and program execution begins at 0000h
of external program memory. This line sets the MP/MC
in the SCSR2 register). (↓)
Active high to enable external interface signals. If pulled low, the
2407A behaves like the 2406A/2403A/2402A—i.e., it has no
external memory and generates an illegal address if DS
asserted. This pin has an internal pulldown. (↓)
Visibility output enable (active when data bus is output). This pin
is active (low) whenever the external data bus is driving as an
output during visibility mode. Can be used by external decode
logic to prevent data bus contention while running in visibility
mode.
from digital ground) to maintain the specified accuracy
Table 2. LF240xA and LC240xA Pin List and Package Options†‡ (Continued)
2403A,
PIN NAME
A1243Bit 12 of the 16-bit address bus
A1339Bit 13 of the 16-bit address bus
A1434Bit 14 of the 16-bit address bus
A1531Bit 15 of the 16-bit address bus
D0127Bit 0 of 16-bit data bus (↑)
D1130Bit 1 of 16-bit data bus (↑)
D2132Bit 2 of 16-bit data bus (↑)
D3134Bit 3 of 16-bit data bus (↑)
D4136Bit 4 of 16-bit data bus (↑)
D5138Bit 5 of 16-bit data bus (↑)
D6143Bit 6 of 16-bit data bus (↑)
D75Bit 7 of 16-bit data bus (↑)
D89Bit 8 of 16-bit data bus (↑)
D913Bit 9 of 16-bit data bus (↑)
D1015Bit 10 of 16-bit data bus (↑)
D1117Bit 11 of 16-bit data bus (↑)
D1220Bit 12 of 16-bit data bus (↑)
D1322Bit 13 of 16-bit data bus (↑)
D1424Bit 14 of 16-bit data bus (↑)
D1527Bit 15 of 16-bit data bus (↑)
#
V
DD
#
V
DDO
†
Bold, italicized pin names indicate pin function after reset.
‡
GPIO − General-purpose input/output pin. All GPIOs come up as input after reset.
§
It is highly recommended that V
and improve the noise immunity of the ADC.
¶
Only when all of the following conditions are met: EMU1/OFF is low, TRST is low, and EMU0 is high
#
No power supply pin (VDD, V
device operation.
LEGEND: ↑− Internal pullup↓− Internal pulldown(Typical active pullup/pulldown value is ±16 µA.)
LF2407A
(144-PGE)
ADDRESS, DATA, AND MEMORY CONTROL SIGNALS (CONTINUED)
2920206
50353527
86595956
1299191
44410
42303035
67474752
775454
956464
1419898
CCA
, VSS, or V
DDO
2406A
(100-PZ)
be isolated from the digital supply voltage (and V
SSO
LC2404A
(100-PZ)
) should be left unconnected. All power supply pins must be connected appropriately for proper
LC2402A
(64-PAG)
and
2402A
(64-PG)
POWER SUPPLY
DESCRIPTION
Core supply +3.3 V. Digital logic supply voltage.
I/O buffer supply +3.3 V. Digital logic and buffer supply
voltage.
from digital ground) to maintain the specified accuracy
On-Chip Flash Memory (Sectored) − if MP/MC = 0
External Program Memory − if MP/MC
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
†
Addresses 0040h−0043h in on-chip program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved when
CNF = 1.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
†
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
†
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
†
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
Interrupt Vectors (0000−003Fh)
Reserved
User code begins at 0044h
†
(0040−0043h)
Reserved
Reserved
Reserved
Reserved
HexData
0000
005F
0060
007F
0080
00FF
0100
01FF
0200
02FF
0300
03FF
0400
04FF
0500
07FF
0800
0FFF
1000
6FFF
7000
7FFF
8000
Memory-Mapped
Registers/Reserved Addresses
On-Chip DARAM B2
Illegal
Reserved
On-Chip DARAM (B0)§ (CNF = 0)
Reserved (CNF = 1)
On-Chip DARAM (B1)
Reserved
Illegal
Reserved
Illegal
Peripheral Memory-Mapped
Registers (System, WD, ADC,
SCI, I/O, Interrupts)
¶
Illegal
FDFF
FE00
Reserved
FEFF
FF00
On-Chip DARAM (B0)
Reserved (CNF = 0)
FFFF
On-Chip ROM memory
†
Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡
When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§
When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶
Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
The TMS320x240xA software-programmable interrupt structure supports flexible on-chip and external interrupt
configurations to meet real-time interrupt-driven application requirements. The LF240xA recognizes three types
of interrupt sources.
DReset (hardware- or software-initiated) is unarbitrated by the CPU and takes immediate priority over any
other executing functions. All maskable interrupts are disabled until the reset service routine enables them.
The LF240xA devices have two sources of reset: an external reset pin and a watchdog timer time-out
(reset).
DHardware-generated interrupts are requested by external pins or by on-chip peripherals. There are two
types:
−External interrupts are generated by one of four external pins corresponding to the interrupts XINT1,
XINT2, PDPINTA, and PDPINTB. These four can be masked both by dedicated enable bits and by the
CPU interrupt mask register (IMR), which can mask each maskable interrupt line at the DSP core.
−Peripheral interrupts are initiated internally by these on-chip peripheral modules: event manager A,
event manager B, SPI, SCI, CAN, and ADC. They can be masked both by enable bits for each event in
each peripheral and by the CPU IMR, which can mask each maskable interrupt line at the DSP core.
DSoftware-generated interrupts for the LF240xA devices include:
−The INTR instruction. This instruction allows initialization of any LF240xA interrupt with software. Its
operand indicates the interrupt vector location to which the CPU branches. This instruction globally
disables maskable interrupts (sets the INTM bit to 1).
−The NMI instruction. This instruction forces a branch to interrupt vector location 24h. This instruction
globally disables maskable interrupts. 240xA devices do not have the NMI hardware signal, only
software activation is provided.
−The TRAP instruction. This instruction forces the CPU to branch to interrupt vector location 22h. The
TRAP instruction does not disable maskable interrupts (INTM is not set to 1); therefore, when the CPU
branches to the interrupt service routine, that routine can be interrupted by the maskable hardware
interrupts.
−An emulator trap. This interrupt can be generated with either an INTR instruction or a TRAP instruction.
Six core interrupts (INT1−INT6) are expanded using a peripheral interrupt expansion (PIE) module identical to
the F24x devices. The PIE manages all the peripheral interrupts from the 240xA peripherals and are grouped to
share the six core level interrupts. Figure 9 shows the PIE block diagram for hardware-generated interrupts.
The PIE block diagram (Figure 9) and the interrupt table (Table 3) explain the grouping and interrupt vector
maps. LF240xA devices have interrupts identical to those of the F24x devices and should be completely
code-compatible. 240xA devices also have peripheral interrupts identical to those of the F24x − plus additional
interrupts for new peripherals such as event manager B. Though the new interrupts share the 24x interrupt
grouping, they all have a unique vector to differentiate among the interrupts. See Table 3 for details.
30
POST OFFICE BOX 1443 • HOUSTON, TEXAS 77251−1443
Loading...
+ 104 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.