Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,
enhancements, improvements, and other changes to its products and services at any time and to discontinue
any product or service without notice. Customers should obtain the latest relevant information before placing
orders and should verify that such information is current and complete. All products are sold subject to TI’s terms
and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI
deems necessary to support this warranty . Except where mandated by government requirements, testing of all
parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for
their products and applications using TI components. To minimize the risks associated with customer products
and applications, customers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right,
copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process
in which TI products or services are used. Information published by TI regarding third-party products or services
does not constitute a license from TI to use such products or services or a warranty or endorsement thereof.
Use of such information may require a license from a third party under the patents or other intellectual property
of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is without
alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction
of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for
such altered documentation.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that
product or service voids all express and any implied warranties for the associated TI product or service and
is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
Following are URLs where you can obtain information on other Texas Instruments products and application
solutions:
ProductsApplications
Amplifiersamplifier.ti.comAudiowww.ti.com/audio
Data Convertersdataconverter.ti.comAutomotivewww.ti.com/automotive
DSPdsp.ti.comBroadbandwww.ti.com/broadband
Interfaceinterface.ti.comDigital Controlwww.ti.com/digitalcontrol
Logiclogic.ti.comMilitarywww.ti.com/military
Power Mgmtpower.ti.comOptical Networkingwww.ti.com/opticalnetwork
Microcontrollersmicrocontroller.ti.comSecuritywww.ti.com/security
Telephonywww.ti.com/telephony
Video & Imagingwww.ti.com/video
Wirelesswww.ti.com/wireless
Mailing Address:Texas Instruments
Post Office Box 655303 Dallas, Texas 75265
Copyright 2005, Texas Instruments Incorporated
Revision History
REVISION HISTORY
This data sheet revision history highlights the technical changes made to the SPRS174L device-specific data
sheet to make it an SPRS174M revision.
Global change:
PAGE
NO.
ADDITIONS/CHANGES/DELETIONS
15Deleted the note on Table 2−1 on temperature options
22Modified description of TRST in Table 2−2
26Changed description of GPIOD0, GPIOD1, GPIOD5, and GPIOD6 signals
19Changed some signals in Table 2−2 from I/O/Z to I/O and changed some descriptions to include GPIO
29Changed Peripheral Frame data in memory map (Figure 3−2)
30Changed Peripheral Frame data in memory map (Figure 3−3)
31Changed Peripheral Frame data in memory map (Figure 3−4)
36Changed note in Section 3.2.6 by deleting “the pipeline mode is not available for the OTP block.”
37Changed header format of Table 3−4
37Modified note under Section 3.2.11, making “passwords” singular instead of plural
39Modified description of low-power modes in Section 3.2.17
43Changed DEVICEID to REVID and reserved to PARTID in Table 3−8
45Modified text in Section 3.5.1
57Modified note in Section 4.1 concerning use of CPU timers
91Modified 6.1 Absolute Maximum Ratings table (added junction temperature range, removed note on S version temperature
range, and removed V
92Deleted note on temperature options from 6.2 Recommended Operating Conditions
93Changed IOZ in 6.3 Electrical Characteristics Over Recommended Operating Conditions
94Modified 6.4 Current Consumption by Power−supply Pins Over Recommended Operating conditions During Low-Power
Modes at 150-MHz SYSCLKOUT (TMS320F281x) table
94Modified 6.5 Current Consumption by Power-Supply Pins Over Recommended Operating conditions During Low-Power
Modes at 150-MHz SYSCLKOUT (TMS320C281x)
95Changed wording of note in Figure 6−1
96Changed wording of note in Figure 6−3
97Changed I
99Modified Section 6.9, Signal Transition Levels
101Modified Table 6−4, adding values for XCLKIN with and without PLL
102Modified Table 6−5
April 2001 − Revised October 2005SPRS174M
OCA
to I
DD3VFL
DDA
range)
in note in Table 6−1
3
Revision History
PAGE
NO.
103Modified Table 6−9
108Modified Table 6−11 by moving values from MIN column to MAX column
109Modified Table 6−13 by moving values from MIN column to MAX column
109Modified t
110Modified note C in Figure 6−16
110Modified Table 6−15 by moving values from MIN column to MAX column
111Changed equation for IQT in note on Table 6−17
113Changed equation for IQT in note on Table 6−21
115Changed equation for IQT in note on Table 6−23
115Modified Figure 6−23
128, 132 Clarified (in Table 6−32 and Table 6−37) that t
141Changed bit numbers and register in Table 6−44
149, 150,
151, 152
ADDITIONS/CHANGES/DELETIONS
d(WAKE-STBY)
XR/W
goes inactive high. Previously it was described as the minimum time external devices should wait to drive the data
bus.
Changed value of 4.5 MHz to 4.6875 MHz in note on Table 6−50, Table 6−52, Table 6−54, and Table 6−56
duration in Figure 6−15
dis(XD)XRNW
is the maximum time the DSP takes to release the data bus after
153Modified Table 6−57
153Added the word ambient to temperature ranges in 6.32.1
154Added new section header 6.33 for ROM timing
− 128-Pin LQFP Without External Memory
Interface (PBK) (2810, 2811)
DTemperature Options:
− A: −40°C to 85°C (GHH, ZHH, PGF, PBK)
− S/Q: −40°C to 125°C (GHH, ZHH, PGF,
PBK)
TMS320C24x, Code Composer Studio, DSP/BIOS, and MicroStar BGA are trademarks of Texas Instruments.
†
IEEE Standard 1149.1−1990, IEEE Standard Test-Access Port
April 2001 − Revised October 2005SPRS174M
13
Introduction
2Introduction
This section provides a summary of each device’s features, lists the pin assignments, and describes the
function of each pin. This document also provides detailed descriptions of peripherals, electrical
specifications, parameter measurement information, and mechanical data about the available packaging.
2.1Description
The TMS320F2810, TMS320F2811, TMS320F2812, TMS320C2810, TMS320C2811, and TMS320C2812
devices, members of the TMS320C28x DSP generation, are highly integrated, high-performance solutions
for demanding control applications. The functional blocks and the memory maps are described in Section 3,
Functional Overview.
Throughout this document, TMS320F2810, TMS320F2811, and TMS320F2812 are abbreviated as F2810,
F2811, and F2812, respectively. F281x denotes all three Flash devices. TMS320C2810, TMS320C2811, and
TMS320C2812 are abbreviated as C2810, C2811, and C2812, respectively. C281x denotes all three ROM
devices. 2810 denotes both F2810 and C2810 devices; 2811 denotes both F2811 and C2811 devices; and
2812 denotes both F2812 and C2812 devices.
TMS320C28x is a trademark of Texas Instruments.
All trademarks are the property of their respective owners.
14
April 2001 − Revised October 2005SPRS174M
Introduction
2.2Device Summary
Table 2−1 provides a summary of each device’s features.
The TMS320F2810, TMS320F2811, TMS320F2812, TMS320C2810, TMS320C2811, TMS320C2812 Digital Signal Processors Silicon Errata
(literature number SPRZ193) has been posted on the Texas Instruments (TI) website. It will be updated as needed.
‡
On C281x devices, OTP is replaced by a 1K X 16 block of ROM.
§
See Section 5.1, Device and Development Support Nomenclature for descriptions of device stages.
§
85°C
S/Q: −40°C to
125°C
18K18K18K18K18K18K
YesYesYesYesYesYes
EVA, EVBEVA, EVBEVA, EVBEVA, EVBEVA, EVBEVA, EVB
179-ball GHH
and ZHH
176-pin PGF
YesYesYesYesYesYes
YesYesYesYesYesYes
TMSTMSTMSTMSTMSTMS
†
‡
128-pin PBK128-pin PBK
Yes
‡
‡
Yes
179-ball GHH
and ZHH
176-pin PGF
April 2001 − Revised October 2005SPRS174M
15
Introduction
2.3Pin Assignments
Figure 2−1 illustrates the ball locations for the 179-ball GHH and ZHH ball grid array (BGA) package.
Figure 2−2 shows the pin assignments for the 176-pin PGF low-profile quad flatpack (LQFP) and Figure 2−3
shows the pin assignments for the 128-pin PBK LQFP. Table 2−2 describes the function(s) of each pin.
2.3.1Terminal Assignments for the GHH Package
See Table 2−2 for a description of each terminal’s function(s).
The TMS320F2812 and TMS320C2812 176-pin PGF low-profile quad flatpack (LQFP) pin assignments are
shown in Figure 2−2. See Table 2−2 for a description of each pin’s function(s).
Figure 2−2. TMS320F2812 and TMS320C2812 176-Pin PGF LQFP (Top View)
April 2001 − Revised October 2005SPRS174M
17
Introduction
2.3.3Pin Assignments for the PBK Package
The TMS320F2810, TMS320F2811, TMS320C2810, and TMS320C2811 128-pin PBK low-profile quad
flatpack (LQFP) pin assignments are shown in Figure 2−3. See Table 2−2 for a description of each pin’s
function(s).
Figure 2−3. TMS320F2810, TMS320F2811, TMS320C2810, and TMS320C2811 128-Pin PBK LQFP
(Top View)
18
April 2001 − Revised October 2005SPRS174M
2.4Signal Descriptions
‡
§
19-bit XINTF Address Bus
Table 2−2 specifies the signals on the F281x and C281x devices. All digital inputs are TTL-compatible. All
outputs are 3.3 V with CMOS levels. Inputs are not 5-V tolerant. A 100-µA (or 20-µA) pullup/pulldown is used.
Typical drive strength of the output buffer for all pins is 4 mA except for TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins, which are 8 mA.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
176-PIN
PGF
128-PIN
PBK
I/O/Z
XINTF SIGNALS (2812 ONLY)
PU/PD
19-bit XINTF Address Bus
16-bit XINTF Data Bus
†
DESCRIPTION
April 2001 − Revised October 2005SPRS174M
19
Introduction
Table 2−2. Signal Descriptions
PIN NO.
‡
NAMEDESCRIPTIONPU/PD
NAMEDESCRIPTIONPU/PD
XMP/MCF117−IPD
XHOLDE7159−IPU
XHOLDAK1082−O/Z−
XZCS0AND1P144−O/Z−
XZCS2P1388−O/Z−
XZCS6AND7B13133−O/Z−
XWEN1184−O/Z−
XRDM342−O/Z−
XR/WN451−O/Z−
†
Typical drive strength of the output buffer for all pins is 4 mA except for TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins, which are 8 mA.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
176-PIN
PGF
128-PIN
PBK
XINTF SIGNALS (2812 ONLY) (CONTINUED)
I/O/Z
I/O/Z
‡
†
(Continued)
§
§
Microprocessor/Microcomputer Mode Select. Switches
between microprocessor and microcomputer mode. When
high, Zone 7 is enabled on the external interface. When low,
Zone 7 is disabled from the external interface, and on-chip
boot ROM may be accessed instead. This signal is latched
into the XINTCNF2 register on a reset and the user can modify
this bit in software. The state of the XMP/MC
after reset.
External Hold Request. XHOLD, when active (low), requests
the XINTF to release the external bus and place all buses and
strobes into a high-impedance state. The XINTF will release
the bus when any current access is complete and there are no
pending accesses on the XINTF.
External Hold Acknowledge. XHOLDA is driven active (low)
when the XINTF has granted a XHOLD
buses and strobe signals will be in a high-impedance state.
XHOLDA is released when the XHOLD signal is released.
External devices should only drive the external bus when
XHOLDA
XINTF Zone 0 and Zone 1 Chip Select. XZCS0AND1 is active
(low) when an access to the XINTF Zone 0 or Zone 1 is
performed.
XINTF Zone 2 Chip Select. XZCS2 is active (low) when an
access to the XINTF Zone 2 is performed.
XINTF Zone 6 and Zone 7 Chip Select. XZCS6AND7 is active
(low) when an access to the XINTF Zone 6 or Zone 7 is
performed.
Write Enable. Active-low write strobe. The write strobe
waveform is specified, per zone basis, by the Lead, Active,
and Trail periods in the XTIMINGx registers.
Read Enable. Active-low read strobe. The read strobe
waveform is specified, per zone basis, by the Lead, Active,
and Trail periods in the XTIMINGx registers. NOTE: The XRD
and XWE signals are mutually exclusive.
Read Not Write Strobe. Normally held high. When low, XR/W
indicates write cycle is active; when high, XR/W indicates read
cycle is active.
is active (low).
pin is ignored
request. All XINTF
20
April 2001 − Revised October 2005SPRS174M
Introduction
Table 2−2. Signal Descriptions
PIN NO.
‡
NAMEDESCRIPTIONPU/PD
NAMEDESCRIPTIONPU/PD
XREADYB6161−IPU
X1/XCLKINK97758I
X2M97657OOscillator Output
XCLKOUTF1111987O−
TESTSELA1313497IPDTest Pin. Reserved for TI. Must be connected to ground.
179-PIN
GHH
176-PIN
PGF
128-PIN
PBK
XINTF SIGNALS (2812 ONLY) (CONTINUED)
JTAG AND MISCELLANEOUS SIGNALS
I/O/Z
I/O/Z
‡
†
(Continued)
§
§
Ready Signal. Indicates peripheral is ready to complete the
access when asserted to 1. XREADY can be configured to be
a synchronous or an asynchronous input. See the timing
diagrams for more details.
Oscillator Input − input to the internal oscillator. This pin is also
used to feed an e x t e r n a l clock. The 28x can be operated with
an external clock source, provided that the proper voltage
levels be driven on the X1/XCLKIN pin. It should be noted that
the X1/XCLKIN pin is referenced to the 1.8-V (or 1.9-V) core
digital power supply (VDD), rather than the 3.3-V I/O supply
(V
). A clamping diode may be used to clamp a buffered
DDIO
clock signal to ensure that the logic-high level does not
exceed VDD (1.8 V or 1.9 V) or a 1.8-V oscillator may be used.
Output clock derived from SYSCLKOUT to be used for
external wait-state generation and as a general-purpose clock
source. XCLKOUT is either the same frequency, 1/2 the
frequency, or 1/4 the frequency of SYSCLKOUT. At reset,
XCLKOUT = SYSCLKOUT/4. The XCLKOUT signal can be
turned of f by setting bit 3 (CLKOFF) of the XINTCNF2 register
to 1. Unlike other GPIO pins, the XCLKOUT pin is not placed
in a high impedance state during reset.
Device Reset (in) and Watchdog Reset (out).
Device reset. XRS
The PC will point to the address contained at the location
0x3FFFC0. When XRS
begins at the location pointed to by the PC. This pin is driven
XRSD6160113I/OPU
TEST1M76751I/O−
TEST2N76650I/O−
†
Typical drive strength of the output buffer for all pins is 4 mA except for TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins, which are 8 mA.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
low by the DSP when a watchdog reset occurs. During
watchdog reset, the XRS
watchdog reset duration of 512 XCLKIN cycles.
The output buffer of this pin is an open-drain with an internal
pullup (100 µA, typical). It is recommended that this pin be
driven by an open-drain device.
Test Pin. Reserved for TI. On F281x devices, TEST1 must be
left unconnected. On C281x devices, this pin is a “no connect
(NC)” (i.e., this pin is not connected to any circuitry internal
to the device).
Test Pin. Reserved for TI. On F281x devices, TEST2 must be
left unconnected. On C281x devices, this pin is a “no connect
(NC)” (i.e., this pin is not connected to any circuitry internal
to the device).
causes the device to terminate execution.
is brought to a high level, execution
pin will be driven low for the
April 2001 − Revised October 2005SPRS174M
21
Introduction
pins should not be driven before V
, V
, and V
pins have been fully powered up.
Table 2−2. Signal Descriptions
PIN NO.
‡
NAMEDESCRIPTIONPU/PD
NAMEDESCRIPTIONPU/PD
TRSTB1213598IPD
TCKA1213699IPUJTAG test clock with internal pullup
Typical drive strength of the output buffer for all pins is 4 mA except for TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins, which are 8 mA.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
176-PIN
PGF
128-PIN
PBK
ADC ANALOG INPUT SIGNALS
I/O/Z
I/O/Z
‡
JTAG
†
(Continued)
§
§
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.
NOTE: Do not use pullup resistors on TRST
pulldown device. TRST
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.
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 data input (TDI) with internal pullup. TDI is clocked
into the selected register (instruction or data) on a rising e dg e
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.
Emulator pin 0. 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. 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.
8-Channel analog inputs for Sample-and-Hold A. The ADC
ADCRESEXTF21616OADC External Current Bias Resistor (24.9 kΩ ±5%)
ADCBGREFINE6164116Test Pin. Reserved for TI. Must be left unconnected.
AVSSREFBGE31212ADC Analog GND
AVDDREFBGE11313ADC Analog Power (3.3-V)
ADCLOB3175127Common Low Side Analog Input. Connect to analog ground.
V
SSA1
V
SSA2
V
DDA1
V
DDA2
V
SS1
V
DD1
V
DDAIO
V
SSAIO
†
Typical drive strength of the output buffer for all pins is 4 mA except for TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins, which are 8 mA.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
F31515ADC Analog GND
C5165117ADC Analog GND
F41414ADC Analog 3.3-V Supply
A5166118ADC Analog 3.3-V Supply
C6163115ADC Digital GND
A6162114ADC Digital 1.8-V (or 1.9-V) Supply
B2113.3-V Analog I/O Power Pin
A2176128Analog I/O Ground Pin
176-PIN
PGF
128-PIN
PBK
ADC ANALOG INPUT SIGNALS (CONTINUED)
I/O/Z
I/O/Z
‡
†
(Continued)
§
§
8-Channel Analog Inputs for Sample-and-Hold B. The ADC
DDA1
ADC Voltage Reference Output (2 V). Requires a low ESR
(50 mΩ − 1.5 Ω) ceramic bypass capacitor of 10 µF to analog
ground. (Can accept external reference input (2 V) if the
software bit is enabled for this mode. 1−10 µF low ESR
capacitor can be used in the external reference mode.)
ADC Voltage Reference Output (1 V). Requires a low ESR
(50 mΩ − 1.5 Ω) ceramic bypass capacitor of 10 µF to analog
ground. (Can accept external reference input (1 V) if the
software bit is enabled for this mode. 1−10 µF low ESR
capacitor can be used in the external reference mode.)
DDA2
April 2001 − Revised October 2005SPRS174M
23
Introduction
,
Recommended Operating Conditions, for voltage
requirements.
Table 2−2. Signal Descriptions
PIN NO.
‡
NAMEDESCRIPTIONPU/PD
NAMEDESCRIPTIONPU/PD
V
DD
V
DD
V
DD
V
DD
V
DD
V
DD
V
DD
V
DD
V
DD
V
DD
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
SS
V
DDIO
V
DDIO
V
DDIO
V
DDIO
V
DDIO
V
DDIO
V
DD3VFL
†
Typical drive strength of the output buffer for all pins is 4 mA except for TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins, which are 8 mA.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
1.8-V or 1.9-V Core Digital Power Pins. See Section 6.2
Core and Digital I/O Ground Pins
3.3-V I/O Digital Power Pins
3.3-V Flash Core Power Pin. This pin should be connected to
3.3 V at all times after power-up sequence requirements have
been met. This pin is used as VDDIO in ROM parts and must
be connected to 3.3 V in ROM parts as well.
24
April 2001 − Revised October 2005SPRS174M
Table 2−2. Signal Descriptions† (Continued)
§
PIN NO.
GPIOPERIPHERAL SIGNAL
GPIOA0PWM1 (O)M129268I/OPUGPIO or PWM Output Pin #1
GPIOA1PWM2 (O)M149369I/OPUGPIO or PWM Output Pin #2
GPIOA2PWM3 (O)L129470I/OPUGPIO or PWM Output Pin #3
GPIOA3PWM4 (O)L139571I/OPUGPIO or PWM Output Pin #4
GPIOA4PWM5 (O)K119872I/OPUGPIO or PWM Output Pin #5
GPIOA5PWM6 (O)K1410175I/OPUGPIO or PWM Output Pin #6
GPIOA6T1PWM_T1CMP (I)J1110276I/OPUGPIO or Timer 1 Output
GPIOA7T2PWM_T2CMP (I)J1310477I/OPUGPIO or Timer 2 Output
GPIOA8CAP1_QEP1 (I)H1010678I/OPUGPIO or Capture Input #1
GPIOA9CAP2_QEP2 (I)H1110779I/OPUGPIO or Capture Input #2
GPIOA10CAP3_QEPI1 (I)H1210980I/OPUGPIO or Capture Input #3
GPIOA11TDIRA (I)F1411685I/OPUGPIO or Timer Direction
GPIOA12TCLKINA (I)F1311786I/OPUGPIO or Timer Clock Input
GPIOA13C1TRIP (I)E1312289I/OPUGPIO or Compare 1 Output Trip
GPIOA14C2TRIP (I)E1112390I/OPUGPIO or Compare 2 Output Trip
GPIOA15C3TRIP (I)F1012491I/OPUGPIO or Compare 3 Output Trip
GPIOB0PWM7 (O)N24533I/OPUGPIO or PWM Output Pin #7
GPIOB1PWM8 (O)P24634I/OPUGPIO or PWM Output Pin #8
GPIOB2PWM9 (O)N34735I/OPUGPIO or PWM Output Pin #9
GPIOB3PWM10 (O)P34836I/OPUGPIO or PWM Output Pin #10
GPIOB4PWM11 (O)L44937I/OPUGPIO or PWM Output Pin #11
GPIOB5PWM12 (O)M45038I/OPUGPIO or PWM Output Pin #12
GPIOB6T3PWM_T3CMP (I)K55340I/OPUGPIO or Timer 3 Output
GPIOB7T4PWM_T4CMP (I)N55541I/OPUGPIO or Timer 4 Output
GPIOB8CAP4_QEP3 (I)M55743I/OPUGPIO or Capture Input #4
GPIOB9CAP5_QEP4 (I)M65944I/OPUGPIO or Capture Input #5
GPIOB10CAP6_QEPI2 (I)P66045I/OPUGPIO or Capture Input #6
GPIOB11TDIRB (I)L87154I/OPUGPIO or Timer Direction
GPIOB12TCLKINB (I)K87255I/OPUGPIO or Timer Clock Input
GPIOB13C4TRIP (I)N66146I/OPUGPIO or Compare 4 Output Trip
GPIOB14C5TRIP (I)L66247I/OPUGPIO or Compare 5 Output Trip
GPIOB15C6TRIP (I)K76348I/OPUGPIO or Compare 6 Output Trip
†
Typical drive strength of the output buffer for all pins [except TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins] is 4 mA typical.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
176-PIN
PGF
GPIO OR PERIPHERAL SIGNALS
GPIOA OR EVA SIGNALS
GPIOB OR EVB SIGNALS
128-PIN
PBK
I/O/Z‡PU/PD
DESCRIPTION
Introduction
April 2001 − Revised October 2005SPRS174M
25
Introduction
§
Table 2−2. Signal Descriptions† (Continued)
PIN NO.
GPIOPERIPHERAL SIGNAL
GPIOD0T1CTRIP_PDPINTA (I)H1411081I/OPUGPIO or Timer 1 Compare Output Trip
GPIOD1T2CTRIP/EVASOC (I)G1011584I/OPU
GPIOD5T3CTRIP_PDPINTB (I)P107960I/OPUGPIO or Timer 3 Compare Output Trip
GPIOD6T4CTRIP/EVBSOC (I)P118361I/OPU
GPIOE0XINT1_XBIO (I)D9149106I/O/Z−GPIO or XINT1 or XBIO input
GPIOE1XINT2_ADCSOC (I)D8151108I/O/Z−GPIO or XINT2 or ADC start of conversion
GPIOE2XNMI_XINT13 (I)E8150107I/OPUGPIO or XNMI or XINT13
GPIOF0SPISIMOA (O)M14031I/O/Z−GPIO or SPI slave in, master out
GPIOF1SPISOMIA (I)N14132I/O/Z−GPIO or SPI slave out, master in
GPIOF2SPICLKA (I/O)K23427I/O/Z−GPIO or SPI clock
GPIOF3SPISTEA (I/O)K43528I/O/Z−GPIO or SPI slave transmit enable
GPIOF4SCITXDA (O)C7155111I/OPU
GPIOF5SCIRXDA (I)A7157112I/OPU
GPIOF6CANTXA (O)N128764I/OPUGPIO or eCAN transmit data
GPIOF7CANRXA (I)N138965I/OPUGPIO or eCAN receive data
GPIOF8MCLKXA (I/O)J12823I/OPUGPIO or transmit clock
GPIOF9MCLKRA (I/O)H22521I/OPUGPIO or receive clock
GPIOF10MFSXA (I/O)H42622I/OPUGPIO or transmit frame synch
GPIOF11MFSRA (I/O)J22924I/OPUGPIO or receive frame synch
GPIOF12MDXA (O)G12219I/O−GPIO or transmitted serial data
GPIOF13MDRA (I)G22018I/OPUGPIO or received serial data
†
Typical drive strength of the output buffer for all pins [except TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins] is 4 mA typical.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
176-PIN
PGF
GPIOD OR EVA SIGNALS
GPIOD OR EVB SIGNALS
GPIOE OR INTERRUPT SIGNALS
GPIOF OR SPI SIGNALS
GPIOF OR SCI-A SIGNALS
GPIOF OR CAN SIGNALS
GPIOF OR McBSP SIGNALS
128-PIN
PBK
I/O/Z‡PU/PD
DESCRIPTION
GPIO or Timer 2 Compare Output Trip or
External ADC Start-of-Conversion EV-A
GPIO or Timer 4 Compare Output Trip or
External ADC Start-of-Conversion EV-B
GPIO or SCI asynchronous serial port TX
data
GPIO or SCI asynchronous serial port RX
data
26
April 2001 − Revised October 2005SPRS174M
Table 2−2. Signal Descriptions† (Continued)
§
PIN NO.
GPIOPERIPHERAL SIGNAL
GPIOF14XF_XPLLDIS (O)A11140101I/OPU
GPIOG4SCITXDB (O)P149066I/O/Z−
GPIOG5SCIRXDB (I)M139167I/O/Z−
†
Typical drive strength of the output buffer for all pins [except TDO, XCLKOUT, XF, XINTF, EMU0, and EMU1 pins] is 4 mA typical.
‡
I = Input, O = Output, Z = High impedance
§
PU = pin has internal pullup; PD = pin has internal pulldown. Pullup/pulldown strength is given in Section 6.3.
179-PIN
GHH
176-PIN
PGF
GPIOF OR XF CPU OUTPUT SIGNAL
GPIOG OR SCI-B SIGNALS
128-PIN
PBK
I/O/Z‡PU/PD
DESCRIPTION
This pin has three functions:
1. XF − General-purpose output pin.
2. XPLLDIS − This pin is sampled
during reset to check whether the PLL
must be disabled. The PLL will be
disabled if this pin is sensed low. HALT
and STANDBY modes cannot be used
when the PLL is disabled.
3. GPIO − GPIO function
GPIO or SCI asynchronous serial port
transmit data
GPIO or SCI asynchronous serial port
receive data
NOTE:
Other than the power supply pins, no pin should be driven before the 3.3-V rail has reached
recommended operating conditions. However , i t i s acceptable for an I/O pin to ramp along with
the 3.3-V supply.
Introduction
April 2001 − Revised October 2005SPRS174M
27
Functional Overview
3Functional Overview
Memory Bus
GPIO Pins
TINT0
TINT1
G
P
I
O
M
U
X
XINT13
XNMI
CPU-Timer 0
CPU-Timer 1
CPU-Timer 2
TINT2
PIE
(96 interrupts)
External Interrupt
Control
(XINT1/2/13, XNMI)
SCIA/SCIB
SPIFIFO
McBSP
eCAN
EVA/EVB
(A)
FIFO
FIFO
INT14
INT[12:1]
INT13
NMI
C28x CPU
Real-Time JTAG
External
Interface
(B)
(XINTF)
M0 SARAM
1K x 16
M1 SARAM
1K x 16
L0 SARAM
4K x 16
L1 SARAM
4K x 16
Flash
128K x 16 (F2812)
128K x 16 (F2811)
64K x 16 (F2810)
Control
Address(19)
Data(16)
XRS
X1/XCLKIN
X2
XF_XPLLDIS
NOTES: A. 45 of the possible 96 interrupts are used on the devices.
16 Channels
(Oscillator and PLL
Peripheral Clocking
Protected by the code-security module.
B. XINTF is available on the F2812 and C2812 devices only.
C. On C281x devices, the OTP is replaced with a 1K X 16 block of ROM
Only one of these vector maps—M0 vector, PIE vector, BROM vector, XINTF vector—should be enabled at a time.
NOTES: A. Memory blocks are not to scale.
B. Reserved locations are reserved for future expansion. Application should not access these areas.
C. Boot ROM and Zone 7 memory maps are active either in on-chip or XINTF zone depending on MP/MC
D. Peripheral Frame 0, Peripheral Frame 1, and Peripheral Frame 2 memory maps are restricted to data memory only. User program
cannot access these memory maps in program space.
E. “Protected” means the order of Write followed by Read operations is preserved rather than the pipeline order.
F. Certain memory ranges are EALLOW protected against spurious writes after configuration.
G. Zones 0 and 1 and Zones 6 and 7 share the same chip select; hence, these memory blocks have mirrored locations.
Only one of these vector maps—M0 vector, PIE vector, BROM vector, XINTF vector—should be enabled at a time.
NOTES: A. Memory blocks are not to scale.
B. Reserved locations are reserved for future expansion. Application should not access these areas.
C. Peripheral Frame 0, Peripheral Frame 1, and Peripheral Frame 2 memory maps are restricted to data memory only. User program
cannot access these memory maps in program space.
D. “Protected” means the order of Write followed by Read operations is preserved rather than the pipeline order.
E. Certain memory ranges are EALLOW protected against spurious writes after configuration.
Only one of these vector maps—M0 vector, PIE vector, BROM vector—should be enabled at a time.
NOTES: A. Memory blocks are not to scale.
B. Reserved locations are reserved for future expansion. Application should not access these areas.
C. Peripheral Frame 0, Peripheral Frame 1, and Peripheral Frame 2 memory maps are restricted to data memory only. User program
cannot access these memory maps in program space.
D. “Protected” means the order of Write followed by Read operations is preserved rather than the pipeline order.
E. Certain memory ranges are EALLOW protected against spurious writes after configuration.
0x3D 7800
0x3D 7C00
0x3E 8000
0x3F 7FF8
0x3F 8000
0x3F A000
0x3F F000
0x3F FFC0
Reserved
OTP (or ROM) (1K × 16, Secure Block)
Reserved
Flash (or ROM) (64K × 16, Secure Block)
128-Bit Password
H0 SARAM (8K × 16)
Reserved
Boot ROM (4K × 16)
(Enabled if MP/MC
BROM Vector - ROM (32 × 32)
(Enabled if VMAP = 1, MP/MC
= 0)
= 0, ENPIE = 0)
Figure 3−4. F2810/C2810 Memory Map
April 2001 − Revised October 2005SPRS174M
31
Functional Overview
Table 3−1. Addresses of Flash Sectors in F2812 and F2811
ADDRESS RANGEPROGRAM AND DATA SPACE
0x3D 8000
0x3D 9FFF
0x3D A000
0x3D BFFF
0x3D C000
0x3D FFFF
0x3E 0000
0x3E 3FFF
0x3E 4000
0x3E 7FFF
0x3E 8000
0x3E BFFF
0x3E C000
0x3E FFFF
0x3F 0000
0x3F 3FFF
0x3F 4000
0x3F 5FFF
0x3F 6000Sector A, 8K x 16
0x3F 7F80
0x3F 7FF5
0x3F 7FF6
0x3F 7FF7
0x3F 7FF8
0x3F 7FFF
Program to 0x0000 when using the
Boot-to-Flash (or ROM) Entry Point
Sector J, 8K x 16
Sector I, 8K x 16
Sector H, 16K x 16
Sector G, 16K x 16
Sector F, 16K x 16
Sector E, 16K x 16
Sector D, 16K x 16
Sector C, 16K x 16
Sector B, 8K x 16
Code Security Module
(program branch instruction here)
Security Password (128-Bit)
(Do not program to all zeros)
Table 3−2. Addresses of Flash Sectors in F2810
ADDRESS RANGEPROGRAM AND DATA SPACE
0x3E 8000
0x3E BFFF
0x3E C000
0x3E FFFF
0x3F 0000
0x3F 3FFF
0x3F 4000
0x3F 5FFF
0x3F 6000Sector A, 8K x 16
0x3F 7F80
0x3F 7FF5
0x3F 7FF6
0x3F 7FF7
0x3F 7FF8
0x3F 7FFF
Sector E, 16K x 16
Sector D, 16K x 16
Sector C, 16K x 16
Sector B, 8K x 16
Program to 0x0000 when using the
Code Security Module
Boot-to-Flash (or ROM) Entry Point
(program branch instruction here)
Security Password (128-Bit)
(Do not program to all zeros)
32
April 2001 − Revised October 2005SPRS174M
Functional Overview
The “Low 64K” of the memory address range maps into the data space of the 240x. The “High 64K” of the
memory address range maps into the program space of the 24x/240x. 24x/240x-compatible code will execute
only from the “High 64K” memory area. Hence, the top 32K of Flash/ROM and H0 SARAM block can be used
to run 24x/240x-compatible code (if MP/MC
Zone 7 (if MP/MC
mode is high).
mode is low) or, on the 2812, code can be executed from XINTF
The XINTF consists of five independent zones. One zone has its own chip select and the remaining four zones
share two chip selects. Each zone can be programmed with its own timing (wait states) and to either sample
or ignore external ready signal. This makes interfacing to external peripherals easy and glueless.
NOTE:
The chip selects of XINTF Zone 0 and Zone 1 are merged into a single chip select
(XZCS0AND1
select (XZCS6AND7
); and the chip selects of XINTF Zone 6 and Zone 7 are merged into a single chip
). See Section 3.5, “External Interface, XINTF (2812 only)”, for details.
Peripheral Frame 1, Peripheral Frame 2, and XINTF Zone 1 are grouped together to enable these blocks to
be “write/read peripheral block protected”. The “protected” mode ensures that all accesses to these blocks
happen as written. Because of the C28x pipeline, a write immediately followed by a read, to different memory
locations, will appear in reverse order on the memory bus of the CPU. This can cause problems in certain
peripheral applications where the user expected the write to occur first (as written). The C28x CPU supports
a block protection mode where a region of memory can be protected to make sure that operations occur as
written (the penalty is extra cycles that are added to align the operations). This mode is programmable and,
by default, it will protect the selected zones.
On the 2812, at reset, XINTF Zone 7 is accessed if the XMP/MC
pin is pulled high. This signal selects
microprocessor or microcomputer mode of operation. In microprocessor mode, Zone 7 is mapped to high
memory such that the vector table is fetched externally. The Boot ROM is disabled in this mode. In
microcomputer mode, Zone 7 is disabled such that the vectors are fetched from Boot ROM. This allows the
user to either boot from on-chip memory or from off-chip memory. The state of the XMP/MC
is stored in an MP/MC
mode bit in the XINTCNF2 register. The user can change this mode in software and
signal on reset
hence control the mapping of Boot ROM and XINTF Zone 7. No other memory blocks are affected by
XMP/MC
.
I/O space is not supported on the 2812 XINTF.
The wait states for the various spaces in the memory map area are listed in Table 3−3.
April 2001 − Revised October 2005SPRS174M
33
Functional Overview
AREAWAIT-STATESCOMMENTS
M0 and M1 SARAMs0-waitFixed
Peripheral Frame 00-waitFixed
Peripheral Frame 1
Peripheral Frame 2
L0 & L1 SARAMs0-waitFixed
OTP (or ROM)
Flash (or ROM)
H0 SARAM0-waitFixed
Boot-ROM1-waitFixed
XINTF
0-wait (writes)
2-wait (reads)
0-wait (writes)
2-wait (reads)
Programmable,
1-wait minimum
Programmable,
0-wait minimum
Programmable,
1-wait minimum
3.2Brief Descriptions
Table 3−3. Wait States
Fixed
Fixed
Programmed via the Flash registers. 1-wait-state operation is possible at a
reduced CPU frequency. See Section 3.2.6, Flash (F281x Only), for more
information.
Programmed via the Flash registers. 0-wait-state operation is possible at
reduced CPU frequency. The CSM password locations are hardwired for
16 wait-states. See Section 3.2.6, Flash (F281x Only), for more information.
Programmed via the XINTF registers.
Cycles can be extended by external memory or peripheral.
0-wait operation is not possible.
3.2.1C28x CPU
The C28x DSP generation is the newest member of the TMS320C2000 DSP platform. The C28x is source
code compatible to the 24x/240x DSP devices, hence existing 240x users can leverage their significant
software investment. Additionally, the C28x is a very efficient C/C++ engine, enabling users to develop not
only their system control software in a high-level language, but also enables math algorithms to be developed
using C/C++. The C28x is as efficient in DSP math tasks as it is in system control tasks that typically are
handled by microcontroller devices. This efficiency removes the need for a second processor in many
systems. The 32 x 32-bit MAC capabilities of the C28x and its 64-bit processing capabilities, enable the C28x
to efficiently handle higher numerical resolution problems that would otherwise demand a more expensive
floating-point processor solution. Add to this the fast interrupt response with automatic context save of critical
registers, resulting in a device that is capable of servicing many asynchronous events with minimal latency.
The C28x has an 8-level-deep protected pipeline with pipelined memory accesses. This pipelining enables
the C28x to execute at high speeds without resorting to expensive high-speed memories. Special
branch-look-ahead hardware minimizes the latency for conditional discontinuities. Special store conditional
operations further improve performance.
C28x and TMS320C2000 are trademarks of Texas Instruments.
34
April 2001 − Revised October 2005SPRS174M
3.2.2Memory Bus (Harvard Bus Architecture)
As with many DSP type devices, multiple busses are used to move data between the memories and
peripherals and the CPU. The C28x memory bus architecture contains a program read bus, data read bus
and data write bus. The program read bus consists of 22 address lines and 32 data lines. The data read and
write busses consist of 32 address lines and 32 data lines each. The 32-bit-wide data busses enable single
cycle 32-bit operations. The multiple bus architecture, commonly termed “Harvard Bus”, enables the C28x to
fetch an instruction, read a data value and write a data value in a single cycle. All peripherals and memories
attached to the memory bus will prioritize memory accesses. Generally, the priority of Memory Bus accesses
can be summarized as follows:
Highest:Data Writes (Simultaneous data and program writes cannot occur on the memory bus.)
Program Writes (Simultaneous data and program writes cannot occur on the memory bus.)
Data Reads
Program Reads (Simultaneous program reads and fetches cannot occur on the memory
bus.)
Lowest:Fetches (Simultaneous program reads and fetches cannot occur on the memory bus.)
3.2.3Peripheral Bus
To enable migration of peripherals between various Texas Instruments (TI) DSP family of devices, the F281x
and C281x adopt a peripheral bus standard for peripheral interconnect. The peripheral bus bridge multiplexes
the various busses that make up the processor “Memory Bus” into a single bus consisting of 16 address lines
and 16 or 32 data lines and associated control signals. Two versions of the peripheral bus are supported on
the F281x and C281x. One version only supports 16-bit accesses (called peripheral frame 2) and this retains
compatibility with C240x-compatible peripherals. The other version supports both 16- and 32-bit accesses
(called peripheral frame 1).
Functional Overview
3.2.4Real-Time JTAG and Analysis
The F281x and C281x implement the standard IEEE 1149.1 JTAG interface. Additionally, the F281x and
C281x support real-time mode of operation whereby the contents of memory, peripheral, and register
locations can be modified while the processor is running and executing code and servicing interrupts. The user
can also single step through non-time critical code while enabling time-critical interrupts to be serviced without
interference. The F281x and C281x implement the real-time mode in hardware within the CPU. This is a
unique feature to the F281x and C281x, no software monitor is required. Additionally, special analysis
hardware is provided that allows the user to set hardware breakpoint or data/address watch-points and
generate various user selectable break events when a match occurs.
3.2.5External Interface (XINTF) (2812 Only)
This asynchronous interface consists of 19 address lines, 16 data lines, and three chip-select lines. The
chip-select lines are mapped to five external zones, Zones 0, 1, 2, 6, and 7. Zones 0 and 1 share a single
chip-select; Zones 6 and 7 also share a single chip-select. Each of the five zones can be programmed with
a different number of wait states, strobe signal setup and hold timing and each zone can be programmed for
extending wait states externally or not. The programmable wait-state, chip-select and programmable strobe
timing enables glueless interface to external memories and peripherals.
April 2001 − Revised October 2005SPRS174M
35
Functional Overview
3.2.6Flash (F281x Only)
The F2812 and F2811 contain 128K x 16 of embedded flash memory, segregated into four 8K X 16 sectors,
and six 16K X 16 sectors. The F2810 has 64K X 16 of embedded flash, segregated into two 8K X 16 sectors,
and three 16K X 16 sectors. All three devices also contain a single 1K x 16 of OTP memory at address range
0x3D 7800 − 0x3D 7BFF. The user can individually erase, program, and validate a flash sector while leaving
other sectors untouched. However, i t i s not possible to use one sector of the flash or the OTP to execute flash
algorithms that erase/program other sectors. Special memory pipelining is provided to enable the flash module
to achieve higher performance. The flash/OTP is mapped to both program and data space; therefore, it can
be used to execute code or store data information.
The F2810/F2811/F2812 Flash and OTP wait states can be configured by the application. This
allows applications running at slower frequencies to configure the flash to use fewer
wait states.
Flash ef fective performance can be improved by enabling the flash pipeline mode in the Flash
options register. With this mode enabled, effective performance of linear code execution will
be much faster than the raw performance indicated by the wait state configuration alone. The
exact performance gain when using the Flash pipeline mode is application-dependent.
For more information on the Flash options, Flash wait-state, and OTP wait-state registers, see
the TMS320x281x System Control and Interrupts Reference Guide (literature number
SPRU078).
NOTE:
3.2.7ROM (C281x Only)
The C2812 and C2811 contain 128K x 16 of ROM. The C2810 has 64K x 16 of ROM. In addition to this, there
is a 1K X 16 ROM block that replaces the OTP memory available in flash devices. For information on how to
submit ROM codes to TI, see the TMS320C28x CPU and Instruction Set Reference Guide (literature number
SPRU430).
3.2.8M0, M1 SARAMs
All C28x devices contain these two blocks of single access memory, each 1K x 16 in size. The stack pointer
points to the beginning of block M1 on reset. The M0 block overlaps the 240x device B0, B1, B2 RAM blocks
and hence the mapping of data variables on the 240x devices can remain at the same physical address on
C28x devices. The M0 and M1 blocks, like all other memory blocks on C28x devices, are mapped to both
program and data space. Hence, the user can use M0 and M1 to execute code or for data variables. The
partitioning is performed within the linker. The C28x device presents a unified memory map to the programmer.
This makes for easier programming in high-level languages.
3.2.9L0, L1, H0 SARAMs
The F281x and C281x contain an additional 16K x 16 of single-access RAM, divided into 3 blocks
(4K + 4K + 8K). Each block can be independently accessed hence minimizing pipeline stalls. Each block is
mapped to both program and data space.
3.2.10Boot ROM
The Boot ROM is factory-programmed with boot-loading software. The Boot ROM program executes after
device reset and checks several GPIO pins to determine which boot mode to enter . For example, the user can
select to execute code already present in the internal Flash or download new software to internal RAM through
one of several serial ports. Other boot modes exist as well. The Boot ROM also contains standard tables, such
as SIN/COS waveforms, for use in math-related algorithms. Table 3−4 shows the details of how various boot
modes may be invoked. See the TMS320x281x DSP Boot ROM Reference Guide (literature number
SPRU095), for more information.
36
April 2001 − Revised October 2005SPRS174M
Table 3−4. Boot Mode Selection
Functional Overview
GPIOF4
BOOT MODE SELECTED
GPIO PU status
Jump to Flash/ROM address 0x3F 7FF6
A branch instruction must have been programmed here prior to
reset to re−direct code execution as desired.
Call SPI_Boot to load from an external serial SPI EEPROM01xx
Call SCI_Boot to load from SCI-A0011
Jump to H0 SARAM address 0x3F 80000010
Jump to OTP address 0x3D 78000001
Call Parallel_Boot to load from GPIO Port B0000
†
PU = pin has an internal pullup No PU = pin does not have an internal pullup
‡
Extra care must be taken due to any effect toggling SPICLK to select a boot mode may have on external logic.
§
If the boot mode selected is Flash, H0, or OTP, then no external code is loaded by the bootloader.
†
(SCITXDA)
PUNo PUNo PUNo PU
1xxx
GPIOF12
(MDXA)
GPIOF3
(SPISTEA)
GPIOF2
(SPICLK)
3.2.11Security
The F281x and C281x support high levels of security to protect the user firmware from being
reverse-engineered. The security features a 128-bit password (hardcoded for 16 wait states), which the user
programs into the flash. One code security module (CSM) is used to protect the flash/ROM/OTP and the L0/L1
SARAM blocks. The security feature prevents unauthorized users from examining the memory contents via
the JTAG port, executing code from external memory or trying to boot-load some undesirable software that
would export the secure memory contents. To enable access to the secure blocks, the user must write the
correct 128-bit ”KEY” value, which matches the value stored in the password locations within the Flash/ROM.
NOTE:
For code security operation, all addresses between 0x3F7F80 and 0x3F7FF5 cannot be used
as program code or data, but must be programmed to 0x0000 when the Code Security
Password is programmed. If security is not a concern, then these addresses may be used for
code or data.
The 128-bit password (at 0x3F 7FF8 − 0x3F 7FFF) must not be programmed to zeros. Doing
so would permanently lock the device.
Code Security Module Disclaimer
The Code Security Module (“CSM”) included on this device was designed to password
protect the data stored in the associated memory (either ROM or Flash) and is warranted
by Texas Instruments (TI), in accordance with its standard terms and conditions, to
conform to T I’s published specifications for the warranty period applicable for this device.
TI DOES NOT , HOWEVER, WARRANT OR REPRESENT THAT THE CSM CANNOT BE
COMPROMISED OR BREACHED OR THAT THE DATA STORED IN THE
ASSOCIATED MEMORY CANNOT BE ACCESSED THROUGH OTHER MEANS.
MOREOVER, EXCEPT AS SET FORTH ABOVE, TI MAKES NO WARRANTIES OR
REPRESENTATIONS CONCERNING THE CSM OR OPERATION OF THIS DEVICE,
INCLUDING ANY IMPLIED W ARRANTIES OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE.
IN NO EVENT SHALL TI BE LIABLE FOR ANY CONSEQUENTIAL, SPECIAL,
INDIRECT, INCIDENTAL, OR PUNITIVE DAMAGES, HOWEVER CAUSED, ARISING
IN ANY WAY OUT OF YOUR USE OF THE CSM OR THIS DEVICE, WHETHER OR NOT
April 2001 − Revised October 2005SPRS174M
37
Functional Overview
TI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. EXCLUDED
DAMAGES INCLUDE, BUT ARE NOT LIMITED TO LOSS OF DATA, LOSS OF
GOODWILL, LOSS OF USE OR INTERRUPTION OF BUSINESS OR OTHER
ECONOMIC LOSS.
3.2.12Peripheral Interrupt Expansion (PIE) Block
The PIE block serves to multiplex numerous interrupt sources into a smaller set of interrupt inputs. The PIE
block can support up to 96 peripheral interrupts. On the F281x and C281x, 45 of the possible 96 interrupts
are used by peripherals. The 96 interrupts are grouped into blocks of 8 and each group is fed into 1 of 12 CPU
interrupt lines (INT1 to INT12). Each of the 96 interrupts is supported by its own vector stored in a dedicated
RAM block that can be overwritten by the user. The vector is automatically fetched by the CPU on servicing
the interrupt. It takes 8 CPU clock cycles to fetch the vector and save critical CPU registers. Hence the CPU
can quickly respond to interrupt events. Prioritization of interrupts is controlled in hardware and software. Each
individual interrupt can be enabled/disabled within the PIE block.
The F281x and C281x support three masked external interrupts (XINT1, 2, 13). XINT13 is combined with one
non-masked external interrupt (XNMI). The combined signal name is XNMI_XINT13. Each of the interrupts
can be selected for negative or positive edge triggering and can also be enabled/disabled (including the
XNMI). The masked interrupts also contain a 16-bit free running up counter , which is reset to zero when a valid
interrupt edge is detected. This counter can be used to accurately time stamp the interrupt.
3.2.14Oscillator and PLL
The F281x and C281x can be clocked by an external oscillator or by a crystal attached to the on-chip oscillator
circuit. A PLL is provided supporting up to 10-input clock-scaling ratios. The PLL ratios can be changed
on-the-fly in software, enabling the user to scale back on operating frequency if lower power operation is
desired. Refer to the Electrical Specification section for timing details. The PLL block can be set in bypass
mode.
3.2.15Watchdog
The F281x and C281x support a watchdog timer. The user software must regularly reset the watchdog counter
within a certain time frame; otherwise, the watchdog will generate a reset to the processor . The watchdog can
be disabled if necessary.
3.2.16Peripheral Clocking
The clocks to each individual peripheral can be enabled/disabled to reduce power consumption when a
peripheral is not in use. Additionally, the system clock to the serial ports (except eCAN) and the event
managers, CAP and QEP blocks can be scaled relative to the CPU clock. This enables the timing of
peripherals to be decoupled from increasing CPU clock speeds.
38
April 2001 − Revised October 2005SPRS174M
3.2.17Low-Power Modes
The F281x and C281x devices are fully static CMOS devices. Three low-power modes are provided:
IDLE:Place CPU in low-power mode. Peripheral clocks may be turned off selectively and only
those peripherals that must function during IDLE are left operating. An enabled interrupt
from an active peripheral will wake the processor from IDLE mode.
STANDBY:Turns of f clock to CPU and peripherals. This mode leaves the oscillator and PLL functional.
An external interrupt event will wake the processor and the peripherals. Execution begins
on the next valid cycle after detection of the interrupt event.
HALT:Turns off the internal oscillator. This mode basically shuts down the device and places it in
the lowest possible power consumption mode. Only a reset or XNMI can wake the device
from this mode.
3.2.18Peripheral Frames 0, 1, 2 (PFn)
The F281x and C281x segregate peripherals into three sections. The mapping of peripherals is as follows:
PIE:PIE Interrupt Enable and Control Registers Plus PIE Vector Table
Flash:Flash Control, Programming, Erase, Verify Registers
Timers:CPU-Timers 0, 1, 2 Registers
CSM:Code Security Module KEY Registers
PF1:eCAN:eCAN Mailbox and Control Registers
PF2:SYS:System Control Registers
GPIO:GPIO Mux Configuration and Control Registers
EV:Event Manager (EVA/EVB) Control Registers
McBSP:McBSP Control and TX/RX Registers
SCI:Serial Communications Interface (SCI) Control and RX/TX Registers
SPI:Serial Peripheral Interface (SPI) Control and RX/TX Registers
ADC:12-Bit ADC Registers
Most of the peripheral signals are multiplexed with general-purpose I/O (GPIO) signals. This multiplexing
enables use of a pin as GPIO if the peripheral signal or function is not used. On reset, all GPIO pins are
configured as inputs. The user can then individually program each pin for GPIO mode or peripheral signal
mode. For specific inputs, the user can also select the number of input qualification cycles to filter unwanted
noise glitches.
3.2.2032-Bit CPU-Timers (0, 1, 2)
CPU-Timers 0, 1, and 2 are identical 32-bit timers with presettable periods and with 16-bit clock prescaling.
The timers have a 32-bit count down register, which generates an interrupt when the counter reaches zero.
The counter is decremented at the CPU clock speed divided by the prescale value setting. When the counter
reaches zero, it is automatically reloaded with a 32-bit period value. CPU-Timer 2 is reserved for Real-Time
OS (RTOS)/BIOS applications. CPU-Timer 1 is also reserved for TI system functions. CPU-Timer 2 is
connected to INT14 of the CPU. CPU-Timer 1 can be connected to INT13 of the CPU. CPU-Timer 0 is for
general use and is connected to the PIE block.
April 2001 − Revised October 2005SPRS174M
39
Functional Overview
3.2.21Control Peripherals
The F281x and C281x support the following peripherals that are used for embedded control and
communication:
EV:The event manager module includes general-purpose timers, full-compare/PWM units,
capture inputs (CAP) and quadrature-encoder pulse (QEP) circuits. Two such event
managers are provided which enable two three-phase motors to be driven or four
two-phase motors. The event managers on the F281x and C281x are compatible to the
event managers on the 240x devices (with some minor enhancements).
ADC:The ADC block is a 12-bit converter, single ended, 16-channels. It contains two
sample-and-hold units for simultaneous sampling.
3.2.22Serial Port Peripherals
The F281x and C281x support the following serial communication peripherals:
eCAN:This is the enhanced version of the CAN peripheral. It supports 32 mailboxes, time stamping
of messages, and is CAN 2.0B-compliant.
McBSP:The multichannel buffered serial port (McBSP) connects to E1/T1 lines, phone-quality
codecs for modem applications or high-quality stereo audio DAC devices. The McBSP
receive and transmit registers are supported by a 16-level FIFO that significantly reduces
the overhead for servicing this peripheral.
SPI:The SPI is a high-speed, synchronous serial I/O port that allows a serial bit stream of
programmed length (one to sixteen bits) to be shifted into and out of the device at a
programmable bit-transfer rate. Normally, the SPI is used for communications between the
DSP controller and external peripherals or another processor. Typical applications include
external I/O or peripheral expansion through devices such as shift registers, display drivers,
and ADCs. Multi-device communications are supported by the master/slave operation of
the SPI. On the F281x and C281x, the port supports a 16-level, receive and transmit FIFO
for reducing servicing overhead.
SCI:The serial communications interface is a two-wire asynchronous serial port, commonly
known as UART. On the F281x and C281x, the port supports a 16-level, receive and
transmit FIFO for reducing servicing overhead.
3.3Register Map
The F281x and C281x devices contain three peripheral register spaces. The spaces are categorized as
follows:
•Peripheral Frame 0: These are peripherals that are mapped directly to the CPU memory bus.
•Peripheral Frame 1: These are peripherals that are mapped to the 32-bit peripheral bus.
•Peripheral Frame 2: These are peripherals that are mapped to the 16-bit peripheral bus.
40
See Table 3−5.
See Table 3−6.
See Table 3−7.
April 2001 − Revised October 2005SPRS174M
Functional Overview
Table 3−5. Peripheral Frame 0 Registers†
NAMEADDRESS RANGESIZE (x16)ACCESS TYPE
Device Emulation Registers
Reserved
FLASH Registers
Code Security Module Registers
Reserved
XINTF Registers
Reserved
CPU-TIMER0/1/2 Registers
Reserved
PIE Registers
PIE Vector Table
Reserved
†
Registers in Frame 0 support 16-bit and 32-bit accesses.
‡
If registers are EALLOW protected, then writes cannot be performed until the user executes the EALLOW instruction. The EDIS instruction
disables writes. This prevents stray code or pointers from corrupting register contents.
§
The Flash Registers are also protected by the Code Security Module (CSM).
§
Table 3−6. Peripheral Frame 1 Registers
0x00 0880
0x00 09FF
0x00 0A00
0x00 0A7F
0x00 0A80
0x00 0ADF
0x00 0AE0
0x00 0AEF
0x00 0AF0
0x00 0B1F
0x00 0B20
0x00 0B3F
0x00 0B40
0x00 0BFF
0x00 0C00
0x00 0C3F
0x00 0C40
0x00 0CDF
0x00 0CE0
0x00 0CFF
0x00 0D00
0x00 0DFF
0x00 0E00
0x00 0FFF
384EALLOW protected
128
96
16EALLOW protected
48
32Not EALLOW protected
192
64Not EALLOW protected
160
32Not EALLOW protected
256EALLOW protected
512
EALLOW protected
CSM Protected
¶
‡
NAMEADDRESS RANGESIZE (x16)ACCESS TYPE
eCAN Registers
eCAN Mailbox RAM
Reserved
¶
The eCAN control registers only support 32-bit read/write operations. All 32-bit accesses are aligned to even address boundaries.
April 2001 − Revised October 2005SPRS174M
0x00 6000
0x00 60FF
0x00 6100
0x00 61FF
0x00 6200
0x00 6FFF
256
(128 x 32)
256
(128 x 32)
3584
Some eCAN control registers (and selected bits in other eCAN
control registers) are EALLOW-protected.
Not EALLOW-protected
41
Functional Overview
Table 3−7. Peripheral Frame 2 Registers
NAMEADDRESS RANGESIZE (x16)ACCESS TYPE
Reserved
System Control Registers
Reserved
SPI-A Registers
SCI-A Registers
Reserved
External Interrupt Registers
Reserved
GPIO Mux Registers
GPIO Data Registers
ADC Registers
Reserved
EV-A Registers
Reserved
EV-B Registers
Reserved
SCI-B Registers
Reserved
McBSP Registers
Reserved
†
Peripheral Frame 2 only allows 16-bit accesses. All 32-bit accesses are ignored (invalid data may be returned or written).
0x00 7000
0x00 700F
0x00 7010
0x00 702F
0x00 7030
0x00 703F
0x00 7040
0x00 704F
0x00 7050
0x00 705F
0x00 7060
0x00 706F
0x00 7070
0x00 707F
0x00 7080
0x00 70BF
0x00 70C0
0x00 70DF
0x00 70E0
0x00 70FF
0x00 7100
0x00 711F
0x00 7120
0x00 73FF
0x00 7400
0x00 743F
0x00 7440
0x00 74FF
0x00 7500
0x00 753F
0x00 7540
0x00 774F
0x00 7750
0x00 775F
0x00 7760
0x00 77FF
0x00 7800
0x00 783F
0x00 7840
0x00 7FFF
†
16
32EALLOW Protected
16
16Not EALLOW Protected
16Not EALLOW Protected
16
16Not EALLOW Protected
64
32EALLOW Protected
32Not EALLOW Protected
32Not EALLOW Protected
736
64Not EALLOW Protected
192
64Not EALLOW Protected
528
16Not EALLOW Protected
160
64Not EALLOW Protected
1984
42
April 2001 − Revised October 2005SPRS174M
3.4Device Emulation Registers
These registers are used to control the protection mode of the C28x CPU and to monitor some critical device
signals. The registers are defined in Table 3−8.
0x0001 − Silicon Revision A
0x0002 − Silicon Revision B
0x0003 − Silicon Revisions C, D
0x0004 − Reserved
0x0005 − Silicon Revision E
0x0006 − Silicon Revision F
0x0007 − Silicon Revision G
This section gives a top-level view of the external interface (XINTF) that is implemented on the 2812 devices.
The external interface is a non-multiplexed asynchronous bus, similar to the C240x external interface. The
external interface on the 2812 is mapped into five fixed zones shown in Figure 3−5.
Figure 3−5 shows the 2812 XINTF signals.
April 2001 − Revised October 2005SPRS174M
43
Functional Overview
Data SpaceProg Space
0x00 0000
XD(15:0)
XA(18:0)
0x00 2000
0x00 4000
0x00 6000
0x08 0000
0x10 0000
0x18 0000
0x3F C000
0x40 0000
XINTF Zone 0
(8K × 16)
XINTF Zone 1
(8K × 16)
XINTF Zone 2
(512K × 16)
XINTF Zone 6
(512K × 16)
XINTF Zone 7
(mapped here if MP/MC
(16K × 16)
= 1)
XZCS0
XZCS1
XZCS2
XZCS6
XZCS7
XREADY
XMP/MC
XHOLD
XHOLDA
XCLKOUT (see Note E)
XZCS0AND1
XZCS6AND7
XWE
XRD
XR/W
NOTES: A. The mapping of XINTF Zone 7 is dependent on the XMP/MC device input signal and the MP/MC mode bit (bit 8 of XINTCNF2
register). Zones 0, 1, 2, and 6 are always enabled.
B. Each zone can be programmed with different wait states, setup and hold timing, and is supported by zone chip selects
(XZCS0AND1
glueless connection to many external memories and peripherals.
C. The chip selects for Zone 0 and 1 are ANDed internally together to form one chip select (XZCS0AND1
that is connected to XZCS0AND1
D. The chip selects for Zone 6 and 7 are ANDed internally together to form one chip select (XZCS6AND7
that is connected to XZCS6AND7
MP/MC
E. XCLKOUT is also pinned out on the 2810 and 2811.
, XZCS2, XZCS6AND7), which toggle when an access to a particular zone is performed. These features enable
). Any external memory
is dually mapped to both Zones 0 and Zone 1.
). Any external memory
is dually mapped to both Zones 6 and Zone 7. This means that if Zone 7 is disabled (via the
mode) then any external memory is still accessible via Zone 6 address space.
Figure 3−5. External Interface Block Diagram
44
April 2001 − Revised October 2005SPRS174M
Functional Overview
The operation and timing of the external interface, can be controlled by the registers listed in Table 3−9.
Table 3−9. XINTF Configuration and Control Register Mappings
NAMEADDRESSSIZE (x16)DESCRIPTION
XTIMING00x00 0B202XINTF T iming Register , Zone 0 can access as two 16-bit registers or one 32-bit register
XTIMING10x00 0B222XINTF T iming Register , Zone 1 can access as two 16-bit registers or one 32-bit register
XTIMING20x00 0B242XINTF T iming Register , Zone 2 can access as two 16-bit registers or one 32-bit register
XTIMING60x00 0B2C2XINTF Timing Register, Zone 6 can access as two 16-bit registers or one 32-bit register
XTIMING70x00 0B2E2XINTF T iming Register , Zone 7 can access as two 16-bit registers or one 32-bit register
XINTCNF20x00 0B342XINTF Configuration Register can access as two 16-bit registers or one 32-bit register
XBANK0x00 0B381XINTF Bank Control Register
XREVISION0x00 0B3A1XINTF Revision Register
3.5.1Timing Registers
XINTF signal timing can be tuned to match specific external device requirements such as setup and hold times
to strobe signals for contention avoidance and maximizing bus efficiency. The XINTF timing parameters can
be configured individually for each zone based on the requirements of the memory or peripheral accessed
by that particular zone. This allows the programmer to maximize the efficiency of the bus on a per zone basis.
All XINTF timing values are with respect to XTIMCLK, which is equal to or one-half of the SYSCLKOUT rate,
as shown in Figure 6−29.
For detailed information on the XINTF timing and configuration register bit fields, see the TMS320x281x DSPExternal Interface (XINTF) Reference Guide (literature number SPRU067).
3.5.2XREVISION Register
The XREVISION register contains a unique number to identify the particular version of XINTF used in the
product. For the 2812, this register will be configured as described in Table 3−10.
Table 3−10. XREVISION Register Bit Definitions
BIT(S)NAMETYPERESETDESCRIPTION
15−0REVISIONR0x0004
Current XINTF Revision. For internal use/reference. Test purposes only. Subject to
change.
April 2001 − Revised October 2005SPRS174M
45
Functional Overview
3.6Interrupts
Figure 3−6 shows how the various interrupt sources are multiplexed within the F281x and C281x devices.
INT1 to INT12
C28x CPU
INT14
INT13
PIE
†
96 Interrupts
MUX
TINT0
TINT2
TINT1
WAKEINT
Peripherals (SPI, SCI, McBSP, CAN, EV, ADC)
Interrupt Control
XINT1CR(15:0)
XINT1CTR(15:0)
Interrupt Control
XINT2CR(15:0)
XINT2CTR(15:0)
TIMER 0
TIMER 2 (for RTOS)
TIMER 1 (for RTOS)
(41 Interrupts)
WDINT
LPMINT
Watchdog
Low-Power Modes
XINT1
XINT2
GPIO
MUX
select
enable
NMI
†
Out of a possible 96 interrupts, 45 are currently used by peripherals.
Interrupt Control
XNMICR(15:0)
XNMICTR(15:0)
XNMI_XINT13
Figure 3−6. Interrupt Sources
Eight PIE block interrupts are grouped into one CPU interrupt. In total, 12 CPU interrupt groups, with
8 interrupts per group equals 96 possible interrupts. On the F281x and C281x, 45 of these are used by
peripherals as shown in Table 3−11.
46
April 2001 − Revised October 2005SPRS174M
Functional Overview
CPU
CPU
INTx
PIEACKx
(Enable/Flag)
Figure 3−7. Multiplexing of Interrupts Using the PIE Block
Out of the 96 possible interrupts, 45 interrupts are currently used. The remaining interrupts are reserved for future devices. These interrupts
can be used as software interrupts if they are enabled at the PIEIFRx level, provided none of the interrupts within the group is being used by
a peripheral. Otherwise, interrupts coming in from peripherals may be lost by accidentally clearing their flag while modifying the PIEIFR.
INTx.8INTx.7INTx.6INTx.5INTx.4INTx.3INTx.2INTx.1
WAKEINT
(LPM/WD)
TINT0
(TIMER 0)
T1OFINT
(EV-A)
CAPINT3
(EV-A)
T3OFINT
(EV-B)
CAPINT6
(EV-B)
ADCINT
(ADC)
T1UFINT
(EV-A)
CAPINT2
(EV-A)
T3UFINT
(EV-B)
CAPINT5
(EV-B)
MXINT
(McBSP)
ECAN1INT
(CAN)
XINT2XINT1Reserved
T1CINT
(EV-A)
CAPINT1
(EV-A)
T3CINT
(EV-B)
CAPINT4
(EV-B)
MRINT
(McBSP)
ECAN0INT
(CAN)
T1PINT
(EV-A)
T2OFINT
(EV-A)
T3PINT
(EV-B)
T4OFINT
(EV-B)
ReservedReserved
SCITXINTB
(SCI-B)
CMP3INT
(EV-A)
T2UFINT
(EV-A)
CMP6INT
(EV-B)
T4UFINT
(EV-B)
SCIRXINTB
(SCI-B)
PDPINTB
(EV-B)
CMP2INT
(EV-A)
T2CINT
(EV-A)
CMP5INT
(EV-B)
T4CINT
(EV-B)
SPITXINTA
(SPI)
SCITXINTA
(SCI-A)
PDPINTA
(EV-A)
CMP1INT
(EV-A)
T2PINT
(EV-A)
CMP4INT
(EV-B)
T4PINT
(EV-B)
SPIRXINTA
(SPI)
SCIRXINTA
(SCI-A)
To summarize, there are two safe cases when the reserved interrupts could be used as software interrupts:
1) No peripheral within the group is asserting interrupts.
2) No peripheral interrupts are assigned to the group (example PIE group 12).
April 2001 − Revised October 2005SPRS174M
47
Functional Overview
Table 3−12. PIE Configuration and Control Registers
NAMEADDRESS
PIECTRL0x0000−0CE01PIE, Control Register
PIEACK0x0000−0CE11PIE, Acknowledge Register
PIEIER10x0000−0CE21PIE, INT1 Group Enable Register
PIEIFR10x0000−0CE31PIE, INT1 Group Flag Register
PIEIER20x0000−0CE41PIE, INT2 Group Enable Register
PIEIFR20x0000−0CE51PIE, INT2 Group Flag Register
PIEIER30x0000−0CE61PIE, INT3 Group Enable Register
PIEIFR30x0000−0CE71PIE, INT3 Group Flag Register
PIEIER40x0000−0CE81PIE, INT4 Group Enable Register
PIEIFR40x0000−0CE91PIE, INT4 Group Flag Register
PIEIER50x0000−0CEA1PIE, INT5 Group Enable Register
PIEIFR50x0000−0CEB1PIE, INT5 Group Flag Register
PIEIER60x0000−0CEC1PIE, INT6 Group Enable Register
PIEIFR60x0000−0CED1PIE, INT6 Group Flag Register
PIEIER70x0000−0CEE1PIE, INT7 Group Enable Register
PIEIFR70x0000−0CEF1PIE, INT7 Group Flag Register
Size (x16)
DESCRIPTION
PIEIER80x0000−0CF01PIE, INT8 Group Enable Register
PIEIFR80x0000−0CF11PIE, INT8 Group Flag Register
PIEIER90x0000−0CF21PIE, INT9 Group Enable Register
PIEIFR90x0000−0CF31PIE, INT9 Group Flag Register
PIEIER100x0000−0CF41PIE, INT10 Group Enable Register
PIEIFR100x0000−0CF51PIE, INT10 Group Flag Register
PIEIER110x0000−0CF61PIE, INT11 Group Enable Register
PIEIFR110x0000−0CF71PIE, INT11 Group Flag Register
PIEIER120x0000−0CF81PIE, INT12 Group Enable Register
PIEIFR120x0000−0CF91PIE, INT12 Group Flag Register
Reserved
Note:The PIE configuration and control registers are not protected by EALLOW mode. The PIE vector table is protected.
0x0000−0CFA
0x0000−0CFF
6Reserved
48
April 2001 − Revised October 2005SPRS174M
3.6.1External Interrupts
Table 3−13. External Interrupts Registers
NAMEADDRESSSIZE (x16)DESCRIPTION
XINT1CR0x00 70701XINT1 control register
XINT2CR0x00 70711XINT2 control register
Each external interrupt can be enabled/disabled or qualified using positive or negative going edge. For more
information, see the TMS320x281x System Control and Interrupts Reference Guide (literature number
SPRU078).
0x00 7072
0x00 7076
0x00 707A
0x00 707E
5
5
Functional Overview
April 2001 − Revised October 2005SPRS174M
49
Functional Overview
3.7System Control
This section describes the F281x and C281x oscillator , PLL and clocking mechanisms, the watchdog function
and the low power modes. Figure 3−8 shows the various clock and reset domains in the F281x and C281x
devices that will be discussed.
C28x
CPU
Reset
SYSCLKOUT
Peripheral Reset
(A)
CLKIN
Watchdog
Block
PLL
OSC
XRS
X1/XCLKIN
X2
Peripheral Bus
System
Control
Registers
Peripheral
Registers
Low-Speed Prescaler
Peripheral
Registers
High-Speed Prescaler
Peripheral
Registers
ADC
Registers
Clock Enables
eCAN
LSPCLK
Low-Speed Peripherals
SCI-A/B, SPI, McBSP
HSPCLK
High-Speed Peripherals
EV-A/B
HSPCLK
12-Bit ADC
Power
Modes
Control
I/O
I/O
I/O
XF_XPLLDIS
GPIO
MUX
16 ADC Inputs
GPIOs
NOTE A: CLKIN is the clock input to the CPU. SYSCLKOUT is the output clock of the CPU. They are of the same frequency.
Figure 3−8. Clock and Reset Domains
50
April 2001 − Revised October 2005SPRS174M
Functional Overview
The PLL, clocking, watchdog and low-power modes, are controlled by the registers listed in Table 3−14.
Table 3−14. PLL, Clocking, Watchdog, and Low-Power Mode Registers
NAMEADDRESSSIZE (x16)DESCRIPTION
Reserved
Reserved0x00 70181
Reserved0x00 70191
HISPCP0x00 701A1High-Speed Peripheral Clock Prescaler Register for HSPCLK clock
LOSPCP0x00 701B1Low-Speed Peripheral Clock Prescaler Register for LSPCLK clock
PCLKCR0x00 701C1Peripheral Clock Control Register
Reserved0x00 701D1
LPMCR00x00 701E1Low Power Mode Control Register 0
LPMCR10x00 701F1Low Power Mode Control Register 1
Reserved0x00 70201
PLLCR0x00 70211PLL Control Register
SCSR0x00 70221System Control & Status Register
WDCNTR 0x00 70231Watchdog Counter Register
Reserved0x00 70241
WDKEY 0x00 70251Watchdog Reset Key Register
Reserved
WDCR 0x00 70291Watchdog Control Register
Reserved
†
All of the above registers can only be accessed, by executing the EALLOW instruction.
‡
The PLL control register (PLLCR) is reset to a known state by the XRS
reset PLLCR.
0x00 7010
0x00 7017
0x00 7026
0x00 7028
0x00 702A
0x00 702F
8
‡
3
6
signal only. Emulation reset (through Code Composer Studio) will not
†
April 2001 − Revised October 2005SPRS174M
51
Functional Overview
XPLLDIS
T
3.8OSC and PLL Block
Figure 3−9 shows the OSC and PLL block on the F281x and C281x.
XF_XPLLDIS
XCLKIN
X1/XCLKIN
On-Chip
Oscillator
(OSC)
X2
Latch
XRS
OSCCLK (PLL Disabled)
Bypass
4-Bit PLL Select
4-Bit PLL Select
PLL
PLL
/2
0
1
PLL Block
CLKIN
CPU
Figure 3−9. OSC and PLL Block
The on-chip oscillator circuit enables a crystal to be attached to the F281x and C281x devices using the
X1/XCLKIN and X2 pins. If a crystal is not used, then an external oscillator can be directly connected to the
X1/XCLKIN pin and the X2 pin is left unconnected. The logic-high level in this case should not exceed VDD.
The PLLCR bits [3:0] set the clocking ratio.
SYSCLKOU
Table 3−15. PLLCR Register Bit Definitions
BIT(S)NAMETYPEXRS RESET
15:4ReservedR = 00:0
3:0DIVR/W0,0,0,0
†
The PLLCR register is reset to a known state by the XRS
†
SYSCLKOUT = (XCLKIN * n)/2, where n is the PLL multiplication factor.
reset line. If a reset is issued by the debugger, the PLL clocking ratio is not changed.
DESCRIPTION
52
April 2001 − Revised October 2005SPRS174M
3.8.1Loss of Input Clock
In PLL enabled mode, if the input clock XCLKIN or the oscillator clock is removed or absent, the PLL will still
issue a “limp-mode” clock. The limp-mode clock will continue to clock the CPU and peripherals at a typical
frequency of 1−4 MHz. The PLLCR register should have been written to with a non-zero value for this feature
to work.
Normally, when the input clocks are present, the watchdog counter will decrement to initiate a watchdog reset
or WDINT interrupt. However, when the external input clock fails, the watchdog counter will stop decrementing
(i.e., the watchdog counter does not change with the limp-mode clock). This condition could be used by the
application firmware to detect the input clock failure and initiate necessary shut-down procedure for the
system.
Applications in which the correct CPU operating frequency is absolutely critical must
implement a mechanism by which the DSP will be held in reset, should the input clocks ever
fail. For example, an R-C circuit may be used to trigger the XRS
capacitor ever get fully charged. An I/O pin may be used to discharge the capacitor on a
periodic basis to prevent it from getting fully charged. Such a circuit would also help in
detecting failure of the V
3.9PLL-Based Clock Module
The F281x and C281x have an on-chip, PLL-based clock module. This module provides all the necessary
clocking signals for the device, as well as control for low-power mode entry . The PLL has a 4-bit ratio control
to select different CPU clock rates. The watchdog module should be disabled before writing to the PLLCR
register. It can be re-enabled (if need be) after the PLL module has stabilized, which takes 131072 XCLKIN
cycles.
DD3VFL
Functional Overview
NOTE:
pin of the DSP, should the
rail.
The PLL-based clock module provides two modes of operation:
•Crystal-operation
This mode allows the use of an external crystal/resonator to provide the time base to the device.
•External clock source operation
This mode allows the internal oscillator to be bypassed. The device clocks are generated from an external
clock source input on the X1/XCLKIN pin.
April 2001 − Revised October 2005SPRS174M
53
Functional Overview
X2X1/XCLKINX1/XCLKINX2
C
(see Note A)
NOTE A: TI recommends that customers have the resonator/crystal vendor characterize the operation of their device with the DSP chip. The
L1
Crystal
(a)(b)
resonator/crystal vendor has the equipment and expertise to tune the tank circuit. The vendor can also advise the customer regarding
the proper tank component values that will ensure start-up and stability over the entire operating range.
C
L2
(see Note A)
External Clock Signal
(Toggling 0−VDD)
NC
Figure 3−10. Recommended Crystal/Clock Connection
Table 3−16. Possible PLL Configuration Modes
PLL MODEREMARKSSYSCLKOUT
Invoked by tying XPLLDIS pin low upon reset. PLL block is completely
PLL Disabled
PLL Bypassed
PLL Enabled
disabled. Clock input to the CPU (CLKIN) is directly derived from the clock
signal present at the X1/XCLKIN pin.
Default PLL configuration upon power-up, if PLL is not disabled. The PLL
itself is bypassed. However, the /2 module in the PLL block divides the clock
input at the X1/XCLKIN pin by two before feeding it to the CPU.
Achieved by writing a non-zero value “n” into PLLCR register. The /2 module
in the PLL block now divides the output of the PLL by two before feeding it to
the CPU.
XCLKIN
XCLKIN/2
(XCLKIN * n) / 2
54
April 2001 − Revised October 2005SPRS174M
3.10External Reference Oscillator Clock Option
The typical specifications for the external quartz crystal for a frequency of 30 MHz are listed below:
•Fundamental mode, parallel resonant
•C
•C
•C
(load capacitance) = 12 pF
L
= C
L1
shunt
= 24 pF
L2
= 6 pF
•ESR range = 25 to 40 Ω
3.11Watchdog Block
The watchdog block on the F281x and C281x is identical to the one used on the 240x devices. The watchdog
module generates an output pulse, 512 oscillator clocks wide (OSCCLK), whenever the 8-bit watchdog up
counter has reached its maximum value. To prevent this, the user disables the counter or the software must
periodically write a 0x55 + 0xAA sequence into the watchdog key register which will reset the watchdog
counter. Figure 3−11 shows the various functional blocks within the watchdog module.
Functional Overview
OSCCLK
Internal
XRS
Pullup
WDKEY(7:0)
Key Detector
WDRST
(See Note A)
/512
Watchdog
55 + AA
WDCR (WDPS(2:0))
Watchdog
Prescaler
Bad Key
Good Key
Core-reset
WDCR (WDCHK(2:0))
101
WDCLK
WDCR (WDDIS)
Clear Counter
Bad
WDCHK
Key
WDCNTR(7:0)
8-Bit
Watchdog
Counter
CLR
Generate
Output Pulse
(512 OSCCLKs)
SCSR (WDENINT)
WDRST
WDINT
NOTE A: The WDRST signal is driven low for 512 OSCCLK cycles.
Figure 3−11. Watchdog Module
The WDINT
signal enables the watchdog to be used as a wakeup from IDLE/STANDBY mode timer.
In STANDBY mode, all peripherals are turned off on the device. The only peripheral that remains functional
is the watchdog. The WATCHDOG module will run off the PLL clock or the oscillator clock. The WDINT
is fed to the LPM block so that it can wake the device from STANDBY (if enabled). See Section 3.12,
Low-Power Modes Block, for more details.
April 2001 − Revised October 2005SPRS174M
signal
55
Functional Overview
In IDLE mode, the WDINT signal can generate an interrupt to the CPU, via the PIE, to take the CPU out of
IDLE mode.
In HALT mode, this feature cannot be used because the oscillator (and PLL) are turned off and hence so is
the WATCHDOG.
3.12Low-Power Modes Block
The low-power modes on the F281x and C281x are similar to the 240x devices. Table 3−17 summarizes the
various modes.
Table 3−17. F281x and C281x Low-Power Modes
MODELPM(1:0)OSCCLKCLKINSYSCLKOUTEXIT
NormalX,Xononon−
IDLE0,0ononon
on
STANDBY0,1
HALT1,X
†
The Exit column lists which signals or under what conditions the low power mode will be exited. A low signal, on any of the signals, will exit the
low power condition. This signal must be kept low long enough for an interrupt to be recognized by the device. Otherwise the IDLE mode will not
be exited and the device will go back into the indicated low power mode.
‡
The IDLE mode on the C28x behaves differently than on the 24x/240x. On the C28x, the clock output from the core (SYSCLKOUT) is still functional
while on the 24x/240x the clock is turned off.
§
On the C28x, the JTAG port can still function even if the core clock (CLKIN) is turned off.
(watchdog still running)
off
(oscillator and PLL turned off,
watchdog not functional)
offoff
offoff
‡
Any Enabled Interrupt,
T1/2/3/4CTRIP
C1/2/3/4/5/6TRIP
†
XRS,
WDINT
XNMI
Debugger
XRS,
WDINT
XINT1,
XNMI,
SCIRXDA,
SCIRXDB,
CANRX,
Debugger
XRS,
XNMI,
Debugger
,
§
,
,
,
§
§
56
The various low-power modes operate as follows:
IDLE Mode:This mode is exited by any enabled interrupt or an XNMI that is
recognized by the processor. The LPM block performs no tasks during
this mode as long as the LPMCR0(LPM) bits are set to 0,0.
STANDBY Mode:All other signals (including XNMI) will wake the device from STANDBY
mode if selected by the LPMCR1 register. The user will need to select
which signal(s) will wake the device. The selected signal(s) are also
qualified by the OSCCLK before waking the device. The number of
OSCCLKs is specified in the LPMCR0 register.
HALT Mode:Only the XRS
and XNMI external signals can wake the device from
HALT mode. The XNMI input to the core has an enable/disable bit.
Hence, it is safe to use the XNMI signal for this function.
NOTE: The low-power modes do not affect the state of the output pins (PWM pins included). They will be
in whatever state the code left them when the IDLE instruction was executed.
April 2001 − Revised October 2005SPRS174M
4Peripherals
The integrated peripherals of the F281x and C281x are described in the following subsections:
There are three 32-bit CPU-timers on the F281x and C281x devices (CPU-TIMER0/1/2).
CPU-Timer 1 i s reserved for TI system functions and Timer 2 is reserved for DSP/BIOS. CPU-Timer 0 can be
used in user applications. These timers are different from the general-purpose (GP) timers that are present
in the Event Manager modules (EVA, EVB).
NOTE: If the application is not using DSP/BIOS, then CPU-Timer 2 can be used in the
application.
Peripherals
Reset
Timer Reload
SYSCLKOUT
TCR.4
(Timer Start Status)
TINT
16-Bit Timer Divide-Down
TDDRH:TDDR
16-Bit Prescale Counter
PSCH:PSC
Borrow
Figure 4−1. CPU-Timers
32-Bit Timer Period
PRDH:PRD
32-Bit Counter
TIMH:TIM
Borrow
April 2001 − Revised October 2005SPRS174M
57
Peripherals
In the F281x and C281x devices, the timer interrupt signals (TINT0, TINT1, TINT2) are connected as shown
in Figure 4−2.
28x
CPU
INT1
INT12
INT13
INT14
to
PIE
TINT2
TINT0
TINT1
XINT13
CPU-TIMER 0
CPU-TIMER 1
(Reserved for TI
system functions)
CPU-TIMER 2
(Reserved for DSP/BIOS)
Figure 4−2. CPU-Timer Interrupts Signals and Output Signal (See Notes A and B)
The general operation of the timer is as follows: The 32-bit counter register “TIMH:TIM” is loaded with the value
in the period register “PRDH:PRD”. The counter register decrements at the SYSCLKOUT rate of the C28x.
When the counter reaches 0, a timer interrupt output signal generates an interrupt pulse. The registers listed
in Table 4−1 are used to configure the timers. For more information, see the TMS320x281x System Controland Interrupts Reference Guide (literature number SPRU078).
58
April 2001 − Revised October 2005SPRS174M
Table 4−1. CPU-Timers 0, 1, 2 Configuration and Control Registers
NAMEADDRESSSIZE (x16)DESCRIPTION
TIMER0TIM0x00 0C001CPU-Timer 0, Counter Register
TIMER0TIMH0x00 0C011CPU-Timer 0, Counter Register High
TIMER0PRD0x00 0C021CPU-Timer 0, Period Register
TIMER0PRDH0x00 0C031CPU-Timer 0, Period Register High
TIMER0TCR0x00 0C041CPU-Timer 0, Control Register
Reserved0x00 0C051
TIMER0TPR0x00 0C061CPU-Timer 0, Prescale Register
TIMER0TPRH0x00 0C071CPU-Timer 0, Prescale Register High
TIMER1TIM0x00 0C081CPU-Timer 1, Counter Register
TIMER1TIMH0x00 0C091CPU-Timer 1, Counter Register High
TIMER1PRD0x00 0C0A1CPU-Timer 1, Period Register
TIMER1PRDH0x00 0C0B1CPU-Timer 1, Period Register High
TIMER1TCR0x00 0C0C1CPU-Timer 1, Control Register
Reserved0x00 0C0D1
TIMER1TPR0x00 0C0E1CPU-Timer 1, Prescale Register
TIMER1TPRH0x00 0C0F1CPU-Timer 1, Prescale Register High
TIMER2TIM0x00 0C101CPU-Timer 2, Counter Register
TIMER2TIMH0x00 0C111CPU-Timer 2, Counter Register High
TIMER2PRD0x00 0C121CPU-Timer 2, Period Register
TIMER2PRDH0x00 0C131CPU-Timer 2, Period Register High
TIMER2TCR0x00 0C141CPU-Timer 2, Control Register
Reserved0x00 0C151
TIMER2TPR0x00 0C161CPU-Timer 2, Prescale Register
TIMER2TPRH0x00 0C171CPU-Timer 2, Prescale Register High
Reserved
0x00 0C18
0x00 0C3F
40
Peripherals
April 2001 − Revised October 2005SPRS174M
59
Peripherals
EVENT MANAGER MODULES
4.2Event Manager Modules (EVA, EVB)
The event-manager modules include general-purpose (GP) timers, full-compare/PWM units, capture units,
and quadrature-encoder pulse (QEP) circuits. EVA and EVB timers, compare units, and capture units function
identically. However, timer/unit names differ for EV A and EVB. Table 4−2 shows the module and signal names
used. Table 4−2 shows the features and functionality available for the event-manager modules and highlights
EVA nomenclature.
Event managers A and B have identical peripheral register sets with EVA starting at 7400h and EVB starting
at 7500h. The paragraphs in this section describe the function of GP timers, compare units, capture units, and
QEPs using EVA nomenclature. These paragraphs are applicable to EVB with regard to function—however,
module/signal names would differ. Table 4−3 lists the EVA registers. For more information, see the
TMS320x281x DSP Event Manager (EV) Reference Guide (literature number SPRU065).
Table 4−2. Module and Signal Names for EVA and EVB
MODULESIGNALMODULESIGNAL
GP Timers
Compare Units
Capture Units
QEP Channels
External Clock Inputs
External Trip InputsCompare
External Trip Inputs
†
In the 24x/240x-compatible mode, the T1CTRIP_PDPINTA
GP Timer 1
GP Timer 2
Compare 1
Compare 2
Compare 3
Capture 1
Capture 2
Capture 3
QEP1
QEP2
QEPI1
Direction
External Clock
EVAEVB
T1PWM/T1CMP
T2PWM/T2CMP
PWM1/2
PWM3/4
PWM5/6
CAP1
CAP2
CAP3
QEP1
QEP2
TDIRA
TCLKINA
C1TRIP
C2TRIP
C3TRIP
T1CTRIP_PDPINTA
T2CTRIP
pin functions as PDPINTA and the T3CTRIP_PDPINTB pin functions as PDPINTB.
/EVASOC
†
GP Timer 3
GP Timer 4
Compare 4
Compare 5
Compare 6
Capture 4
Capture 5
Capture 6
QEP3
QEP4
QEPI2
Direction
External Clock
Compare
T3PWM/T3CMP
T4PWM/T4CMP
PWM7/8
PWM9/10
PWM11/12
CAP4
CAP5
CAP6
QEP3
QEP4
TDIRB
TCLKINB
C4TRIP
C5TRIP
C6TRIP
T3CTRIP_PDPINTB
T4CTRIP
/EVBSOC
†
60
April 2001 − Revised October 2005SPRS174M
Peripherals
Table 4−3. EVA Registers
NAMEADDRESS
GPTCONA0x00 74001GP Timer Control Register A
T1CNT0x00 74011GP Timer 1 Counter Register
T1CMPR0x00 74021GP Timer 1 Compare Register
T1PR0x00 74031GP Timer 1 Period Register
T1CON0x00 74041GP Timer 1 Control Register
T2CNT0x00 74051GP Timer 2 Counter Register
T2CMPR0x00 74061GP Timer 2 Compare Register
T2PR0x00 74071GP Timer 2 Period Register
T2CON0x00 74081GP Timer 2 Control Register
EXTCONA
COMCONA0x00 74111Compare Control Register A
ACTRA0x00 74131Compare Action Control Register A
DBTCONA0x00 74151Dead-Band Timer Control Register A
CMPR30x00 74191Compare Register 3
CAPCONA0x00 74201Capture Control Register A
CAPFIFOA0x00 74221Capture FIFO Status Register A
CAP1FIFO0x00 74231Two-Level Deep Capture FIFO Stack 1
CAP2FIFO0x00 74241Two-Level Deep Capture FIFO Stack 2
CAP3FIFO0x00 74251Two-Level Deep Capture FIFO Stack 3
CAP1FBOT0x00 74271Bottom Register Of Capture FIFO Stack 1
CAP2FBOT0x00 74281Bottom Register Of Capture FIFO Stack 2
CAP3FBOT0x00 74291Bottom Register Of Capture FIFO Stack 3
EVAIMRA0x00 742C1Interrupt Mask Register A
EVAIMRB0x00 742D1Interrupt Mask Register B
EVAIMRC0x00 742E1Interrupt Mask Register C
EVAIFRA0x00 742F1Interrupt Flag Register A
EVAIFRB0x00 74301Interrupt Flag Register B
EVAIFRC0x00 74311Interrupt Flag Register C
†
The EV-B register set is identical except the address range is from 0x00−7500 to 0x00−753F. The above registers are mapped to Zone 2. This
space allows only 16-bit accesses. 32-bit accesses produce undefined results.
‡
New register compared to 24x/240x
‡
0x00 74091GP Extension Control Register A
SIZE
(x16)
†
DESCRIPTION
April 2001 − Revised October 2005SPRS174M
61
Peripherals
GPTCONA(12:4), CAPCONA(8), EXTCONA[0]
Control Logic
Timer 1 Compare
16
16
Full Compare 1
Full Compare 2
Full Compare 3
T1CON(1)
GP Timer 1
T1CON(15:11,6,3,2)
clock
dir
EVAENCLK
EVATO ADC (Internal)
T1CTRIP/PDPINTA, T2CTRIP, C1TRIP, C2TRIP, C3TRIP
EVASOC ADC (External)
Output
Logic
T1CON(5,4)
GPTCONA(1,0)
Prescaler
T1CON(10:8)
SVPWM
State
Machine
Dead-
Band
Logic
Output
Logic
T1PWM_T1CMP
TCLKINA
HSPCLK
TDIRA
PWM1
PWM2
PWM3
PWM4
PWM5
PWM6
Peripheral Bus
16
COMCONA(15:5,2:0)
Timer 2 Compare
16
GP Timer 2
16
T2CON(15:11,7,6,3,2,0)
CAPCONA(10,9)
Capture Units
CAPCONA(15:12,7:0)
T2CON(1)
NOTE A: The EVB module is similar to the EVA module.
ACTRA(15:12),
COMCONA(12),
T1CON(13:11)
clock
dir
reset
T2CON(5,4)
DBTCONA(15:0)
Output
Logic
GPTCONA(3,2)
QEPCLK
QEPDIR
Index Qual
EXTCONA(1:2)
Prescaler
T2CON(10:8)
QEP
Logic
ACTRA(11:0)
T2PWM_T2CMP
TCLKINA
HSPCLK
TDIRA
CAP1_QEP1
CAP2_QEP2
CAP3_QEPI1
62
Figure 4−3. Event Manager A Functional Block Diagram (See Note A)
April 2001 − Revised October 2005SPRS174M
4.2.1General-Purpose (GP) Timers
There are two GP timers. The GP timer x (x = 1 or 2 for EVA; x = 3 or 4 for EVB) includes:
•A 16-bit timer, up-/down-counter, TxCNT, for reads or writes
•A 16-bit timer-compare register, TxCMPR (double-buffered with shadow register), for reads or writes
•A 16-bit timer-period register, TxPR (double-buffered with shadow register), for reads or writes
•A 16-bit timer-control register,TxCON, for reads or writes
•Selectable internal or external input clocks
•A programmable prescaler for internal or external clock inputs
•Control and interrupt logic, for four maskable interrupts: underflow, overflow, timer compare, and period
interrupts
•A selectable direction input pin (TDIRx) (to count up or down when directional up-/down-count mode is
selected)
The GP timers can be operated independently or synchronized with each other. The compare register
associated with each GP timer can be used for compare function and PWM-waveform generation. There are
three continuous modes of operations for each GP timer in up- or up/down-counting operations. Internal or
external input clocks with programmable prescaler are used for each GP timer. GP timers also provide the
time base for the other event-manager submodules: GP timer 1 for all the compares and PWM circuits, GP
timer 2/1 for the capture units and the quadrature-pulse counting operations. Double-buffering of the period
and compare registers allows programmable change of the timer (PWM) period and the compare/PWM pulse
width as needed.
Peripherals
4.2.2Full-Compare Units
There are three full-compare units on each event manager. These compare units use GP timer1 as the time
base and generate six outputs for compare and PWM-waveform generation using programmable deadband
circuit. The state of each of the six outputs is configured independently. The compare registers of the compare
units are double-buffered, allowing programmable change of the compare/PWM pulse widths as needed.
4.2.3Programmable Deadband Generator
Deadband generation can be enabled/disabled for each compare unit output individually. The
deadband-generator circuit produces two outputs (with or without deadband zone) for each compare unit
output signal. The output states of the deadband generator are configurable and changeable as needed by
way of the double-buffered ACTRx register.
4.2.4PWM Waveform Generation
Up to eight PWM waveforms (outputs) can be generated simultaneously by each event manager: three
independent pairs (six outputs) by the three full-compare units with programmable deadbands, and two
independent PWMs by the GP-timer compares.
4.2.5Double Update PWM Mode
The F281x and C281x Event Manager supports “Double Update PWM Mode.” This mode refers to a PWM
operation mode in which the position of the leading edge and the position of the trailing edge of a PWM pulse
are independently modifiable in each PWM period. To support this mode, the compare register that determines
the position of the edges of a PWM pulse must allow (buffered) compare value update once at the beginning
of a PWM period and another time in the middle of a PWM period. The compare registers in F281x and C281x
Event Managers are all buffered and support three compare value reload/update (value in buffer becoming
active) modes. These modes have earlier been documented as compare value reload conditions. The reload
condition that supports double update PWM mode is reloaded on Underflow (beginning of PWM period) OR
Period (middle of PWM period). Double update PWM mode can be achieved by using this condition for
compare value reload.
April 2001 − Revised October 2005SPRS174M
63
Peripherals
4.2.6PWM Characteristics
Characteristics of the PWMs are as follows:
•16-bit registers
•Wide range of programmable deadband for the PWM output pairs
•Change of the PWM carrier frequency for PWM frequency wobbling as needed
•Change of the PWM pulse widths within and after each PWM period as needed
•External-maskable power and drive-protection interrupts
•Pulse-pattern-generator circuit, for programmable generation of asymmetric, symmetric, and four-space
vector PWM waveforms
•Minimized CPU overhead using auto-reload of the compare and period registers
•The PWM pins are driven to a high-impedance state when the PDPINTx
PDPINTx
signal qualification. The PDPINTx pin (after qualification) is reflected in bit 8 of the COMCONx
register.
−PDPINTA
−PDPINTB
pin status is reflected in bit 8 of COMCONA register.
pin status is reflected in bit 8 of COMCONB register.
•EXTCON register bits provide options to individually trip control for each PWM pair of signals
4.2.7Capture Unit
pin is driven low and after
The capture unit provides a logging function for different events or transitions. The values of the selected GP
timer counter is captured and stored in the two-level-deep FIFO stacks when selected transitions are detected
on capture input pins, CAPx (x = 1, 2, or 3 for EVA; and x = 4, 5, or 6 for EVB). The capture unit consists of
three capture circuits.
•Capture units include the following features:
−One 16-bit capture control register, CAPCONx (R/W)
−One 16-bit capture FIFO status register, CAPFIFOx
−Selection of GP timer 1/2 (for EVA) or 3/4 (for EVB) as the time base
−Three 16-bit 2-level-deep FIFO stacks, one for each capture unit
−Three capture input pins (CAP1/2/3 for EVA, CAP4/5/6 for EVB)—one input pin per capture unit. [All
inputs are synchronized with the device (CPU) clock. In order for a transition to be captured, the input
must hold at its current level to meet the input qualification circuitry requirements. The input pins
CAP1/2 and CAP4/5 can also be used as QEP inputs to the QEP circuit.]
−User-specified transition (rising edge, falling edge, or both edges) detection
−Three maskable interrupt flags, one for each capture unit
−The capture pins can also be used as general-purpose interrupt pins, if they are not used for the
capture function.
4.2.8Quadrature-Encoder Pulse (QEP) Circuit
Two capture inputs (CAP1 and CAP2 for EVA; CAP4 and CAP5 for EVB) can be used to interface the on-chip
QEP circuit with a quadrature encoder pulse. Full synchronization of these inputs is performed on-chip.
Direction or leading-quadrature pulse sequence is detected, and GP timer 2/4 is incremented or decremented
by the rising and falling edges of the two input signals (four times the frequency of either input pulse).
64
With EXTCONA register bits, the EVA QEP circuit can use CAP3 as a capture index pin as well. Similarly, with
EXTCONB register bits, the EVB QEP circuit can use CAP6 as a capture index pin.
April 2001 − Revised October 2005SPRS174M
4.2.9External ADC Start-of-Conversion
when input ≤ 0 V
D
EVA/EVB start-of-conversion (SOC) can be sent to an external pin (EVASOC/EVBSOC) for external ADC
interface. EVASOC
and EVBSOC are MUXed with T2CTRIP and T4CTRIP, respectively.
A simplified functional block diagram of the ADC module is shown in Figure 4−4. The ADC module consists
of a 12-bit ADC with a built-in sample-and-hold (S/H) circuit. Functions of the ADC module include:
•12-bit ADC core with built-in S/H
•Analog input: 0.0 V to 3.0 V (Voltages above 3.0 V produce full-scale conversion results.)
•Autosequencing capability provides up to 16 “autoconversions” in a single session. Each conversion can
be programmed to select any 1 of 16 input channels
•Sequencer can be operated as two independent 8-state sequencers or as one large 16-state sequencer
(i.e., two cascaded 8-state sequencers)
•Sixteen result registers (individually addressable) to store conversion values
−The digital value of the input analog voltage is derived by:
igital Value + 0,
Peripherals
Digital Value + 4096
Digital Value + 4095
Digital Value + 4095,
Input Analog Voltage * ADCLO
3
3
, when 0 V < input < 3 V
when input ≥ 3 V
Input Analog Voltage * ADCLO
•Multiple triggers as sources for the start-of-conversion (SOC) sequence
−S/W − software immediate start
−EVA − Event manager A (multiple event sources within EVA)
−EVB − Event manager B (multiple event sources within EVB)
•Flexible interrupt control allows interrupt request on every end-of-sequence (EOS) or every other EOS
•Sequencer can operate in “start/stop” mode, allowing multiple “time-sequenced triggers” to synchronize
conversions
•EVA and EVB triggers can operate independently in dual-sequencer mode
•Sample-and-hold (S/H) acquisition time window has separate prescale control
The ADC module in the F281x and C281x has been enhanced to provide flexible interface to event managers
A and B. The ADC interface is built around a fast, 12-bit ADC module with a fast conversion rate of 80 ns at
25-MHz ADC clock. The ADC module has 16 channels, configurable as two independent 8-channel modules
to service event managers A and B. The two independent 8-channel modules can be cascaded to form a
16-channel module. Although there are multiple input channels and two sequencers, there is only one
converter in the ADC module. Figure 4−4 shows the block diagram of the F281x and C281x ADC module.
The two 8-channel modules have the capability to autosequence a series of conversions, each module has
the choice of selecting any one of the respective eight channels available through an analog MUX. In the
cascaded mode, the autosequencer functions as a single 16-channel sequencer. On each sequencer, once
the conversion is complete, the selected channel value is stored in its respective RESULT register.
Autosequencing allows the system to convert the same channel multiple times, allowing the user to perform
oversampling algorithms. This gives increased resolution over traditional single-sampled conversion results.
April 2001 − Revised October 2005SPRS174M
65
Peripherals
ADCINA0
ADCINA7
ADCINB0
ADCINB7
ADCSOC
S/W
EVA
Analog
MUX
S/H
S/H
Sequencer 1
System
Control Block
12-Bit
ADC
Module
ADC Control Registers
High-Speed
Prescaler
HSPCLKADCENCLK
Sequencer 2
SYSCLKOUT
Result Registers
Result Reg 0
Result Reg 1
Result Reg 7
Result Reg 8
Result Reg 15
C28x
70A8h
70AFh
70B0h
70B7h
SOCSOC
S/W
EVB
Figure 4−4. Block Diagram of the F281x and C281x ADC Module
To obtain the specified accuracy of the ADC, proper board layout is critical. To the best extent possible, traces
leading to the ADCIN pins should not run in close proximity to the digital signal paths. This is to minimize
switching noise on the digital lines from getting coupled to the ADC inputs. Furthermore, proper isolation
techniques must be used to isolate the ADC module power pins (V
DDA1/VDDA2
, A V
DDREFBG
) from the digital
supply. Figure 4−5 shows the ADC pin connections for the F281x and C281x devices.
Notes:
1. The ADC registers are accessed at the SYSCLKOUT rate. The internal timing of the ADC module is
controlled by the high-speed peripheral clock (HSPCLK).
2. The behavior of the ADC module based on the state of the ADCENCLK and HALT signals is as follows:
ADCENCLK: On reset, this signal will be low . While reset is active-low (XRS
) the clock to the register will
still function. This is necessary to make sure all registers and modes go into their default reset state. The
analog module will however be in a low-power inactive state. As soon as reset goes high, then the clock to
the registers will be disabled. When the user sets the ADCENCLK signal high, then the clocks to the
registers will be enabled and the analog module will be enabled. There will be a certain time delay (ms
range) before the ADC is stable and can be used.
HALT: This signal only affects the analog module. It does not affect the registers. If low , the ADC module is
powered. If high, the ADC module goes into low-power mode. The HAL T mode will stop the clock to the
CPU, which will stop the HSPCLK. Therefore the ADC register logic will be turned off indirectly.
66
April 2001 − Revised October 2005SPRS174M
Peripherals
Figure 4−5 shows the ADC pin-biasing for internal reference and Figure 4−6 shows the ADC pin-biasing for
external reference.
ADC 16-Channel Analog Inputs
Test Pin
ADC External Current Bias Resistor ADCRESEXT
ADC Reference Positive Output
ADC Analog Power
ADC Reference Power
ADC Analog I/O Power
ADC Digital Power
NOTES: A. Provide access to this pin in PCB layouts. Intended for test purposes only.
B. Use 24.9 kΩ for ADC clock range 1 − 18.75 MHz; use 20 kΩ for ADC clock range 18.75 − 25 MHz.
C. TAIYO YUDEN EMK325F106ZH, EMK325BJ106MD, or equivalent
D. External decoupling capacitors are recommended on all power pins.
E. Analog inputs must be driven from an operational amplifier that does not degrade the ADC performance.
ADCINA[7:0]
ADCINB[7:0]
ADCBGREFIN
ADCLO
ADCREFP
ADCREFMADC Reference Medium Output
V
DDA1
V
DDA2
V
SSA1
V
SSA2
AVDDREFBG
AVSSREFBG
V
DDAIO
V
SSAIO
V
V
(A)
DD1
SS1
Analog input 0−3 V with respect to ADCLO
Connect to Analog Ground
24.9 kW/20 kW
(C)
10 mF
(C)
10 mF
Analog 3.3 V
Analog 3.3 V
Analog 3.3 V
Analog 3.3 V
Analog Ground
Digital Ground
1.8 V
(B)
ADCREFP and ADCREFM should not
be loaded by external circuitry
can use the same 1.8 V (or 1.9 V) supply as
the digital core but separate the two with a
ferrite bead or a filter
Figure 4−5. ADC Pin Connections With Internal Reference
NOTE:
The temperature rating of any recommended component must match the rating of the end
product.
April 2001 − Revised October 2005SPRS174M
67
Peripherals
ADC 16-Channel Analog Inputs
Test Pin
ADC External Current Bias ResistorADCRESEXT
ADC Reference Positive Input
ADC Analog Power
ADC Reference Power
ADC Analog I/O Power
ADC Digital Power
NOTES: A. External decoupling capacitors are recommended on all power pins.
B. Analog inputs must be driven from an operational amplifier that does not degrade the ADC performance.
C. Use 24.9 kΩ for ADC clock range 1 − 18.75 MHz; use 20 kΩ for ADC clock range 18.75 − 25 MHz.
D. It is recommended that buffered external references be provided with a voltage difference of (ADCREFP-ADCREFM)
= 1 V $ 0.1% or better.
ADCINA[7:0]
ADCINB[7:0]
ADCLO
ADCBGREFIN
ADCREFP
ADCREFMADC Reference Medium Input
V
DDA1
V
DDA2
V
SSA1
V
SSA2
AVDDREFBG
AVSSREFBG
V
DDAIO
V
SSAIO
V
DD1
V
SS1
Analog Input 0−3 V With Respect to ADCLO
Connect to Analog Ground
24.9 kW/20 kW
1 mF − 10 mF
Analog 3.3 V
Analog 3.3 V
Analog 3.3 V
Analog 3.3 V
Analog Ground
1.8 V Can use the same 1.8-V (or 1.9-V)
Digital Ground
(C)
2 V
1 V
1 mF −10 mF
supply as the digital core but separate the
two with a ferrite bead or a filter
(D)
External reference is enabled using bit 8 in the ADCTRL3 Register at ADC power up. In this mode, the accuracy of
external reference is critical for overall gain. The voltage ADCREFP−ADCREFM will determine the overall accuracy .
Do not enable internal references when external references are connected to ADCREFP and ADCREFM. See the
TMS320x281x DSP Analog-to-Digital Converter (ADC) Reference Guide (literature number SPRU060) for more
information.
Figure 4−6. ADC Pin Connections With External Reference
68
April 2001 − Revised October 2005SPRS174M
The ADC operation is configured, controlled, and monitored by the registers listed in Table 4−4.
Peripherals
Table 4−4. ADC Registers
NAMEADDRESS
ADCTRL10x00 71001ADC Control Register 1
ADCTRL20x00 71011ADC Control Register 2
ADCMAXCONV0x00 71021ADC Maximum Conversion Channels Register
ADCCHSELSEQ10x00 71031ADC Channel Select Sequencing Control Register 1
ADCCHSELSEQ20x00 71041ADC Channel Select Sequencing Control Register 2
ADCCHSELSEQ30x00 71051ADC Channel Select Sequencing Control Register 3
ADCCHSELSEQ40x00 71061ADC Channel Select Sequencing Control Register 4
ADCASEQSR0x00 71071ADC Auto-Sequence Status Register
ADCRESULT00x00 71081ADC Conversion Result Buffer Register 0
ADCRESULT10x00 71091ADC Conversion Result Buffer Register 1
ADCRESULT20x00 710A1ADC Conversion Result Buffer Register 2
ADCRESULT30x00 710B1ADC Conversion Result Buffer Register 3
ADCRESULT40x00 710C1ADC Conversion Result Buffer Register 4
ADCRESULT50x00 710D1ADC Conversion Result Buffer Register 5
ADCRESULT60x00 710E1ADC Conversion Result Buffer Register 6
ADCRESULT70x00 710F1ADC Conversion Result Buffer Register 7
ADCRESULT80x00 71101ADC Conversion Result Buffer Register 8
ADCRESULT90x00 71111ADC Conversion Result Buffer Register 9
ADCRESULT100x00 71121ADC Conversion Result Buffer Register 10
ADCRESULT110x00 71131ADC Conversion Result Buffer Register 11
ADCRESULT120x00 71141ADC Conversion Result Buffer Register 12
ADCRESULT130x00 71151ADC Conversion Result Buffer Register 13
ADCRESULT140x00 71161ADC Conversion Result Buffer Register 14
ADCRESULT150x00 71171ADC Conversion Result Buffer Register 15
ADCTRL30x00 71181ADC Control Register 3
ADCST0x00 71191ADC Status Register
Reserved
†
The above registers are Peripheral Frame 2 Registers.
0x00 711C
0x00 711F
SIZE
(x16)
4
†
DESCRIPTION
April 2001 − Revised October 2005SPRS174M
69
Peripherals
4.4Enhanced Controller Area Network (eCAN) Module
The CAN module has the following features:
•Fully compliant with CAN protocol, version 2.0B
•Supports data rates up to 1 Mbps
•Thirty-two mailboxes, each with the following properties:
−Configurable as receive or transmit
−Configurable with standard or extended identifier
−Has a programmable receive mask
−Supports data and remote frame
−Composed of 0 to 8 bytes of data
−Uses a 32-bit time stamp on receive and transmit message
−Protects against reception of new message
−Holds the dynamically programmable priority of transmit message
−Employs a programmable interrupt scheme with two interrupt levels
−Employs a programmable alarm on transmission or reception time-out
•Low-power mode
•Programmable wake-up on bus activity
•Automatic reply to a remote request message
•Automatic retransmission of a frame in case of loss of arbitration or error
•32-bit local network time counter synchronized by a specific message (communication in conjunction with
mailbox 16)
•Self-test mode
−Operates in a loopback mode receiving its own message. A “dummy” acknowledge is provided,
thereby eliminating the need for another node to provide the acknowledge bit.
NOTE: For a SYSCLKOUT of 150 MHz, the smallest bit rate possible is 23.4 kbps.
The 28x CAN has passed the conformance test per ISO/DIS 16845. Contact TI for details.
70
April 2001 − Revised October 2005SPRS174M
Peripherals
eCAN1INTeCAN0INT
Enhanced CAN Controller
Message Controller
Mailbox RAM
(512 Bytes)
32-Message Mailbox
of 4 × 32-Bit Words
eCAN Protocol Kernel
Controls
3232
323232323232
AddressData
32
Memory Management
Unit
CPU Interface,
Receive Control Unit,
Timer Management Unit
32
Receive Buffer
Transmit Buffer
Control Buffer
Status Buffer
eCAN Memory
(512 Bytes)
Registers and Message
Objects Control
SN65HVD23x
3.3-V CAN Transceiver
CAN Bus
Figure 4−7. eCAN Block Diagram and Interface Circuit
Table 4−5. 3.3-V eCAN Transceivers for the TMS320F281x and TMS320C281x DSPs
PART NUMBER
SN65HVD2303.3 VStandbyAdjustableYes−−−40°C to 85°C
SN65HVD230Q3.3 VStandbyAdjustableYes−−−40°C to 125°C
SN65HVD2313.3 VSleepAdjustableYes−−−40°C to 85°C
SN65HVD231Q3.3 VSleepAdjustableYes−−−40°C to 125°C
SN65HVD2323.3 VNoneNoneNone−−−40°C to 85°C
SN65HVD232Q3.3 VNoneNoneNone−−−40°C to 125°C
SN65HVD2333.3 VStandbyAdjustableNone
SN65HVD2343.3 VStandby & SleepAdjustableNone−−−40°C to 125°C
SN65HVD2353.3 VStandbyAdjustableNone
SUPPLY
VOLTAGE
LOW-POWER MODE
SLOPE
CONTROL
VREFOTHERT
Diagnostic
Loopback
Autobaud
Loopback
−40°C to 125°C
−40°C to 125°C
A
April 2001 − Revised October 2005SPRS174M
71
Peripherals
6100h−6107h
6108h−610Fh
6110h−6117h
6118h−611Fh
6120h−6127h
6000h
603Fh
6040h
607Fh
6080h
60BFh
60C0h
60FFh
eCAN Memory (512 Bytes)
Control and Status Registers
Local Acceptance Masks (LAM)
(32 × 32-Bit RAM)
Message Object Time Stamps (MOTS)
(32 × 32-Bit RAM)
Message Object Time-Out (MOTO)
(32 × 32-Bit RAM)
eCAN Memory RAM (512 Bytes)
Mailbox 0
Mailbox 1
Mailbox 2
Mailbox 3
Mailbox 4
eCAN Control and Status Registers
Mailbox Enable − CANME
Mailbox Direction − CANMD
Transmission Request Set − CANTRS
Transmission Request Reset − CANTRR
Transmission Acknowledge − CANTA
Abort Acknowledge − CANAA
Received Message Pending − CANRMP
Received Message Lost − CANRML
Remote Frame Pending − CANRFP
Global Acceptance Mask − CANGAM
Master Control − CANMC
Bit-Timing Configuration − CANBTC
Error and Status − CANES
Transmit Error Counter − CANTEC
Receive Error Counter − CANREC
Global Interrupt Flag 0 − CANGIF0
Global Interrupt Mask − CANGIM
Global Interrupt Flag 1 − CANGIF1
Mailbox Interrupt Mask − CANMIM
Mailbox Interrupt Level − CANMIL
Overwrite Protection Control − CANOPC
TX I/O Control − CANTIOC
RX I/O Control − CANRIOC
Time Stamp Counter − CANTSC
Time-Out Control − CANTOC
Time-Out Status − CANTOS
72
61E0h−61E7h
61E8h−61EFh
61F0h−61F7h
61F8h−61FFh
Mailbox 28
Mailbox 29
Mailbox 30
Mailbox 31
61E8h−61E9h
61EAh−61EBh
61ECh−61EDh
61EEh−61EFh
Figure 4−8. eCAN Memory Map
Reserved
Message Mailbox (16 Bytes)
Message Identifier − MSGID
Message Control − MSGCTRL
Message Data Low − MDL
Message Data High − MDH
April 2001 − Revised October 2005SPRS174M
Peripherals
The CAN registers listed in Table 4−6 are used by the CPU to configure and control the CAN controller and
the message objects. eCAN control registers only support 32-bit read/write operations. Mailbox RAM can be
accessed as 16 bits or 32 bits. 32-bit accesses are aligned to an even boundary.
REGISTER NAMEADDRESS
CANME0x00 60001Mailbox enable
CANMD0x00 60021Mailbox direction
CANTRS0x00 60041Transmit request set
CANTRR0x00 60061Transmit request reset
CANRML0x00 600E1Receive message lost
CANRFP0x00 60101Remote frame pending
CANGAM0x00 60121Global acceptance mask
CANMC0x00 60141Master control
CANBTC0x00 60161Bit-timing configuration
CANES0x00 60181Error and status
CANTEC0x00 601A1Transmit error counter
CANREC0x00 601C1Receive error counter
CANGIF00x00 601E1Global interrupt flag 0
CANGIM0x00 60201Global interrupt mask
CANGIF10x00 60221Global interrupt flag 1
CANMIM0x00 60241Mailbox interrupt mask
CANMIL0x00 60261Mailbox interrupt level
CANOPC0x00 60281Overwrite protection control
CANTIOC0x00 602A1TX I/O control
CANRIOC0x00 602C1RX I/O control
CANTSC0x00 602E1Time stamp counter (Reserved in SCC mode)
CANTOC0x00 60301Time-out control (Reserved in SCC mode)
CANTOS0x00 60321Time-out status (Reserved in SCC mode)
†
These registers are mapped to Peripheral Frame 1.
Table 4−6. CAN Registers Map
SIZE
(x32)
†
DESCRIPTION
April 2001 − Revised October 2005SPRS174M
73
Peripherals
4.5Multichannel Buffered Serial Port (McBSP) Module
The McBSP module has the following features:
•Compatible to McBSP in TMS320C54x /TMS320C55x DSP devices, except the DMA features
•Full-duplex communication
•Double-buffered data registers which allow a continuous data stream
•Independent framing and clocking for receive and transmit
•External shift clock generation or an internal programmable frequency shift clock
•A wide selection of data sizes including 8-, 12-, 16-, 20-, 24-, or 32-bits
•8-bit data transfers with LSB or MSB first
•Programmable polarity for both frame synchronization and data clocks
•HIghly programmable internal clock and frame generation
•Support A-bis mode
•Direct interface to industry-standard CODECs, Analog Interface Chips (AICs), and other serially
connected A/D and D/A devices
•Works with SPI-compatible devices
•Two 16 x 16-level FIFO for Transmit channel
•Two 16 x 16-level FIFO for Receive channel
The following application interfaces can be supported on the McBSP:
•T1/E1 framers
•MVIP switching-compatible and ST-BUS-compliant devices including:
−MVIP framers
−H.100 framers
−SCSA framers
−IOM-2 compliant devices
−AC97-compliant devices (the necessary multiphase frame synchronization capability is provided.)
−IIS-compliant devices
•McBSP clock rate = CLKG =
†
CLKR.
CLKSRG
(1 ) CLKGDIV)
, where CLKSRG source could be LSPCLK, CLKX, or
TMS320C54x and TMS320C55x are trademarks of Texas Instruments.
†
Serial port performance is limited by I/O buffer switching speed. Internal prescalers must be adjusted such that the peripheral speed is less
than the I/O buffer speed limit—20-MHz maximum.
74
April 2001 − Revised October 2005SPRS174M
Peripherals
Figure 4−9 shows the block diagram of the McBSP module with FIFO, interfaced to the F281x and C281x
version of Peripheral Frame 2.
Peripheral Write Bus
MXINT
To CPU
LSPCLK
MRINT
To CPU
TX Interrupt Logic
McBSP Transmit
Interrupt Select Logic
McBSP Registers
and Control Logic
McBSP
McBSP Receive
Interrupt Select Logic
RX Interrupt Logic
TX FIFO
Interrupt
RX FIFO
Interrupt
TX FIFO _15
—
TX FIFO _1
TX FIFO _0
TX FIFO Registers
16
DXR2 Transmit Buffer
16
XSR2
RSR2
16
16
DRR2 Receive Buffer
16
RX FIFO _15
—
RX FIFO _1
RX FIFO _0
RX FIFO Registers
TX FIFO _15
—
TX FIFO _1
TX FIFO _0
16
DXR1 Transmit Buffer
16
Compand Logic
XSR1
RSR1
16
Expand Logic
RBR1 RegisterRBR2 Register
16
DRR1 Receive Buffer
16
RX FIFO _15
—
RX FIFO _1
RX FIFO _0
FSX
CLKX
DX
DR
CLKR
FSR
Peripheral Read Bus
Figure 4−9. McBSP Module With FIFO
April 2001 − Revised October 2005SPRS174M
75
Peripherals
Table 4−7 provides a summary of the McBSP registers.
Table 4−7. McBSP Register Summary
NAME
−−−0x0000McBSP Receive Buffer Register
−−−0x0000McBSP Receive Shift Register
−−−0x0000McBSP Transmit Shift Register
DRR200R0x0000
DRR101R0x0000
DXR202W0x0000
DXR103W0x0000
SPCR204R/W0x0000McBSP Serial Port Control Register 2
SPCR105R/W0x0000McBSP Serial Port Control Register 1
RCR206R/W0x0000McBSP Receive Control Register 2
RCR107R/W0x0000McBSP Receive Control Register 1
XCR208R/W0x0000McBSP Transmit Control Register 2
MFFCT22R/W0x0000McBSP FIFO Control Register
MFFINT23R/W0x0000McBSP FIFO Interrupt Register
MFFST24R/W0x0000McBSP FIFO Status Register
†
DRR2/DRR1 and DXR2/DXR1 share the same addresses of receive and transmit FIFO registers in FIFO mode.
‡
FIFO pointers advancing is based on order of access to DRR2/DRR1 and DXR2/DXR1 registers.
ADDRESS
0x00 78xxh
TYPE
(R/W)
MULTICHANNEL CONTROL REGISTERS (CONTINUED)
FIFO MODE REGISTERS (applicable only in FIFO mode)
RESET VALUE
(HEX)
FIFO Data Registers
FIFO Control Registers
‡
McBSP Data Receive Register 2 − Top of receive FIFO
− Read First FIFO pointers will not advance
McBSP Data Receive Register 1 − Top of receive FIFO
− Read Second for FIFO pointers to advance
McBSP Data Transmit Register 2 − Top of transmit FIFO
− Write First FIFO pointers will not advance
McBSP Data Transmit Register 1 − Top of transmit FIFO
− Write Second for FIFO pointers to advance
DESCRIPTION
April 2001 − Revised October 2005SPRS174M
77
Peripherals
4.6Serial Communications Interface (SCI) Module
The F281x and C281x devices include two serial communications interface (SCI) modules. The SCI modules
support digital communications between the CPU and other asynchronous peripherals that use the standard
non-return-to-zero (NRZ) format. The SCI receiver and transmitter are double-buffered, and each has its own
separate enable and interrupt bits. Both can be operated independently or simultaneously in the full-duplex
mode. To ensure data integrity, the SCI checks received data for break detection, parity, overrun, and framing
errors. The bit rate is programmable to over 65000 different speeds through a 16-bit baud-select register.
Features of each SCI module include:
•Two external pins:
−SCITXD: SCI transmit-output pin
−SCIRXD: SCI receive-input pin
NOTE:Both pins can be used as GPIO if not used for SCI.
•Baud rate programmable to 64K different rates
†
−Baud rate =
LSPCLK
(BRR ) 1) * 8
LSPCLK
=
16
, when BRR ≠ 0
,when BRR = 0
•Data-word format
−One start bit
−Data-word length programmable from one to eight bits
−Optional even/odd/no parity bit
−One or two stop bits
•Four error-detection flags: parity, overrun, framing, and break detection
•Two wake-up multiprocessor modes: idle-line and address bit
•Half- or full-duplex operation
•Double-buffered receive and transmit functions
•Transmitter and receiver operations can be accomplished through interrupt-driven or polled algorithms
with status flags.
−Transmitter: TXRDY flag (transmitter-buffer register is ready to receive another character) and
TX EMPTY flag (transmitter-shift register is empty)
−Receiver: RXRDY flag (receiver-buffer register is ready to receive another character), BRKDT flag
(break condition occurred), and RX ERROR flag (monitoring four interrupt conditions)
•Separate enable bits for transmitter and receiver interrupts (except BRKDT)
•Max bit rate +
†
Serial port performance is limited by I/O buffer switching speed. Internal prescalers must be adjusted such that the peripheral speed is less
than the I/O buffer speed limit—20 MHz maximum.
78
150 MHz
+ 9.375 106bńs
16
April 2001 − Revised October 2005SPRS174M
Peripherals
•NRZ (non-return-to-zero) format
•Ten SCI module control registers located in the control register frame beginning at address 7050h
NOTE:All registers in this module are 8-bit registers that are connected to Peripheral Frame 2. When a
register is accessed, the register data is in the lower byte (7 −0), and the upper byte (15−8) is read as
zeros. Writing to the upper byte has no effect.
Enhanced features:
•Auto baud-detect hardware logic
•16-level transmit/receive FIFO
The SCI port operation is configured and controlled by the registers listed in Table 4−8 and Table 4−9.
Table 4−8. SCI-A Registers
NAMEADDRESSSIZE (x16)DESCRIPTION
SCICCRA0x00 70501SCI-A Communications Control Register
SCICTL1A0x00 70511SCI-A Control Register 1
SCIHBAUDA0x00 70521SCI-A Baud Register, High Bits
SCILBAUDA0x00 70531SCI-A Baud Register, Low Bits
SCICTL2A0x00 70541SCI-A Control Register 2
SCIRXSTA0x00 70551SCI-A Receive Status Register
SCIRXEMUA0x00 70561SCI-A Receive Emulation Data Buffer Register
SCIRXBUFA0x00 70571SCI-A Receive Data Buffer Register
SCITXBUFA0x00 70591SCI-A Transmit Data Buffer Register
SCIFFTXA0x00 705A1SCI-A FIFO Transmit Register
SCIFFRXA0x00 705B1SCI-A FIFO Receive Register
SCIFFCTA0x00 705C1SCI-A FIFO Control Register
SCIPRIA0x00 705F1SCI-A Priority Control Register
†
Shaded registers are new registers for the FIFO mode.
Table 4−9. SCI-B Registers
NAMEADDRESSSIZE (x16)DESCRIPTION
SCICCRB0x00 77501SCI-B Communications Control Register
SCICTL1B0x00 77511SCI-B Control Register 1
SCIHBAUDB0x00 77521SCI-B Baud Register, High Bits
SCILBAUDB0x00 77531SCI-B Baud Register, Low Bits
SCICTL2B0x00 77541SCI-B Control Register 2
SCIRXSTB0x00 77551SCI-B Receive Status Register
SCIRXEMUB0x00 77561SCI-B Receive Emulation Data Buffer Register
SCIRXBUFB0x00 77571SCI-B Receive Data Buffer Register
SCITXBUFB0x00 77591SCI-B Transmit Data Buffer Register
SCIFFTXB0x00 775A1SCI-B FIFO Transmit Register
SCIFFRXB0x00 775B1SCI-B FIFO Receive Register
SCIFFCTB0x00 775C1SCI-B FIFO Control Register
SCIPRIB0x00 775F1SCI-B Priority Control Register
†
Shaded registers are new registers for the FIFO mode.
‡
Registers in this table are mapped to peripheral bus 16 space. This space only allows 16-bit accesses. 32-bit accesses produce undefined results.
†
†‡
April 2001 − Revised October 2005SPRS174M
79
Peripherals
Figure 4−10 shows the SCI module block diagram.
LSPCLK
Frame Format and Mode
Parity
Even/Odd Enable
SCICCR.6 SCICCR.5
TXWAKE
SCICTL1.3
1
WUT
SCIHBAUD. 15 − 8
Baud Rate
MSbyte
Register
SCILBAUD. 7 − 0
Baud Rate
LSbyte
Register
SCIRXST.7
SCIRXST. 4 − 2
RX Error
RX Error
SCICTL1.1
TXSHF
Register
8
Transmitter−Data
Buffer Register
8
TX FIFO _0
TX FIFO _1
−−−−−
TX FIFO _15
SCITXBUF.7−0
TX FIFO registers
SCIFFENA
SCIFFTX.14
RXSHF
Register
TXENA
TX FIFO
Interrupts
SCITXD
TX EMPTY
SCICTL2.6
TXRDY
SCICTL2.7
TX INT ENA
SCICTL2.0
TX Interrupt
Logic
SCI TX Interrupt select logic
AutoBaud Detect logic
SCIRXD
TXINT
To CPU
SCITXD
SCIRXD
RXWAKE
SCIRXST.1
RXENA
SCICTL1.0
8
Receive Data
Buffer register
SCIRXBUF.7−0
8
RX FIFO _15
−−−−−
RX FIFO_1
RX FIFO _0
SCIRXBUF.7−0
RX FIFO registers
RX FIFO
Interrupts
RXRDY
SCIRXST.6
BRKDT
SCIRXST.5
SCICTL2.1
RX/BK INT ENA
RX Interrupt
Logic
RXINT
To CPU
RXFFOVF
PEFE OE
SCIFFRX.15
RX ERR INT ENA
SCICTL1.6
SCI RX Interrupt select logic
80
Figure 4−10. Serial Communications Interface (SCI) Module Block Diagram
April 2001 − Revised October 2005SPRS174M
4.7Serial Peripheral Interface (SPI) Module
The F281x and C281x devices include the four-pin serial peripheral interface (SPI) module. The SPI is a
high-speed, synchronous serial I/O port that allows a serial bit stream of programmed length (one to sixteen
bits) to be shifted into and out of the device at a programmable bit-transfer rate. Normally, the SPI is used for
communications between the DSP controller and external peripherals or another processor. Typical
applications include external I/O or peripheral expansion through devices such as shift registers, display
drivers, and ADCs. Multidevice communications are supported by the master/slave operation of the SPI.
The SPI module features include:
•Four external pins:
−SPISOMI: SPI slave-output/master-input pin
−SPISIMO: SPI slave-input/master-output pin
Peripherals
−SPISTE
: SPI slave transmit-enable pin
−SPICLK: SPI serial-clock pin
NOTE: All four pins can be used as GPIO, if the SPI module is not used.
•Two operational modes: master and slave
•Baud rate: 125 different programmable rates
−Baud rate =
LSPCLK
(SPIBRR ) 1)
LSPCLK
=
4
, when SPIBRR ≠ 0
,when SPIBRR = 0, 1, 2, 3
Serial port performance is limited by I/O buffer switching speed. Internal prescalers must be adjusted
such that the peripheral speed is less than the I/O buffer speed limit—20 MHz maximum.
•Data word length: one to sixteen data bits
•Four clocking schemes (controlled by clock polarity and clock phase bits) include:
−Falling edge without phase delay: SPICLK active-high. SPI transmits data on the falling edge of the
SPICLK signal and receives data on the rising edge of the SPICLK signal.
−Falling edge with phase delay: SPICLK active-high. SPI transmits data one half-cycle ahead of the
falling edge of the SPICLK signal and receives data on the falling edge of the SPICLK signal.
−Rising edge without phase delay: SPICLK inactive-low. SPI transmits data on the rising edge of the
SPICLK signal and receives data on the falling edge of the SPICLK signal.
−Rising edge with phase delay: SPICLK inactive-low. SPI transmits data one half-cycle ahead of the
falling edge of the SPICLK signal and receives data on the rising edge of the SPICLK signal.
•Simultaneous receive and transmit operation (transmit function can be disabled in software)
•Transmitter and receiver operations are accomplished through either interrupt-driven or polled
algorithms.
•Nine SPI module control registers: Located in control register frame beginning at address 7040h.
NOTE:All registers in this module are 16-bit registers that are connected to Peripheral Frame 2. When a
register is accessed, the register data is in the lower byte (7 −0), and the upper byte (15−8) is read as
zeros. Writing to the upper byte has no effect.
Enhanced feature:
•16-level transmit/receive FIFO
•Delayed transmit control
April 2001 − Revised October 2005SPRS174M
81
Peripherals
The SPI port operation is configured and controlled by the registers listed in Table 4−10.
Table 4−10. SPI Registers
NAMEADDRESSSIZE (x16)DESCRIPTION
SPICCR0x00 70401SPI Configuration Control Register
SPICTL0x00 70411SPI Operation Control Register
SPISTS0x00 70421SPI Status Register
SPIRXBUF0x00 70471SPI Serial Input Buffer Register
SPITXBUF0x00 70481SPI Serial Output Buffer Register
SPIDAT0x00 70491SPI Serial Data Register
SPIFFTX0x00 704A1SPI FIFO Transmit Register
SPIFFRX0x00 704B1SPI FIFO Receive Register
SPIFFCT0x00 704C1SPI FIFO Control Register
SPIPRI0x00 704F1SPI Priority Control Register
NOTE: The above registers are mapped to Peripheral Frame 2. This space only allows 16-bit accesses. 32-bit accesses produce undefined
results.
82
April 2001 − Revised October 2005SPRS174M
Figure 4−11 is a block diagram of the SPI in slave mode.
Peripherals
Buffer Register
16
SPI Char
LSPCLK
SPIFFENA
SPIFFTX.14
RX FIFO registers
SPIRXBUF
RX FIFO _0
RX FIFO _1
−−−−−
RX FIFO _15
16
SPIRXBUF
TX FIFO registers
SPITXBUF
TX FIFO _15
−−−−−
TX FIFO _1
TX FIFO _0
SPITXBUF
Buffer Register
SPIDAT
Data Register
SPIDAT.15 − 0
Talk
SPICTL.1
State Control
SPICCR.3 − 0
SPI Bit Rate
SPIBRR.6 − 0
4561230
16
16
0123
RX FIFO Interrupt
TX FIFO Interrupt
M
S
M
S
S
M
Receiver
Overrun Flag
SPISTS.7
SPIFFOVF FLAG
SPIFFRX.15
SPI INT FLAG
SPISTS.6
SW1
SW2
S
M
Overrun
INT ENA
SPICTL.4
RX Interrupt
Logic
TX Interrupt
Logic
SPI INT
ENA
SPICTL.0
M
S
M
S
Master/Slave
SPICTL.2
SW3
Clock
Polarity
SPICCR.6SPICTL.3
SPIINT/SPIRXINT
To CPU
SPITXINT
Clock
Phase
SPISIMO
SPISOMI
SPISTE
SPICLK
†
†
SPISTE
is driven low by the master for a slave device.
Figure 4−11. Serial Peripheral Interface Module Block Diagram (Slave Mode)
April 2001 − Revised October 2005SPRS174M
83
Peripherals
4.8GPIO MUX
The GPIO Mux registers, are used to select the operation of shared pins on the F281x and C281x devices.
The pins can be individually selected to operate as “Digital I/O” or connected to “Peripheral I/O” signals (via
the GPxMUX registers). If selected for “Digital I/O” mode, registers are provided to configure the pin direction
(via the GPxDIR registers) and to qualify the input signal to remove unwanted noise (via the GPxQUAL)
registers). Table 4−11 lists the GPIO Mux Registers.
Table 4−11. GPIO Mux Registers
NAMEADDRESSSIZE (x16)REGISTER DESCRIPTION
GPAMUX0x00 70C01GPIO A Mux Control Register
GPADIR0x00 70C11GPIO A Direction Control Register
GPAQUAL0x00 70C21GPIO A Input Qualification Control Register
Reserved0x00 70C31
GPBMUX0x00 70C41GPIO B Mux Control Register
GPBDIR0x00 70C51GPIO B Direction Control Register
GPBQUAL0x00 70C61GPIO B Input Qualification Control Register
Reserved0x00 70C71
Reserved0x00 70C81
Reserved0x00 70C91
Reserved0x00 70CA1
Reserved0x00 70CB1
GPDMUX0x00 70CC1GPIO D Mux Control Register
GPDDIR0x00 70CD1GPIO D Direction Control Register
GPDQUAL0x00 70CE1GPIO D Input Qualification Control Register
Reserved0x00 70CF1
GPEMUX0x00 70D01GPIO E Mux Control Register
GPEDIR0x00 70D11GPIO E Direction Control Register
GPEQUAL0x00 70D21GPIO E Input Qualification Control Register
Reserved0x00 70D31
GPFMUX0x00 70D41GPIO F Mux Control Register
GPFDIR0x00 70D51GPIO F Direction Control Register
Reserved0x00 70D61
Reserved0x00 70D71
GPGMUX0x00 70D81GPIO G Mux Control Register
GPGDIR0x00 70D91GPIO G Direction Control Register
Reserved0x00 70DA1
Reserved0x00 70DB1
Reserved
†
Reserved locations return undefined values and writes are ignored.
‡
Not all inputs support input signal qualification.
§
These registers are EALLOW protected. This prevents spurious writes from overwriting the contents and corrupting the system.
0x00 70DC
0x00 70DF
4
†‡§
84
April 2001 − Revised October 2005SPRS174M
Peripherals
If configured for ”Digital I/O” mode, additional registers are provided for setting individual I/O signals (via the
GPxSET registers), for clearing individual I/O signals (via the GPxCLEAR registers), for toggling individual I/O
signals (via the GPxTOGGLE registers), or for reading/writing to the individual I/O signals (via the GPxDAT
registers). Table 4−12 lists the GPIO Data Registers. For more information, see the TMS320x281x SystemControl and Interrupts Reference Guide (literature number SPRU078).
Table 4−12. GPIO Data Registers
NAMEADDRESSSIZE (x16)REGISTER DESCRIPTION
GPADAT0x00 70E01GPIO A Data Register
GPASET0x00 70E11GPIO A Set Register
GPACLEAR0x00 70E21GPIO A Clear Register
GPATOGGLE0x00 70E31GPIO A Toggle Register
GPBDAT0x00 70E41GPIO B Data Register
GPBSET0x00 70E51GPIO B Set Register
GPDDAT0x00 70EC1GPIO D Data Register
GPDSET0x00 70ED1GPIO D Set Register
GPDCLEAR0x00 70EE1GPIO D Clear Register
GPDTOGGLE0x00 70EF1GPIO D Toggle Register
GPEDAT0x00 70F01GPIO E Data Register
GPESET0x00 70F11GPIO E Set Register
GPECLEAR0x00 70F21GPIO E Clear Register
GPETOGGLE0x00 70F31GPIO E Toggle Register
GPFDAT0x00 70F41GPIO F Data Register
GPFSET0x00 70F51GPIO F Set Register
GPFCLEAR0x00 70F61GPIO F Clear Register
GPFTOGGLE0x00 70F71GPIO F Toggle Register
GPGDAT0x00 70F81GPIO G Data Register
GPGSET0x00 70F91GPIO G Set Register
GPGCLEAR0x00 70FA1GPIO G Clear Register
GPGTOGGLE0x00 70FB1GPIO G Toggle Register
Reserved
†
Reserved locations will return undefined values and writes will be ignored.
‡
These registers are NOT EALLOW protected. The above registers will typically be accessed regularly by the user.
0x00 70FC
0x00 70FF
4
†‡
April 2001 − Revised October 2005SPRS174M
85
Peripherals
Figure 4−12 shows how the various register bits select the various modes of operation for GPIO function.
GPxDAT/SET/CLEAR/TOGGLE
GPxQUAL
Register
Register Bit(s)
01
Input Qualification
MUX
Digital I/O
GPxMUX
Register Bit
High-Impedance
Enable (1)
GPxDIR
Register Bit
MUX
Peripheral I/O
High-
Impedance
Control
10
SYSCLKOUT
XRS
Internal (Pullup or Pulldown)
PIN
NOTES: A. In the GPIO mode, when the GPIO pin is configured for output operation, reading the GPxDAT data register only gives the value
written, not the value at the pin. In the peripheral mode, the state of the pin can be read through the GPxDAT register, provided the
corresponding direction bit is zero (input mode).
B. Some selected input signals are qualified by the SYSCLKOUT. The GPxQUAL register specifies the qualification sampling period.
The sampling window is 6 samples wide and the output is only changed when all samples are the same (all 0’s or all 1’s). This feature
removes unwanted spikes from the input signal.
Figure 4−12. GPIO/Peripheral Pin Multiplexing
NOTE:
The input function of the GPIO pin and the input path to the peripheral are always enabled.
It is the output function of the GPIO pin that is multiplexed with the output path of the primary
(peripheral) function. Since the output buffer of a pin connects back to the input buffer, any
GPIO signal present at the pin will be propagated to the peripheral module as well. Therefore,
when a pin is configured for GPIO operation, the corresponding peripheral functionality (and
interrupt-generating capability) must be disabled. Otherwise, interrupts may be inadvertently
triggered. This is especially critical when the PDPINT A
pins, since a value of zero for GPDDAT.0 or GPDDAT.5 (PDPINTx
high-impedance state. The CxTRIP
and TxCTRIP pins will also put the corresponding PWM
and PDPINTB pins are used as GPIO
) will put PWM pins in a
pins in high impedance, if they are driven low (as GPIO pins) and bit EXTCONx.0 = 1.
86
April 2001 − Revised October 2005SPRS174M
5Development Support
Texas Instruments (TI) offers an extensive line of development tools for the C28x generation of DSPs,
including tools to evaluate the performance of the processors, generate code, develop algorithm
implementations, and fully integrate and debug software and hardware modules.
The following products support development of F281x- and C281x-based applications:
Software Development Tools
•Code Composer Studio Integrated Development Environment (IDE)
−C/C++ Compiler
−Code generation tools
−Assembler/Linker
−Cycle Accurate Simulator
•Application algorithms
•Sample applications code
Hardware Development Tools
•2812 eZdsp
•JTAG-based emulators − SPI515, XDS510PP, XDS510PP Plus, XDS510 USB
•Universal 5-V dc power supply
•Documentation and cables
Development Support
5.1Device and Development Support Tool Nomenclature
To designate the stages in the product development cycle, TI assigns prefixes to the part numbers of all
[TMS320] DSP devices and support tools. Each [TMS320] DSP commercial family member has one of three
prefixes: TMX, TMP, or TMS (e.g., TMS320F2812GHH). Texas Instruments recommends two of three
possible prefix designators for its support tools: TMDX and TMDS. These prefixes represent evolutionary
stages of product development from engineering prototypes (TMX/TMDX) through fully qualified production
devices/tools (TMS/TMDS).
TMXExperimental device that is not necessarily representative of the final device’s electrical specifications
TMPFinal silicon die that conforms to the device’s electrical specifications but has not completed quality
and reliability verification
TMSFully qualified production device
Support tool development evolutionary flow:
TMDX Development-support product that has not yet completed Texas Instruments internal qualification
testing.
TMDS Fully qualified development-support product
TMX and TMP devices and TMDX development-support tools are shipped against the following disclaimer:
“Developmental product is intended for internal evaluation purposes.“
TMS devices and TMDS development-support tools have been characterized fully, and the quality and
reliability of the device have been demonstrated fully. TI’s standard warranty applies.
Predictions show that prototype devices (TMX or TMP) have a greater failure rate than the standard
production devices. Texas Instruments recommends that these devices not be used in any production system
because their expected end-use failure rate still is undefined. Only qualified production devices are to be used.
TMS320 is a trademark of Texas Instruments.
April 2001 − Revised October 2005SPRS174M
87
Development Support
TI device nomenclature also includes a suffix with the device family name. This suffix indicates the package
type (for example, PBK) and temperature range (for example, A). Figure 5−1 provides a legend for reading
the complete device name for any TMS320x28x family member.
LQFP package not yet available lead (Pb)-free. For estimated conversion dates, go to www.ti.com/leadfree
Figure 5−1. TMS320x28x Device Nomenclature
5.2Documentation Support
Extensive documentation supports all of the TMS320 DSP family generations of devices from product
announcement through applications development. The types of documentation available include: data sheets
and data manuals, with design specifications; and hardware and software applications. Useful reference
documentation includes:
TMS 320F 2810PBK
DSP Family
A
TEMPERATURE RANGE
A= −40°C to 85°C
S= −40°C to 125°C
Q= −40°C to 125°C − Q100
TMS320C28x DSP CPU and Instruction Set Reference Guide (literature number SPRU430) describes the
central processing unit (CPU) and the assembly language instructions of the TMS320C28x fixed-point
digital signal processors (DSPs). It also describes emulation features available on these DSPs.
TMS320x281x Analog-to-Digital Converter (ADC) Reference Guide (literature number SPRU060)
describes the ADC module. The module is a 12-bit pipelined ADC. The analog circuits of this converter,
referred to as the core in this document, include the front-end analog multiplexers (MUXs), sample-and-hold
(S/H) circuits, the conversion core, voltage regulators, and other analog supporting circuits. Digital circuits,
referred to as the wrapper in this document, include programmable conversion sequencer, result registers,
interface to analog circuits, interface to device peripheral bus, and interface to other on-chip modules.
TMS320x281x Boot ROM Reference Guide (literature number SPRU095) describes the purpose and
features of the bootloader (factory-programmed boot-loading software). It also describes other contents of the
device on-chip boot ROM and identifies where all of the information is located within that memory.
TMS320x281x Event Manager (EV) Reference Guide (literature number SPRU065) describes the EV
modules that provide a broad range of functions and features that are particularly useful in motion control and
motor control applications. The EV modules include general-purpose (GP) timers, full-compare/PWM units,
capture units, and quadrature-encoder pulse (QEP) circuits.
TMS320x281x External Interface (XINTF) Reference Guide (literature number SPRU067) describes the
external interface (XINTF) of the 281x digital signal processors (DSPs).
April 2001 − Revised October 2005SPRS174M
Development Support
TMS320x281x Multi-channel Buffered Serial Ports (McBSPs) Reference Guide (literature number
SPRU061) describes the McBSP) available on the 281x devices. The McBSPs allow direct interface between
a DSP and other devices in a system.
TMS320x281x System Control and Interrupts Reference Guide (literature number SPRU078) describes
the various interrupts and system control features of the 281x digital signal processors (DSPs).
TMS320x281x, 280x Enhanced Controller Area Network (eCAN) Reference Guide (literature number
SPRU074) describes the eCAN that uses established protocol to communicate serially with other controllers
in electrically noisy environments. With 32 fully configurable mailboxes and time-stamping feature, the eCAN
module provides a versatile and robust serial communication interface. The eCAN module implemented in
the C28x DSP is compatible with the CAN 2.0B standard (active).
TMS320x281x, 280x Peripheral Reference Guide (literature number SPRU566) describes the peripheral
reference guides of the 28x digital signal processors (DSPs).
TMS320x281x, 280x Serial Communication Interface (SCI) Reference Guide (literature number
SPRU051) describes the SCI that is a two-wire asynchronous serial port, commonly known as a UART. The
SCI modules support digital communications between the CPU and other asynchronous peripherals that use
the standard non-return-to-zero (NRZ) format.
TMS320x281x, 280x Serial Peripheral Interface (SPI) Reference Guide (literature number SPRU059)
describes the SPI − a high-speed synchronous serial input/output (I/O) port that allows a serial bit stream of
programmed length (one to sixteen bits) to be shifted into and out of the device at a programmed bit-transfer
rate. The SPI is used for communications between the DSP controller and external peripherals or another
controller.
3.3 V DSP for Digital Motor Control Application Report (literature number SPRA550). The application
report first describes a scenario of a 3.3-V-only motor controller indicating that for most applications, no
significant issue of interfacing between 3.3 V and 5 V exists. Cost-effective 3.3-V/5-V interfacing techniques
are then discussed for the situations where such interfacing is needed. On-chip 3.3-V analog-to-digital
converter (ADC) versus 5-V ADC is also discussed. Guidelines for component layout and printed circuit board
(PCB) design that can reduce system noise and EMI effects are summarized in the last section.
The TMS320C28x Instruction Set Simulator Technical Overview (literature number SPRU608) describes
the simulator, available within the Code Composer Studio for TMS320C2000 IDE, that simulates the
instruction set of the C28x core.
TMS320C28x DSP/BIOS Application Programming Interface (API) Reference Guide (literature number
SPRU625) describes development using DSP/BIOS.
TMS320C28x Assembly Language Tools User’s Guide (literature number SPRU513) describes the
assembly language tools (assembler and other tools used to develop assembly language code), assembler
directives, macros, common object file format, and symbolic debugging directives for the TMS320C28x
device.
TMS320C28x Optimizing C Compiler User’s Guide (literature number SPRU514) describes the
TMS320C28x C/C++ compiler. This compiler accepts ANSI standard C/C++ source code and produces
TMS320 DSP assembly language source code for the TMS320C28x device.
Programming Examples for the TMS320F281x eCAN (literature number SPRA876) contains several
programming examples to illustrate how the eCAN module is set up for different modes of operation. The
objective is to help you come up to speed quickly in programming the eCAN. All programs have been
extensively commented to aid easy understanding. The CANalyzer tool from Vector CANtech, Inc. was used
to monitor and control the bus operation. All projects and CANalyzer configuration files are included in the
attached SPRA876.zip file.
April 2001 − Revised October 2005SPRS174M
89
Development Support
TMS320F2810, TMS320F2811, TMS320F2812 ADC Calibration (literature number SPRA989) describes a
method for improving the absolute accuracy of the 12-bit analog-to-digital converter (ADC) found on the
F2810/F2811/F2812 devices. Due to inherent gain and offset errors, the absolute accuracy of the ADC is
impacted. The methods described in this application note can improve the absolute accuracy of the ADC to
achieve levels better than 0.5%. This application note is accompanied by an example program
(ADCcalibration.zip) that executes from RAM on the F2812 EzDSP.
A series of DSP textbooks is published by Prentice-Hall and John Wiley & Sons to support digital signal
processing research and education. The TMS320 DSP newsletter, Details on Signal Processing, is
published quarterly and distributed to update TMS320 DSP customers on product information.
Updated information on the TMS320 DSP controllers can be found on the worldwide web at:http://www.ti.com.
To send comments regarding this TMS320F281x/TMS320C281x data manual (literature number SPRS174),
use the comments@books.sc.ti.com email address, which is a repository for feedback. For questions and
support, contact the Product Information Center listed at the http://www.ti.com/sc/docs/pic/home.htm site.
90
April 2001 − Revised October 2005SPRS174M
6Electrical Specifications
This section provides the absolute maximum ratings and the recommended operating conditions for the
TMS320F281x and TMS320C281x DSPs.
6.1Absolute Maximum Ratings
Unless otherwise noted, the list of absolute maximum ratings are specified over operating temperature
ranges. Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to
the device. These are stress ratings only, and functional operation of the device at these or any other
conditions beyond those indicated under Section 6.2 is not implied. Exposure to absolute-maximum-rated
conditions for extended periods may affect device reliability. All voltage values are with respect to V
Junction temperature range, T
Storage temperature range, T
†
Continuous clamp current per pin is ± 2 mA
‡
Long-term high-temperature storage and/or extended use at maximum temperature conditions may result in a reduction of overall device life.
For additional information, see IC Package Thermal Metrics Application Report (literature number SPRA953) and Reliability Data forTMS320LF24x and TMS320F281x Devices Application Report (literature number SPRA963).
Group 2 pins are as follows: XINTF pins, T1CTRIP_PDPINTA
DDA2
DDREFBG
Device supply voltage, I/O3.143.33.47V
Device supply voltage, CPU
Supply ground0V
,
,
ADC supply voltage3.143.33.47V
Flash programming supply voltage3.143.33.47V
(system clock)
High-level input voltage
Low-level input voltage
VOH = 2.4 V
VOL = VOL MAX
Ambient
A version− 4085
S version− 40125
Q version− 40125°C
, V
DDIO
1.8 V (135 MHz)1.711.81.89
1.9 V (150 MHz)
VDD = 1.9 V ± 5%2150
VDD = 1.8 V ± 5%
All inputs except XCLKIN2V
XCLKIN (@ 50 µA max)
All inputs except XCLKIN0.8
XCLKIN (@ 50 µA max)
All I/Os except Group 2− 4
Group 2
All I/Os except Group 24
Group 2
, VDD, V
DDAIO
0.7V
‡
‡
DDA1/VDDA2
, TDO, XCLKOUT, XF, EMU0, and EMU1.
/AV
DDREFBG
, and V
MINNOMMAXUNIT
1.811.92
2135
0.3V
V
DD
DD
− 8
DD
DD3VFL
.
V
MHz
V
V
mA
mA
8
°C
92
April 2001 − Revised October 2005SPRS174M
Electrical Specifications
V
High-level output voltage
V
OL
Input
DDIO
0
†
With pullup
‡
Input
With pullup
DDIO
V
= 0 V
(low level)
Input
V
= 3.3 V,
I
IH
current
)
¶
V
DDIO
= 3.3 V,
µA
6.3Electrical Characteristics Over Recommended Operating Conditions
(Unless Otherwise Noted)
PARAMETERTEST CONDITIONSMINTYPMAXUNIT
IOH = IOHMAX2.4
OH
V
I
IL
I
IL
I
IH
I
OZ
C
i
C
o
†
Applicable to C281x devices
‡
Applicable to F281x devices
§
The following pins have no internal PU/PD: GPIOE0, GPIOE1, GPIOF0, GPIOF1, GPIOF2, GPIOF3, GPIOF12, GPIOG4, and GPIOG5.
¶
The following pins have an internal pulldown: XMP/MC
Low-level output voltageIOL = IOLMAX0.4V
current
(low level)
Input
current
Input
current
(high level
Leakage current (for pins
without internal PU/PD),
high-impedance state
(off-state)
Input capacitance2pF
Output capacitance3pF
With pullupV
With pulldown
With pulldownV
With pullupV
With pulldown
IOH = 50 µAV
= 3.3 V, VIN = 0 V−80−140−19
V
= 3.3 V, VIN = 0 V±2
DDIO
V
= 3.3 V,
DDIO
IN
= 3.3 V, VIN = 0 V±2
DDIO
= 3.3 V, VIN = V
DDIO
VIN = V
DD
VO = V
or 0 V±2µA
DDIO
, TESTSEL, and TRST.
All I/Os§ (including XRS)
except EVB
GPIOB/EVB−13−25−35
DD
− 0.2
DDIO
−80−140−190
285080
±2
µA
µA
µA
April 2001 − Revised October 2005SPRS174M
93
Electrical Specifications
MODE
TEST CONDITIONS
MODE
TEST CONDITIONS
6.4Current Consumption by Power-Supply Pins Over Recommended Operating Conditions
During Low-Power Modes at 150-MHz SYSCLKOUT (TMS320F281x)
I
DD
, V
DD3VFL
pins.
§
, V
TYPMAX
DDA
TYPMAX
All peripheral clocks are enabled. All
PWM pins are toggled at 100 kHz.
Data is continuously transmitted out of
Operational
IDLE
STANDBY
HALT
†
I
current is dependent on the electrical loading on the I/O pins.
DDIO
‡
I
includes current into V
DDA
§
MAX numbers are at 125°C, and MAX voltage (VDD = 2.0 V; V
¶
IDD represents the total current drawn from the 1.8-V rail (VDD). It includes a small amount of current (<1 mA) drawn by V
the SCIA, SCIB, and CAN ports. The
hardware multiplier is exercised.
Code is running out of flash with 5
wait-states.
− Flash is powered down
− XCLKOUT is turned off
− All peripheral clocks are on,
except ADC
− Flash is powered down
− Peripheral clocks are turned off
− Pins without an internal PU/PD
are tied high/low
− Flash is powered down
− Peripheral clocks are turned off
− Pins without an internal PU/PD
are tied high/low
− Input clock is disabled
DDA1
, V
DDA2
, AV
DDREFBG
195 mA¶230 mA15 mA30 mA40 mA45 mA40 mA50 mA
125 mA150 mA5 mA10 mA2 µA4 µA1 µA20 µA
5 mA10 mA5 µA20 µA2 µA4 µA1 µA20 µA
70 µA5 µA20 µA2 µA4 µA1 µA20 µA
, and V
DDAIO
DDIO
I
DDIO
= 3.6 V).
†
§
I
DD3VFL
TYPMAX
§
DD1
‡
I
DDA
TYPMAX
.
§
NOTE:
HALT and STANDBY modes cannot be used when the PLL is disabled.
6.5Current Consumption by Power-Supply Pins Over Recommended Operating Conditions
During Low-Power Modes at 150-MHz SYSCLKOUT (TMS320C281x)
I
DD
TYPMAX
All peripheral clocks are enabled. All PWM pins are
toggled at 100 kHz.
Operational
IDLE
STANDBY
HALT
†
I
current is dependent on the electrical loading on the I/O pins.
DDIO
‡
I
includes current into V
DDA
§
MAX numbers are at 125°C, and MAX voltage (VDD = 2.0 V; V
¶
IDD represents the total current drawn from the 1.8-V rail (VDD). It includes a small amount of current (<1 mA) drawn by V
Data is continuously transmitted out of the SCIA, SCIB,
and CAN ports. The hardware multiplier is exercised.
Code is running out of ROM with 5 wait-states.
− XCLKOUT is turned off
− All peripheral clocks are on, except ADC
− Peripheral clocks are turned off
− Pins without an internal PU/PD are tied high/low
− Peripheral clocks are turned off
− Pins without an internal PU/PD are tied high/low
− Input clock is disabled
DDA1
, V
DDA2
, AV
DDREFBG
, and V
DDIO
DDAIO
, V
210 mA¶260 mA20 mA30 mA40 mA50 mA
140 mA155 mA20 mA30 mA5 µA10 µA
5 mA10mA5 µA20 µA5 µA10 µA
70 µA5 µA10 µA1 µA
pins.
, V
DD3VFL
DDA
= 3.6 V).
§
TYPMAX
I
DDIO
†
§
DD1
TYPMAX
I
DDA
.
‡
§
94
April 2001 − Revised October 2005SPRS174M
6.6Current Consumption Graphs
250
200
150
Current (mA)
100
50
0
020406080100120140160
Electrical Specifications
SYSCLKOUT (MHz)
IDD
NOTES: A. Test conditions are as defined in Table 6−5 for operational currents.
B. IDD represents the total current drawn from the 1.8-V rail (VDD). It includes a small amount of current (<1 mA) drawn by V
C. IDDA represents the current drawn by VDDA1 and VDDA2 rails.
D. Total 3.3-V current is the sum of I
.
IDDIO
DDIO
IDD3VFLIDDATotal 3.3−V current
, I
DD3VFL
, and I
. It includes a small amount of current (<1 mA) drawn by VDDAIO.
DDA
Figure 6−1. F2812/F2811/F2810 Typical Current Consumption Over Frequency
700
600
500
400
Power (mW)
300
200
100
0
020406080100120140160
DD1
.
SYSCLKOUT (MHz)
Total Power
Figure 6−2. F2812/F2811/F2810 Typical Power Consumption Over Frequency
April 2001 − Revised October 2005SPRS174M
95
Electrical Specifications
250
200
150
100
Current (mA)
50
0
020406080100120140160
SYSCLKOUT (MHz)
IDD
NOTES: A. Test conditions are as defined in Table 6−5 for operational currents.
B. IDD represents the total current drawn from the 1.8-V rail (VDD). It includes a small amount of current (<1 mA) drawn
by V
C. IDDA represents the current drawn by VDDA1 and VDDA2 rails.
D. Total 3.3-V current is the sum of I
DD1
.
DDIO
IDDIO
and I
IDDATotal 3.3−V current
. It includes a small amount of current (<1 mA) drawn by VDDAIO.
DDA
Figure 6−3. C2812/C2811/C2810 Typical Current Consumption Over Frequency
600
500
400
300
Power (mW)
200
100
96
0
020406080100120140160
SYSCLKOUT (MHz)
Total Power
Figure 6−4. C2812/C2811/C2810 Typical Power Consumption Over Frequency
April 2001 − Revised October 2005SPRS174M
6.7Reducing Current Consumption
28x DSPs incorporate a unique method to reduce the device current consumption. A reduction in current
consumption can be achieved by turning off the clock to any peripheral module which is not used in a given
application. Table 6−1 indicates the typical reduction in current consumption achieved by turning off the clocks
to various peripherals.
Electrical Specifications
Table 6−1. Typical Current Consumption by Various Peripherals (at 150 MHz)
PERIPHERAL MODULEIDD CURRENT REDUCTION (mA)
eCAN
EVA6
EVB
ADC8
SCI
SPI5
McBSP13
†
All peripheral clocks are disabled upon reset. Writing to/reading from peripheral registers is possible only after the peripheral clocks are turned
on.
‡
This number represents the current drawn by the digital portion of the ADC module. Turning off the clock to the ADC module results in the
elimination of the current drawn by the analog portion of the ADC (I
DDA
) as well.
12
6
‡
4
†
6.8Power Sequencing Requirements
TMS320F2812/F2811/F2810 silicon requires dual voltages (1.8-V or 1.9-V and 3.3-V) to power up the CPU,
Flash, ROM, ADC, and the I/Os. To ensure the correct reset state for all modules during power up, there are
some requirements to be met while powering up/powering down the device. The current F2812 silicon
reference schematics (Spectrum Digital Incorporated eZdsp. board) suggests two options for the power
sequencing circuit.
Power sequencing is not needed for C281x devices. In other words, 3.3-V and 1.8-V (or 1.9-V) can ramp
together. C281x can also be used on boards that have F281x power sequencing implemented; however, if
the 1.8-V (or 1.9-V) rail lags the 3.3-V rail, the GPIO pins are undefined until the 1.8-V rail reaches at least
1 V.
•Option 1:
In this approach, an external power sequencing circuit enables V
1.9 V). After 1.8 V (or 1.9 V) ramps, the 3.3 V for Flash (V
DD3VFL
first, then VDD and V
DDIO
) and ADC (V
DDA1/VDDA2
DD1
/AV
DDREFBG
modules are ramped up. While option 1 is still valid, TI has simplified the requirement. Option 2 is the
recommended approach.
•Option 2:
Enable power to all 3.3-V supply pins (V
ramp 1.8 V (or 1.9 V) (V
1.8 V or 1.9 V (V
DD/VDD1
DD/VDD1
) should not reach 0.3 V until V
) supply pins.
DDIO
, V
DD3VFL
, V
DDA1/VDDA2/VDDAIO
has reached 2.5 V. This ensures the reset
DDIO
/AV
DDREFBG
) and then
signal from the I/O pin has propagated through the I/O buffer to provide power-on reset to all the modules
inside the device. See Figure 6−10 for power-on reset timing.
•Power-Down Sequencing:
During power-down, the device reset should be asserted low (8 µs, minimum) before the VDD supply
reaches 1.5 V. This will help to keep on-chip flash logic in reset prior to the V
DDIO/VDD
power supplies
ramping down. It is recommended that the device reset control from “Low-Dropout (LDO)” regulators or
eZdsp is a trademark of Spectrum Digital Incorporated.
April 2001 − Revised October 2005SPRS174M
(1.8 V or
)
97
Electrical Specifications
voltage supervisors be used to meet this constraint. LDO regulators that facilitate power-sequencing (with
the aid of additional external components) may be used to meet the power sequencing requirement. See
www.spectrumdigital.com for F2812 eZdsp schematics and updates.
The GPIO pins are undefined until V
(see Note A)
2.5 V
Table 6−2. Recommended “Low-Dropout Regulators”
SUPPLIERPART NUMBER
Texas InstrumentsTPS767D301
NOTE:
3.3 V
= 1 V and V
DD
3.3 V
DDIO
= 2.5 V.
See Note C
V
DD_3.3V
V
DD_1.8V
†
V
DD_3.3V
‡
V
DD_1.8V
NOTES: A. 1.8-V (or 1.9 V) supply should ramp after the 3.3-V supply reaches at least 2.5 V.
†
<10 ms
1.8 V (or
1.9 V)
‡
>1 ms
See Note BSee Note D
XRS
Power-Up SequencePower-Down Sequence
−V
−VDD, V
B. Reset (XRS
(XMP/MC
C. Voltage supervisor or LDO reset control will trip reset (XRS
a few milliseconds before the 1.8-V (or 1.9 V) supply reaches 1.5 V.
D. Keeping reset low (XRS) at least 8 µs prior to the 1.8-V (or 1.9 V) supply reaching 1.5 V will keep the flash module in complete
reset before the supplies ramp down.
E. Since the state of GPIO pins is undefined until the 1.8-V (or 1.9 V) supply reaches at least 1 V, this supply should be ramped
as quickly as possible (after the 3.3-V supply reaches at least 2.5 V).
F. Other than the power supply pins, no pin should be driven before the 3.3-V rail has been fully powered up.
, V
DDIO
DD3VFL
DD1
) should remain low until supplies and clocks are stable. See Figure 6−10, Power-on Reset in Microcomputer Mode
= 0), for minimum requirements.
, V
DDAIO
, V
DDA1
, V
DDA2
1.8 V (or
1.9 V)
> 8 µs
XRS
, AV
DDREFBG
) first when the 3.3-V supply is off regulation. Typically, this occurs
Note that some of the signals use different reference voltages, see the recommended operating conditions
table. Output levels are driven to a minimum logic-high level of 2.4 V and to a maximum logic-low level of
0.4 V.
Figure 6−6 shows output levels.
Output transition times are specified as follows:
Electrical Specifications
2.4 V (VOH)
0.4 V (VOL)
Figure 6−6. Output Levels
•For a high-to-low transition, the level at which the output is said to be no longer high is below V
and the level at which the output is said to be low is V
OL(MAX)
and lower.
•For a low-to-high transition, the level at which the output is said to be no longer low is above V
and the level at which the output is said to be high is V
OH(MIN)
and higher.
OH(MIN)
OL(MAX)
Figure 6−7 shows the input levels.
2.0 V (VIH)
0.8 V (VIL)
Figure 6−7. Input Levels
Input transition times are specified as follows:
•For a high-to-low transition on an input signal, the level at which the input is said to be no longer high is
below V
IH(MIN)
and the level at which the input is said to be low is V
IL(MAX)
and lower.
•For a low-to-high transition on an input signal, the level at which the input is said to be no longer low is
above V
IL(MAX)
and the level at which the input is said to be high is V
IH(MIN)
and higher.
NOTE: See the individual timing diagrams for levels used for testing timing parameters.
April 2001 − Revised October 2005SPRS174M
99
Electrical Specifications
6.10Timing Parameter Symbology
Timing parameter symbols used are created in accordance with JEDEC Standard 100. To shorten the
symbols, some of the pin names and other related terminology have been abbreviated as follows:
Lowercase subscripts and their meanings:Letters and symbols and their meanings:
aaccess timeHHigh
ccycle time (period)LLow
ddelay timeVValid
ffall timeXUnknown, changing, or don’t care level
hhold timeZHigh impedance
rrise time
susetup time
ttransition time
vvalid time
wpulse duration (width)
6.11General Notes on Timing Parameters
All output signals from the 28x devices (including XCLKOUT) are derived from an internal clock such that all
output transitions for a given half-cycle occur with a minimum of skewing relative to each other.
The signal combinations shown in the following timing diagrams may not necessarily represent actual cycles.
For actual cycle examples, see the appropriate cycle description section of this document.
6.12Test Load Circuit
This test load circuit is used to measure all switching characteristics provided in this document.
Tester Pin Electronics
42 Ω3.5 nH
4.0 pF1.85 pF
NOTE: The data sheet provides timing at the device pin. For output timing analysis, the tester pin electronics and its transmission line effects
must be taken into account. A transmission line with a delay of 2 ns or longer can be used to produce the desired transmission line effect.
The transmission line is intended as a load only. It is not necessary to add or subtract the transmission line delay (2 ns or longer) from
the data sheet timing.
Input requirements in this data sheet are tested with an input slew rate of < 4 Volts per nanosecond (4 V/ns) at the device pin.
Transmission Line
Z0 = 50 Ω
(see note)
Figure 6−8. 3.3-V Test Load Circuit
Data Sheet Timing Reference Point
Output
Under
Test
Device Pin
(see note)
100
April 2001 − Revised October 2005SPRS174M
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.