Data Manual: TMS320F28335, TMS320F28334, TMS320F28332
Data Manual: TMS320F28335, TMS320F28334, TMS320F28332
Data Manual: TMS320F28335, TMS320F28334, TMS320F28332
Data Manual
Contents
1 TMS320F28335, TMS320F28334, TMS320F28332 DSCs ............................................................. 7
1.1 Features ....................................................................................................................... 7
1.2 Getting Started ............................................................................................................... 8
2 Introduction......................................................................................................................... 9
2.1 Pin Assignments ............................................................................................................. 9
2.2 Signal Descriptions ......................................................................................................... 15
3 Functional Overview ........................................................................................................... 24
3.1 Memory Maps .............................................................................................................. 25
3.2 Brief Descriptions........................................................................................................... 32
3.2.1 C28x CPU ....................................................................................................... 32
3.2.2 Memory Bus (Harvard Bus Architecture) .................................................................... 32
3.2.3 Peripheral Bus .................................................................................................. 32
3.2.4 Real-Time JTAG and Analysis ................................................................................ 32
3.2.5 External Interface (XINTF) ..................................................................................... 33
3.2.6 Flash .............................................................................................................. 33
3.2.7 M0, M1 SARAMs ............................................................................................... 33
3.2.8 L0, L1, L2, L3, L4, L5, L6, L7 SARAMs ..................................................................... 33
3.2.9 Boot ROM ........................................................................................................ 33
3.2.10 Security .......................................................................................................... 35
3.2.11 Peripheral Interrupt Expansion (PIE) Block .................................................................. 35
3.2.12 External Interrupts (XINT1-XINT7, XNMI) .................................................................... 36
3.2.13 Oscillator and PLL .............................................................................................. 36
3.2.14 Watchdog ........................................................................................................ 36
3.2.15 Peripheral Clocking ............................................................................................. 36
3.2.16 Low-Power Modes .............................................................................................. 36
3.2.17 Peripheral Frames 0, 1, 2, 3 (PFn) ........................................................................... 37
3.2.18 General-Purpose Input/Output (GPIO) Multiplexer ......................................................... 37
3.2.19 32-Bit CPU-Timers (0, 1, 2) ................................................................................... 37
3.2.20 Control Peripherals ............................................................................................. 38
3.2.21 Serial Port Peripherals ......................................................................................... 38
3.3 Register Map ................................................................................................................ 39
3.4 Device Emulation Registers............................................................................................... 40
3.5 Interrupts .................................................................................................................... 41
3.5.1 External Interrupts .............................................................................................. 45
3.6 System Control ............................................................................................................. 45
3.6.1 OSC and PLL Block ............................................................................................ 47
3.6.2 Watchdog Block ................................................................................................. 50
3.7 Low-Power Modes Block .................................................................................................. 51
4 Peripherals ........................................................................................................................ 52
4.1 DMA Overview .............................................................................................................. 53
4.2 32-Bit CPU-Timers 0/1/2 .................................................................................................. 54
4.3 Enhanced PWM Modules (ePWM1/2/3/4/5/6) .......................................................................... 56
4.4 High-Resolution PWM (HRPWM) ........................................................................................ 58
4.5 Enhanced CAP Modules (eCAP1/2/3/4/5/6) ............................................................................ 59
4.6 Enhanced QEP Modules (eQEP1/2)..................................................................................... 61
4.7 Enhanced Analog-to-Digital Converter (ADC) Module ................................................................ 63
4.7.1 ADC Connections if the ADC Is Not Used ................................................................... 66
4.7.2 ADC Registers ................................................................................................... 66
4.8 Multichannel Buffered Serial Port (McBSP) Module ................................................................... 68
4.9 Enhanced Controller Area Network (eCAN) Modules (eCAN-A and eCAN-B)..................................... 71
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
4.10 Serial Communications Interface (SCI) Modules (SCI-A, SCI-B, SCI-C) ........................................... 76
4.11 Serial Peripheral Interface (SPI) Module (SPI-A) ...................................................................... 80
4.12 Inter-Integrated Circuit (I2C) .............................................................................................. 83
4.13 GPIO MUX .................................................................................................................. 85
5 Device Support .................................................................................................................. 91
5.1 Device and Development Support Tool Nomenclature................................................................ 91
5.2 Documentation Support ................................................................................................... 93
6 Electrical Specifications ...................................................................................................... 96
6.1 Absolute Maximum Ratings ............................................................................................... 96
6.2 Recommended Operating Conditions ................................................................................... 97
6.3 Electrical Characteristics ................................................................................................. 97
Contents 3
List of Figures
2-1 F28335, F28334, F28332 176-Pin PGF LQFP (Top View) .................................................................. 10
2-2 F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Upper Left Quadrant) (Bottom View) .................... 11
2-3 F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Upper Right Quadrant) (Bottom View) .................. 12
2-4 F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Lower Left Quadrant) (Bottom View) .................... 13
2-5 F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Lower Right Quadrant) (Bottom View) .................. 14
3-1 Functional Block Diagram ....................................................................................................... 24
3-2 F28335 Memory Map ............................................................................................................. 26
3-3 F28334 Memory Map ............................................................................................................. 27
3-4 F28332 Memory Map ............................................................................................................. 28
3-5 External and PIE Interrupt Sources ............................................................................................. 41
3-6 External Interrupts ................................................................................................................ 42
3-7 Multiplexing of Interrupts Using the PIE Block ................................................................................ 43
3-8 Clock and Reset Domains ....................................................................................................... 46
3-9 OSC and PLL Block Diagram ................................................................................................... 47
3-10 Using a 3.3-V External Oscillator ............................................................................................... 48
3-11 Using a 1.8-V External Oscillator ............................................................................................... 48
3-12 Using the Internal Oscillator ..................................................................................................... 48
3-13 Watchdog Module ................................................................................................................. 50
4-1 DMA Functional Block Diagram ................................................................................................. 53
4-2 CPU-Timers ........................................................................................................................ 54
4-3 CPU-Timer Interrupt Signals and Output Signal .............................................................................. 54
4-4 Multiple PWM Modules in a 2833x System .................................................................................... 56
4-5 ePWM Sub-Modules Showing Critical Internal Signal Interconnections ................................................... 58
4-6 eCAP Functional Block Diagram ................................................................................................ 59
4-7 eQEP Functional Block Diagram ................................................................................................ 61
4-8 Block Diagram of the ADC Module ............................................................................................. 64
4-9 ADC Pin Connections With Internal Reference ............................................................................... 65
4-10 ADC Pin Connections With External Reference .............................................................................. 65
4-11 McBSP Module ................................................................................................................... 69
4-12 eCAN Block Diagram and Interface Circuit .................................................................................... 72
4-13 eCAN-A Memory Map ............................................................................................................ 73
4-14 eCAN-B Memory Map ............................................................................................................ 74
4-15 Serial Communications Interface (SCI) Module Block Diagram ............................................................ 79
4-16 SPI Module Block Diagram (Slave Mode) ..................................................................................... 82
4-17 I2C Peripheral Module Interfaces ............................................................................................... 84
4-18 GPIO MUX Block Diagram ....................................................................................................... 85
4-19 Qualification Using Sampling Window.......................................................................................... 90
5-1 Example of 2833x Device Nomenclature ...................................................................................... 92
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
List of Tables
2-1 Hardware Features ................................................................................................................ 9
2-2 Signal Descriptions ............................................................................................................... 15
3-1 Addresses of Flash Sectors in F28335......................................................................................... 29
3-2 Addresses of Flash Sectors in F28334......................................................................................... 29
3-3 Addresses of Flash Sectors in F28332......................................................................................... 29
3-4 Handling Security Code Locations .............................................................................................. 30
3-5 Wait-states ......................................................................................................................... 31
3-6 Boot Mode Selection.............................................................................................................. 34
3-7 Peripheral Frame 0 Registers ................................................................................................... 39
3-8 Peripheral Frame 1 Registers ................................................................................................... 39
3-9 Peripheral Frame 2 Registers ................................................................................................... 40
3-10 Peripheral Frame 3 Registers ................................................................................................... 40
3-11 Device Emulation Registers ..................................................................................................... 40
3-12 PIE Peripheral Interrupts ......................................................................................................... 43
3-13 PIE Configuration and Control Registers ...................................................................................... 44
3-14 External Interrupt Registers ...................................................................................................... 45
3-15 PLL, Clocking, Watchdog, and Low-Power Mode Registers ................................................................ 47
3-16 PLLCR Register Bit Definitions .................................................................................................. 49
3-17 CLKIN Divide Options ............................................................................................................ 49
3-18 Possible PLL Configuration Modes ............................................................................................. 49
3-19 Low-Power Modes ................................................................................................................ 51
4-1 CPU-Timers 0, 1, 2 Configuration and Control Registers ................................................................... 55
4-2 ePWM Control and Status Registers ........................................................................................... 57
4-3 eCAP Control and Status Registers ............................................................................................ 60
4-4 eQEP Control and Status Registers ............................................................................................ 62
4-5 ADC Registers ..................................................................................................................... 66
4-6 McBSP Register Summary ...................................................................................................... 70
4-7 3.3-V eCAN Transceivers ....................................................................................................... 72
4-8 CAN Register Map ................................................................................................................ 75
4-9 SCI-A Registers ................................................................................................................... 77
4-10 SCI-B Registers ................................................................................................................... 77
4-11 SCI-C Registers ................................................................................................................... 78
4-12 SPI-A Registers ................................................................................................................... 81
4-13 I2C-A Registers.................................................................................................................... 84
4-14 GPIO Registers ................................................................................................................... 86
4-15 GPIO-A Mux Peripheral Selection Matrix ..................................................................................... 87
4-16 GPIO-B Mux Peripheral Selection Matrix ..................................................................................... 88
4-17 GPIO-C Mux Peripheral Selection Matrix ..................................................................................... 89
List of Tables 5
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
1.1 Features
• High-Performance Static CMOS Technology • Enhanced Control Peripherals
– Up to 150 MHz (6.67-ns Cycle Time) – Up to 18 PWM Outputs
– 1.9-V Core, 3.3-V I/O Design – Up to 6 HRPWM Outputs With 150 ps MEP
• High-Performance 32-Bit CPU (TMS320C28x) Resolution
– IEEE-754 Single-Precision Floating-Point – Up to 6 Event Capture Inputs
Unit (FPU) – Up to 2 Quadrature Encoder Interfaces
– 16 x 16 and 32 x 32 MAC Operations – Up to 6 32-bit/Six 16-bit Timers
– 16 x 16 Dual MAC • Serial Port Peripherals
– Harvard Bus Architecture – Up to 2 CAN Modules
– Fast Interrupt Response and Processing – Up to 3 SCI (UART) Modules
PRODUCT PREVIEW
– Unified Memory Programming Model – Up to 2 McBSP/SPI Modules
– Code-Efficient (in C/C++ and Assembly) – Dedicated SPI Module
• Six Channel DMA Controller (for ADC, McBSP, – One Inter-Integrated-Circuit (I2C) Bus
XINTF, and SARAM) • 12-Bit ADC, 16 Channels
• 16-bit or 32-bit External Memory Interface – 80-ns Conversion Rate
(XINTF) – 2 x 8 Channel Input Multiplexer
• On-Chip Memory – Two Sample-and-Hold
– F28335: 256K x 16 Flash, 34K x 16 SARAM – Single/Simultaneous Conversions
– F28334:128K x 16 Flash, 34K x 16 SARAM – Internal or External Reference
– F28332: 64K x 16 Flash, 26K x 16 SARAM • Up to 88 Individually Programmable,
– 1K x 16 OTP ROM Multiplexed GPIO Pins With Input Filtering
• Boot ROM (8K x 16) • JTAG Boundary Scan Support (1)
– With Software Boot Modes (via SCI, SPI, • Advanced Emulation Features
CAN, I2C, McBSP, XINTF, and Parallel I/O) – Analysis and Breakpoint Functions
– Standard Math Tables – Real-Time Debug via Hardware
• Clock and System Control • Development Support Includes
– Dynamic PLL Ratio Changes Supported – ANSI C/C++ Compiler/Assembler/Linker
– On-Chip Oscillator – Code Composer Studio™ IDE
– Watchdog Timer Module – DSP/BIOS™
• Any GPIO Pin Can Be Connected to One of the – Digital Motor Control and Digital Power
Eight External Core Interrupts Software Libraries
• Peripheral Interrupt Expansion (PIE) Block • Low-Power Modes and Power Savings
That Supports All 58 Peripheral Interrupts – IDLE, STANDBY, HALT Modes Supported
• 128-Bit Security Key/Lock – Disable Individual Peripheral Clocks
– Protects Flash/OTP/RAM Blocks • Package Options
– Prevents Firmware Reverse Engineering – Lead-free Green Packaging
• Three 32-Bit CPU Timers – Thin Quad Flatpack (PGF)
– MicroStar BGA™ (ZHH)
• Temperature Options:
– A: -40°C to 85°C
– S: -40°C to 125°C
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas
Instruments semiconductor products and disclaimers thereto appears at the end of this document.
Code Composer Studio, DSP/BIOS, MicroStar BGA, TMS320C28x, C28x, TMS320C2000, TMS320C54x, TMS320C55x are trademarks of
Texas Instruments.
PRODUCT PREVIEW information concerns products in the Copyright © 2007, Texas Instruments Incorporated
formative or design phase of development. Characteristic data and
other specifications are design goals. Texas Instruments reserves
the right to change or discontinue these products without notice.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
2 Introduction
The TMS320F28335, TMS320F28334, and TMS320F28332, devices, members of the TMS320C28x™
DSC generation, are highly integrated, high-performance solutions for demanding control applications.
Throughout this document, TMS320F28335, TMS320F28334, and TMS320F28332, are abbreviated as
F28335, F28334, and F28332, respectively. Table 2-1 provides a summary of features for each device.
FEATURE F28335 (150 MHz) F28334 (150 MHz) F28332 (100 MHz)
Instruction cycle 6.67 ns 6.67 ns 10 ns
Floating-point Unit Yes Yes Yes
3.3-V on-chip flash (16-bit word) 256K 128K 64K
Single-access RAM (SARAM) (16-bit word) 34K 34K 26K
PRODUCT PREVIEW
Code security for on-chip flash/SARAM/OTP blocks Yes Yes Yes
Boot ROM (8K X16) Yes Yes Yes
One-time programmable (OTP) ROM
1K 1K 1K
(16-bit word)
6-channel Direct Memory Access (DMA) Yes Yes Yes
PWM outputs ePWM1/2/3/4/5/6 ePWM1/2/3/4/5/6 ePWM1/2/3/4/5/6
ePWM1A/2A/3A/4A/5A/ ePWM1A/2A/3A/4A/5A/
HRPWM channels ePWM1A/2A/3A/4A
6A 6A
32-bit Capture inputs or auxiliary PWM outputs 6 6 4
32-bit QEP channels (four inputs/channel) 2 2 2
Watchdog timer Yes Yes Yes
No. of channels 16 16 16
12-Bit ADC MSPS 12.5 12.5 12.5
Conversion time 80 ns 80 ns 80 ns
32-Bit CPU timers 3 3 3
Multichannel Buffered Serial Port (McBSP)/SPI 2 2 1
Serial Peripheral Interface (SPI) 1 1 1
Serial Communications Interface (SCI) 3 3 2
Enhanced Controller Area Network (eCAN) 2 2 2
Inter-Integrated Circuit (I2C) 1 1 1
Digital I/O pins (shared) 88 88 88
External interrupts 8 8 8
100-Pin PGF Yes Yes Yes
Packaging
100-Ball ZHH Yes Yes Yes
Temperature options A: -40°C to 85°C (PGF, ZHH) (PGF, ZHH) (PGF, ZHH)
Product status TMX TMX TMX
GPIO55/SPISOMIA/XD24
GPIO54/SPISIMOA/XD25
GPIO62/SCIRXDC/XD17
GPIO63/SCITXDC/XD16
GPIO57/SPISTEA/XD22
GPIO56/SPICLKA/XD23
GPIO60/MCLKRB/XD19
GPIO58/MCLKRA/XD21
GPIO52/EQEP1S/XD27
GPIO51/EQEP1B/XD28
GPIO50/EQEP1A/XD29
GPIO53/EQEP1I/XD26
GPIO61/MFSRB/XD18
GPIO59/MFSRA/XD20
GPIO49/ECAP6/XD30
GPIO69/XD10
GPIO67/XD12
GPIO66/XD13
GPIO65/XD14
GPIO64/XD15
GPIO68/XD11
GPIO75/XD4
GPIO74/XD5
GPIO73/XD6
GPIO72/XD7
GPIO71/XD8
GPIO70/XD9
XCLKIN
VDDIO
VDDIO
VDDIO
VDD
VDD
VDD
VDD
VSS
VSS
VSS
VSS
VSS
VSS
VSS
X1
X2
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
GPIO76/XD3 133 88 GPIO48/ECAP5/XD31
GPIO77/XD2 134 87 TCK
GPIO78/XD1 135 86 EMU1
GPIO79/XD0 136 85 EMU0
GPIO38/XWE0 137 84 VDD3VFL
XCLKOUT 138 83 VSS
VDD 139 82 TEST2
GPIO28/SCIRXDA/XZCS6 140
VSS 81 TEST1
GPIO28/SCIRXDA/XZCS6 141 80 XRS
GPIO34/ECAP1/XREADY 142 79 TMS
VDDIO 143 78 TRST
VSS 144 77 TDO
GPIO36/SCIRXDA/XZCS0 145 76 TDI
VDD 146 75 GPIO33/SCLA/EPWMSYNCO/ADCSOCBO
VSS 147 74 GPIO32/SDAA/EPWMSYNCI/ADCSOCAO
GPIO35/SCITXDA/XR/W 148 73 GPIO27/ECAP4/EQEP2S/MFSXB
XRD 149 72 GPIO26/ECAP3/EQEP2I/MCLKXB
PRODUCT PREVIEW
GPIO5/EPWM3B/MFSRA/ECAP1
ADCINA1
GPIO1/EPWM1B/ECAP6/MFSRB
GPIO3/EPWM2B/ECAP5/MCLKRB
GPIO7/EPWM4B/MCLKRA/ECAP2
GPIO12/TZ1/CANTXB/MDXB
GPIO13/TZ2/CANRXB/MDRB
GPIO14/TZ3/XHOLD/SCITXDB/MCLKXB
GPIO15/TZ4/XHOLDA/SCIRXDB/MFSXB
ADCINA2
VSS
VDD
VSS
GPIO6/EPWM4A/EPWMSYNCI/EPWMSYNCO
VSS
VDD
GPIO11/EPWM6B/SCIRXDB/ECAP4
VSS
VDD
VDD
VSS
VSS1AGND
VSSA2
VDDA2
ADCINA4
ADCINA0
GPIO30/CANRXA/XA18
GPIO29/SCITXDA/XA19
GPIO9/EPWM5B/SCITXDB/ECAP3
ADCINA7
ADCINA6
ADCINA3
ADCLO
VDD1A18
ADCINA5
VSSAIO
VDDIO
GPIO0/EPWM1A
GPIO2/EPWM2A
GPIO4/EPWM3A
GPIO8/EPWM5A/CANTXB/ADCSOCAO
GPIO10/EPWM6A/CANRXB/ADCSOCBO
GPIO16/SPISIMOA/CANTXB/TZ5
GPIO17/SPISOMIA/CANRXB/TZ6
Figure 2-1. F28335, F28334, F28332 176-Pin PGF LQFP (Top View)
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
1 2 3 4 5 6 7
GPIO21/
VSSAIO VSS EQEP1B/
P ADCINB0 ADCINB2 ADCINB6 ADCREFP P
MDRA/
CANRXB
GPIO22/
VDDAIO VDD EQEP1S/
N ADCINA1 ADCINB1 ADCINB5 ADCREFM N
MCLKXA/
SCITXDB
GPIO23/
VDD2A18 EQEP1I/
M ADCINA2 ADCLO ADCINA0 ADCINB4 ADCRESEXT M
MFSXA/
SCIRXDB
PRODUCT PREVIEW
GPIO18/ GPIO20/
SPICLKA/ EQEP1A/
L ADCINA5 ADCINA4 ADCINA3 ADCINB3 ADCREFIN L
SCITXDB/ MDXA/
CANRXA CANTXB
GPIO19/
VSS1AGND VDDA2 VSSA2 VSS2AGND SPISTEA/
K ADCINA7 ADCINB7 K
SCIRXDB/
CANTXA
6 7
GPIO17/
SPISOMIA/ VDD VSS VDD1A18
J ADCINA6 J
CANRXB/
TZ6
1 2 3 4 5
Figure 2-2. F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Upper Left Quadrant) (Bottom View)
8 9 10 11 12 13 14
GPIO33/
GPIO48/ GPIO50/
VSS SCLA/
P TMS TEST2 EMU1 ECAP5/ EQEP1A/ P
EPWMSYNCO/
XD31 XD29
ADCSOCBO
GPIO25/ GPIO32/
GPIO49/
ECAP2/ SDAA/ VSS VSS VDDIO
N TCK ECAP6/ N
EQEP2B/ EPWMSYNCI/
XD30
MDRB ADCSOCAO
GPIO24/
GPIO51/ GPIO52/
ECAP1/ VDD3VFL VSS
M TDI TRST EQEP1B/ EQEP1S/ M
EQEP2A/
XD28 XD27
MDXB
PRODUCT PREVIEW
GPIO27/
GPIO53/ GPIO54/ GPIO55/
VDDIO ECAP4/
L XRS EMU0 EQEP1I/ SPISIMOA/ SPISOMIA/ L
EQEP2S/
XD26 XD25 XD24
MFSXB
GPIO26/
GPIO56/ GPIO58/ GPIO57/
ECAP3/ VDD
K TDO TEST1 SPICLKA/ MCLKRA/ SPISTEA/ K
EQEP2I/
XD23 XD21 XD22
MCLKXB
8 9
GPIO59/
H VSS VDDIO VDD VSS MFSRA/ H
XD20
10 11 12 13 14
Figure 2-3. F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Upper Right Quadrant) (Bottom View)
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
1 2 3 4 5
GPIO8/ GPIO7/
EPWM5A/ EPWM4B/ VDD VSS VDDIO
F F
CANTXB/ MCLKRA/
ADCSOCAO ECAP2 6 7
PRODUCT PREVIEW
EPWM4A/ GPIO4/ EPWM3B/ EPWM2B/ GPIO84/ GPIO81/ VDDIO
E E
EPWMSYNCI/ EPWM3A MFSRA/ ECAP5/ XA12 XA9
EPWMSYNCO ECAP1 MCLKRB
GPIO1/
VSS GPIO2/ EPWM1B/ GPIO86/ GPIO83/ VSS GPIO45/
D D
EPWM2A ECAP6/ XA14 XA11 XA5
MFSRB
GPIO29/
GPIO0/ VSS GPIO85/ GPIO82/ GPIO80/ VSS
C SCITXDA/ C
EPWM1A XA13 XA10 XA8
XA19
GPIO30/
VDD GPIO39/ VSS VDD GPIO46/ GPIO43/
B CANRXA/ B
XA16 XA6 XA3
XA18
GPIO31/
GPIO87/ VDDIO VSS GPIO47/ GPIO44/
A CANTXA/ A
XA15 XA7 XA4
XA17
1 2 3 4 5 6 7
Figure 2-4. F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Lower Left Quadrant) (Bottom View)
10 11 12 13 14
GPIO28/
VSS VDD GPIO68/ VDDIO GPIO67/ VSS
E SCIRXDA/ E
XD11 XD12
XZCS6
GPIO36/
VDD VSS GPIO73/ GPIO74/ GPIO71/
C SCIRXDA/ XCLKOUT C
XD6 XD5 XD8
XZCS0
GPIO35/
GPIO41/ VSS VSS GPIO79/ GPIO77/ GPIO75/
A SCITXDA/ A
XA1 XD0 XD2 XD4
XR/W
8 9 10 11 12 13 14
Figure 2-5. F28335, F28334, F28332 179-Ball ZHH MicroStar BGA™ (Lower Right Quadrant) (Bottom View)
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PIN NO.
NAME DESCRIPTION (1)
PGF ZHH
PIN # BALL #
JTAG
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; it has an internal pull-down device. TRST is an active
high test pin and must be maintained low at all times during normal device operation. In a low-noise
PRODUCT PREVIEW
TRST 78 M10
environment, TRST may be left floating. In other instances, an external pulldown resistor is highly
recommended. The value of this resistor should be based on drive strength of the debugger pods
applicable to the design. A 2.2-kΩ resistor generally offers adequate protection. Since this is
application-specific, it is recommended that each target board be validated for proper operation of
the debugger and the application. (I, ↓)
TCK 87 N12 JTAG test clock with internal pullup (I, ↑)
JTAG test-mode select (TMS) with internal pullup. This serial control input is clocked into the TAP
TMS 79 P10
controller on the rising edge of TCK. (I, ↑)
JTAG test data input (TDI) with internal pullup. TDI is clocked into the selected register (instruction
TDI 76 M9
or data) on a rising edge of TCK. (I, ↑)
JTAG scan out, test data output (TDO). The contents of the selected register (instruction or data)
TDO 77 K9
are shifted out of TDO on the falling edge of TCK. (O/Z 8 mA drive)
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. This pin is also used to put the device
into boundary-scan mode. With the EMU0 pin at a logic-high state and the EMU1 pin at a logic-low
state, a rising edge on the TRST pin would latch the device into boundary-scan mode. (I/O/Z, 8 mA
EMU0 85 L11 drive ↑)
NOTE: An external pullup resistor is recommended on this pin. The value of this resistor should be
based on the drive strength of the debugger pods applicable to the design. A 2.2-kΩ to 4.7-kΩ
resistor is generally adequate. Since this is application-specific, it is recommended that each target
board be validated for proper operation of the debugger and the application.
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. This pin is also used to put the device
into boundary-scan mode. With the EMU0 pin at a logic-high state and the EMU1 pin at a logic-low
state, a rising edge on the TRST pin would latch the device into boundary-scan mode. (I/O/Z, 8 mA
EMU1 86 P12 drive ↑)
NOTE: An external pullup resistor is recommended on this pin. The value of this resistor should be
based on the drive strength of the debugger pods applicable to the design. A 2.2-kΩ to 4.7-kΩ
resistor is generally adequate. Since this is application-specific, it is recommended that each target
board be validated for proper operation of the debugger and the application.
FLASH
VDD3VFL 84 M11 3.3-V Flash Core Power Pin. This pin should be connected to 3.3 V at all times.
TEST1 81 K10 Test Pin. Reserved for TI. Must be left unconnected. (I/O)
TEST2 82 P11 Test Pin. Reserved for TI. Must be left unconnected. (I/O)
CLOCK
Output clock derived from SYSCLKOUT. XCLKOUT is either the same frequency, one-half the
frequency, or one-fourth the frequency of SYSCLKOUT. This is controlled by the bits 1, 0
XCLKOUT 138 C11 (XCLKOUTDIV) in the XCLK register. At reset, XCLKOUT = SYSCLKOUT/4. The XCLKOUT signal
can be turned off by setting XCLKOUTDIV to 3. Unlike other GPIO pins, the XCLKOUT pin is not
placed in high-impedance state during a reset. (O/Z, 8 mA drive).
External Oscillator Input. This pin is to feed a clock from an external 3.3-V oscillator. In this case, the
XCLKIN 105 J14 X1 pin must be tied to GND. If a crystal/resonator is used (or if an external 1.8-V oscillator is used to
feed clock to X1 pin), this pin must be tied to GND. (I)
location pointed to by the PC. This pin is driven low by the DSC when a watchdog reset occurs.
XRS 80 L10
During watchdog reset, the XRS pin is driven low for the watchdog reset duration of 512 OSCCLK
cycles. (I/OD, ↑)
The output buffer of this pin is an open-drain with an internal pullup. It is recommended that this pin
be driven by an open-drain device.
ADC SIGNALS
ADCINA7 35 K4 ADC Group A, Channel 7 input (I)
ADCINA6 36 J5 ADC Group A, Channel 6 input (I)
ADCINA5 37 L1 ADC Group A, Channel 5 input (I)
ADCINA4 38 L2 ADC Group A, Channel 4 input (I)
ADCINA3 39 L3 ADC Group A, Channel 3 input (I)
ADCINA2 40 M1 ADC Group A, Channel 2 input (I)
ADCINA1 41 N1 ADC Group A, Channel 1 input (I)
ADCINA0 42 M3 ADC Group A, Channel 0 input (I)
ADCINB7 53 K5 ADC Group B, Channel 7 input (I)
ADCINB6 52 P4 ADC Group B, Channel 6 input (I)
ADCINB5 51 N4 ADC Group B, Channel 5 input (I)
ADCINB4 50 M4 ADC Group B, Channel 4 input (I)
ADCINB3 49 L4 ADC Group B, Channel 3 input (I)
ADCINB2 48 P3 ADC Group B, Channel 2 input (I)
ADCINB1 47 N3 ADC Group B, Channel 1 input (I)
ADCINB0 46 P2 ADC Group B, Channel 0 input (I)
ADCLO 43 M2 Low Reference (connect to analog ground) (I)
ADCRESEXT 57 M5 ADC External Current Bias Resistor. Connect a 22-kΩ resistor to analog ground.
ADCREFIN 54 L5 External reference input (I)
Internal Reference Positive Output. Requires a low ESR (50 mΩ - 1.5 Ω) ceramic bypass capacitor
ADCREFP 56 P5
of 2.2 µF to analog ground. (O)
Internal Reference Medium Output. Requires a low ESR (50 mΩ - 1.5 Ω) ceramic bypass capacitor
ADCREFM 55 N5
of 2.2 µF to analog ground. (O)
CPU AND I/O POWER PINS
VDDA2 34 K2 ADC Analog Power Pin
VSSA2 33 K3 ADC Analog Ground Pin
VDDAIO 45 N2 ADC Analog I/O Power Pin
VSSAIO 44 P1 ADC Analog I/O Ground Pin
VDD1A18 31 J4 ADC Analog Power Pin
VSS1AGND 32 K1 ADC Analog Ground Pin
VDD2A18 59 M6 ADC Analog Power Pin
VSS2AGND 58 K6 ADC Analog Ground Pin
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
VDD 139 H12
VDD 146 J2
VDD 154 K14
VDD 167 N6
VDDIO 9 A4
VDDIO 71 B10
VDDIO 93 E7
VDDIO 107 E12
Digital I/O Power Pin
VDDIO 121 F5
VDDIO 143 L8
VDDIO 159 H11
VDDIO 170 N14
VSS 3 A5
VSS 8 A10
VSS 14 A11
VSS 22 B4
VSS 30 C3
VSS 60 C7
VSS 70 C9
VSS 83 D1
VSS 92 D6
VSS 103 D14
VSS 106 E8
VSS 108 E14
Digital Ground Pins
VSS 118 F4
VSS 120 F12
VSS 125 G1
VSS 140 H10
VSS 144 H13
VSS 147 J3
VSS 155 J10
VSS 160 J12
VSS 166 M12
VSS 171 N10
VSS N11
VSS P6
(2) Some peripheral functions may not be available in all devices. See Table 2-1 for details.
(3) All GPIO pins are I/O/Z, 4-mA drive typical (unless otherwise indicated), and have an internal pullup, which can be selectively
enabled/disabled on a per-pin basis. This feature only applies to the GPIO pins. The GPIO function (shown in Italics) is the default at
reset. The peripheral signals that are listed under them are alternate functions.
(4) The pullups on GPIO0-GPIO11 pins are not enabled at reset.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
pending accesses on the XINTF. (I)
SCITXDB SCI-B Transmit (I)
MCLKXB McBSP-B clock transmit (I/O)
GPIO15 General purpose input/output 15 (I/O/Z) (5)
Trip Zone input 4/External Hold Acknowledge. XHOLDA is driven active (low) when the XINTF has
granted an XHOLD request. All XINTF buses and strobe signals will be in a high-impedance state.
TZ4/XHOLDA
26 H4 XHOLDA is released when the XHOLD signal is released. External devices should only drive the
external bus when XHOLDA is active (low). (I)
SCIRXDB SCI-B receive (I)
MFSXB McBSP-B transmit frame synch (I/O)
GPIO16 General purpose input/output 16 (I/O/Z) (5)
SPISIMOA SPI slave in, master out (I/O)
27 H5
CANTXB Enhanced CAN-B transmit (O)
TZ5 Trip Zone input 5 (I)
GPIO17 General purpose input/output 17 (I/O/Z) (5)
SPISOMIA SPI-A slave out, master in (I/O)
28 J1
CANRXB Enhanced CAN-B receive (I)
TZ6 Trip zone input 6 (I)
GPIO18 General purpose input/output 18 (I/O/Z) (5)
SPICLKA SPI-A clock input/output (I/O)
62 L6
SCITXDB SCI-B transmit (O)
CANRXA Enhanced CAN-A receive (I)
GPIO19 General purpose input/output 19 (I/O/Z) (5)
SPISTEA SPI-A slave transmit enable input/output (I/O)
63 K7
SCIRXDB SCI-B receive (I)
CANTXA Enhanced CAN-A transmit (O)
GPIO20 General purpose input/output 20 (I/O/Z) (5)
EQEP1A Enhanced QEP1 input A (I)
64 L7
MDXA McBSP-A transmit serial data (O)
CANTXB Enhanced CAN-B transmit (O)
GPIO21 General purpose input/output 21 (I/O/Z) (5)
EQEP1B Enhanced QEP1 input B (I)
65 P7
MDRA McBSP-A receive serial data (I)
CANRXB Enhanced CAN-B receive (I)
GPIO22 General purpose input/output 22 (I/O/Z) (5)
EQEP1S Enhanced QEP1 strobe (I/O)
66 N7
MCLKXA McBSP-A clock transmit (I/O)
SCITXDB SCI-B transmit (O)
GPIO23 General purpose input/output 23 (I/O/Z) (5)
EQEP1I Enhanced QEP1 index (I/O)
67 M7
MFSXA McBSP-A transmit frame synch (I/O)
SCIRXDB SCI-B receive (I)
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
GPIO45 General-Purpose Input/Output 45 (I/O/Z)
- 158 D7 -
XA5 External Memory Interface Address Line 5 (O)
GPIO46 General-Purpose Input/Output 46 (I/O/Z)
- 161 B6 -
XA6 External Memory Interface Address Line 6 (O)
GPIO47 General-Purpose Input/Output 47 (I/O/Z)
- 162 A6 -
XA7 External Memory Interface Address Line 7 (O)
GPIO48 General-Purpose Input/Output 48 (I/O/Z)
ECAP5 88 P13 Enhanced Capture input/output 5 (I/O)
XD31 External Memory Interface Data Line 31 (O)
GPIO49 General-Purpose Input/Output 49 (I/O/Z)
ECAP6 89 N13 Enhanced Capture input/output 6 (I/O)
XD30 External Memory Interface Data Line 30 (O)
GPIO50 General-Purpose Input/Output 50 (I/O/Z)
EQEP1A 90 P14 Enhanced QEP 1input A (I)
XD29 External Memory Interface Data Line 29 (O)
GPIO51 General-Purpose Input/Output 51 (I/O/Z)
EQEP1B 91 M13 Enhanced QEP 1input B (I)
XD28 External Memory Interface Data Line 28 (O)
GPIO52 General-Purpose Input/Output 52 (I/O/Z)
EQEP1S 94 M14 Enhanced QEP 1Strobe (I/O)
XD27 External Memory Interface Data Line 27 (O)
GPIO53 General-Purpose Input/Output 53 (I/O/Z)
EQEP1I 95 L12 Enhanced CAP1 lndex (I/O)
XD26 External Memory Interface Data Line 26 (O)
GPIO54 General-Purpose Input/Output 54 (I/O/Z)
SPISIMOA 96 L13 SPI-A slave in, master out (I/O)
XD25 External Memory Interface Data Line 25 (O)
GPIO55 General-Purpose Input/Output 55 (I/O/Z)
SPISOMIA 97 L14 SPI-A slave out, master in (I/O)
XD24 External Memory Interface Data Line 24 (O)
GPIO56 General-Purpose Input/Output 56 (I/O/Z)
SPICLKA 98 K11 SPI-A clock (I/O)
XD23 External Memory Interface Data Line 23 (O)
GPIO57 General-Purpose Input/Output 57 (I/O/Z)
SPISTEA 99 K13 SPI-A slave transmit enable (I/O)
XD22 External Memory Interface Data Line 22 (O)
GPIO58 General-Purpose Input/Output 58 (I/O/Z)
MCLKRA 100 K12 McBSP-A receive clock (I/O)
XD21 External Memory Interface Data Line 21 (O)
GPIO59 General-Purpose Input/Output 59 (I/O/Z)
MFSRA 110 H14 McBSP-A receive frame synch (I/O)
XD20 External Memory Interface Data Line 20 (O)
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
GPIO83 General-Purpose Input/Output 83 (I/O/Z)
- 168 D5 -
XA11 External Memory Interface Address Line 11 (O)
GPIO84
General-Purpose Input/Output 84 (I/O/Z)
- 169 E5
External Memory Interface Address Line 12 (O)
XA12
GPIO85 General-Purpose Input/Output 85 (I/O/Z)
- 172 C4 -
XA13 External Memory Interface Address Line 13 (O)
GPIO86 General-Purpose Input/Output 86 (I/O/Z)
- 173 D4 -
XA14 External Memory Interface Address Line 14 (O)
GPIO87 General-Purpose Input/Output 87 (I/O/Z)
- 174 A3 -
XA15 External Memory Interface Address Line 15 (O)
XRD 149 B9 External memory interface Read Enable
3 Functional Overview
Memory Bus
L3 SARAM 4Kx16 Module
(0-Wait, Dual Map)
L4 SARAM 4Kx16 TEST2
(0-W Data, 1-W Prog) Pump
TEST1
L5 SARAM 4Kx16 PSWD
Boot ROM (0-W Data, 1-W Prog) Flash
8Kx16 Wrapper
L6 SARAM 4Kx16
(0-W Data, 1-W Prog)
L7 SARAM 4Kx16
PRODUCT PREVIEW
Memory Bus
XD31:0
FPU
TCK
XHOLDA
TDI
XHOLD
TMS
XREADY
CPU
TDO
88 GPIOs GPIO XR/W (150 MHZ @ 1.9 V)
XINTF
MUX TRST
XZCS0
EMU0
XZCS7
EMU1
XZCS6
Memory Bus
XWE0
DMA Bus
XCLKIN
XA0/XWE1 CPU Timer 0
OSC, X1
DMA PLL,
XA19:1 CPU Timer 1
6 Ch LPM, X2
WD
CPU Timer 2 XRS
XCLKOUT
XRD PIE
(Interrupts)
EPWMxA
EPWMxB
SCIRXDx
SCITXDx
SPICLKx
ESYNCO
MCLKRx
SPISTEx
MCLKXx
CANRXx
EQEPxA
EQEPxB
EQEPxS
CANTXx
ESYNCI
EQEPxI
MFSRx
MFSXx
ECAPx
MDXx
MRXx
SDAx
TZxn
SCLx
GPIO MUX
88 GPIOs
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
Block
On-Chip Memory External Memory XINTF
Start Address
0x00 0000
M0 Vector - RAM (32 x 32)
(Enable if VMAP = 0)
0x00 6000
Peripheral Frame 1
(Protected)
Reserved
0x00 7000
Peripheral Frame 2
(Protected)
0x00 8000
L0 SARAM (4K x16, Secure Zone Dual Mapped)
0x00 9000 L1 SARAM (4K x 16, Secure Zone Dual Mapped)
0x0000-A000
L2 SARAM (4Kx16, Secure Zone, Dual Mapped)
0x0000-B000
L3 SARAM (4Kx16, Secure Zone, Dual Mapped)
0x0000-C000 Reserved
L4 SARAM (4Kx16, DMA Accessilbe)
0x0000-D000
L5 SARAM (4Kx16, DMA Accessible)
0x0000-E000
L6 SARAM (4Kx16, DMA Accessible)
0x0000-F000
L7 SARAM (4Kx16, DMA Accessiible)
0x0001-0000
Reserved
0x30 0000 FLASH (256 K x 16, Secure Zone)
0x34 0000
Reserved
0x10 0000
XINTF Zone 6 (1 M x 16, XZCS6)
0x38 0400 OTP (IK x 16, Secure Zone) 0x20 0000
XINTF Zone 7 (1 M x 16, XZCS7)
0x3F 8000 L0 SARAM (4K x 16, Secure Zone Dual Mapped) 0x30 0000
0x3F E000
Boot ROM (8K x 16)
0x3F FFC0 BROM Vector - ROM (32 x 32) XINTF Vector - RAM (32 x32)
(Enable if VMAP = 1, ENPIE = 0) (Enable if VMAP = 1, ENPIR = 0)
LEGEND:
Only one of these vector maps*M0 vector, PIE vector, BROM vector, XINTF vector*should be enabled at a time.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
Block
On-Chip Memory External Memory XINTF
Start Address
0x00 0000
M0 Vector - RAM (32 x 32)
(Enable if VMAP = 0)
0x00 0040
M0 SARAM (1K x 16)
0x00 0400 M1 SARAM (1K x 16)
0x00 0800
Peripheral Frame 0
0x00 2000
PRODUCT PREVIEW
Reserved XINTF Zone 0 (4K x 16,XZCS0) 0x00 4000
0x00 5000 (Protected, DMA Accessible) 0x00 5000
Peripheral Frame 3 (Protected, DMA Accessable)
Low 64K
0x00 6000
Peripheral Frame 1
(Protected)
Reserved
0x00 7000
Peripheral Frame 2
(Protected)
0x00 8000
L0 SARAM (4K x16, Secure Zone Dual Mapped)
0x00 9000 L1 SARAM (4K x 16, Secure Zone Dual Mapped)
0x0000-A000
L2 SARAM (4Kx16, Secure Zone, Dual Mapped)
0x0000-B000
L3 SARAM (4Kx16, Secure Zone, Dual Mapped)
0x0000-C000
L4 SARAM (4Kx16, DMA Accessilbe)
Reserved
0x0000-D000
L5 SARAM (4Kx16, DMA Accessible)
0x0000-E000
L6 SARAM (4Kx16, DMA Accessible)
0x0000-F000
L7 SARAM (4Kx16, DMA Accessiible)
0x0001-0000
Reserved
0x32 0000 FLASH (128 K x 16, Secure Zone)
0x34 0000
Reserved
0x10 0000
XINTF Zone 6 (1 M x 16, XZCS6)
0x38 0400 OTP (IK x 16, Secure Zone) 0x20 0000
XINTF Zone 7 (1 M x 16, XZCS7)
0x3F 8000 L0 SARAM (4K x 16, Secure Zone Dual Mapped) 0x30 0000
Reserved
0x3F B000 L3 SARAM (4K x 16, Secure Zone Dual Mapped)
High 64K
0x3F C000
Reserved
0x3F FFC0 BROM Vector - ROM (32 x 32) XINTF Vector - RAM (32 x32)
(Enable if VMAP = 1, ENPIE = 0) (Enable if VMAP = 1, ENPIR = 0)
LEGEND:
Only one of these vector maps*M0 vector, PIE vector, BROM vector, XINTF vector*should be enabled at a time.
Block
On-Chip Memory External Memory XINTF
Start Address
0x00 0000
M0 Vector - RAM (32 x 32)
(Enable if VMAP = 0)
0x00 0040
M0 SARAM (1K x 16)
0x00 0400 M1 SARAM (1K x 16)
0x00 0800
Peripheral Frame 0
Reserved
0x00 0D00 PIE Vector - RAM
(256 x16)
(Enabled if Reserved
VMAP = 1,
ENPIE =1)
0x00 6000
Peripheral Frame 1
(Protected)
Reserved
0x00 7000
Peripheral Frame 2
(Protected)
0x00 8000
L0 SARAM (4K x16, Secure Zone Dual Mapped)
0x00 9000 L1 SARAM (4K x 16, Secure Zone Dual Mapped)
0x0000-A000
L2 SARAM (4Kx16, Secure Zone, Dual Mapped)
0x0000-B000
L3 SARAM (4Kx16, Secure Zone, Dual Mapped)
Reserved
0x0000-C000
L4 SARAM (4Kx16, DMA Accessilbe)
0x0000-D000
L5 SARAM (4Kx16, DMA Accessible)
0x0000-E000
Reserved
0x34 0000
Reserved
0x10 0000
XINTF Zone 6 (1 M x 16, XZCS6)
0x38 0400 OTP (IK x 16, Secure Zone) 0x20 0000
XINTF Zone 7 (1 M x 16, XZCS7)
0x3F 8000 L0 SARAM (4K x 16, Secure Zone Dual Mapped) 0x30 0000
Reserved
0x3F B000 L3 SARAM (4K x 16, Secure Zone Dual Mapped)
High 64K
0x3F C000
Reserved
0x3F FFC0 BROM Vector - ROM (32 x 32) XINTF Vector - RAM (32 x32)
(Enable if VMAP = 1, ENPIE = 0) (Enable if VMAP = 1, ENPIR = 0)
LEGEND:
Only one of these vector maps*M0 vector, PIE vector, BROM vector, XINTF vector*should be enabled at a time.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
0x33 FFF6 - 0x33 FFF7
(program branch instruction here)
Security Password
0x33 FFF8 - 0x33 FFFF
(128-Bit) (Do Not Program to all zeros)
NOTE
• When the code-security passwords are programmed, all addresses between
0x33FF80 and 0x33FFF5 cannot be used as program code or data. These locations
must be programmed to 0x0000.
• If the code security feature is not used, addresses 0x33FF80 through 0x33FFEF may
be used for code or data. Addresses 0x33FFF0 – 0x33FFF5 are reserved for data and
should not contain program code. .
Table 3-4 shows how to handle these memory locations.
ADDRESS FLASH
Code security enabled Code security disabled
PRODUCT PREVIEW
Peripheral Frame 1, Peripheral Frame 2, and Peripheral Frame 3 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 so as to
make sure that operations occur as written (the penalty is extra cycles are added to align the operations).
This mode is programmable and by default, it will protect the selected zones.
The wait-states for the various spaces in the memory map area are listed in Table 3-5.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
L0 SARAM 0-wait data and prog Assumes no CPU conflicts
L1 SARAM
L2 SARAM
L3 SARAM
L4 SARAM 0-wait data (read) Assumes no conflicts between CPU and
DMA.
L5 SARAM 0-wait data (write)
L6 SARAM 1-wait prog (read)
L7 SARAM 1-wait prog (write)
XINTF Programmable Programmed via the XTIMING registers or
extendable via external XREADY signal.
1-wait minimum 1-wait is minimum wait states allowed on
external waveforms for both reads and
writes on XINTF.
0-wait minimum writes with 0-wait minimum for writes assumes write
write buffer enabled buffer enabled and not full.
Assumes no conflicts between CPU and
DMA. When DMA and CPU attempt
simultaneous conflict, 1-cycle delay is
added for arbitration.
OTP Programmable Programmed via the Flash registers.
1-wait minimum 1-wait is minimum number of wait states
allowed. 1-wait-state operation is possible
at a reduced CPU frequency.
FLASH Programmable Programmed via the Flash registers.
1-wait Paged min 0-wait minimum for paged access is not
allowed
1-wait Random min
Random > Paged
FLASH Password Programmable, Wait states of password locations are
fixed.
16-wait fixed
Boot-ROM 1-wait 0-wait speed is not possible.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
3.2.6 Flash
The F28335 contains 256K × 16 of embedded flash memory, segregated into eight 32K × 16 sectors. The
F28334 contains 128K × 16 of embedded flash memory, segregated into eight 16K × 16 sectors. The
F28332 device contains 64K ×16 of embedded flash, segregated into four 16K × 16 sectors. All the
devices also contain a single 1K × 16 of OTP memory at address range 0x380400 – 0x3807FF. The user
can individually erase, program, and validate a flash sector while leaving other sectors untouched.
However, it is not possible to use one sector of the flash or the OTP to execute flash algorithms that
PRODUCT PREVIEW
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. Note that addresses 0x33FFF0 – 0x33FFF5 are reserved for
data variables and should not contain program code.
NOTE
The F28335/F28334/F28332 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 effective 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 TMS320x280x, 2801x, 2804x System Control and Interrupts Reference Guide
(literature number SPRU712).
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
3.2.10 Security
The 2833x devices 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/OTP and the
L0/L1/L2/L3 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.
NOTE
• When the code-security passwords are programmed, all addresses between
0x33FF80 and 0x33FFF5 cannot be used as program code or data. These locations
must be programmed to 0x0000.
PRODUCT PREVIEW
• If the code security feature is not used, addresses 0x33FF80 through 0x33FFEF may
be used for code or data. Addresses 0x33FFF0 – 0x33FFF5 are reserved for data and
should not contain program code. .
The 128-bit password (at 0x33 FFF8 – 0x33 FFFF) must not be programmed to zeros.
Doing so would permanently lock the device.
NOTE
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 TI'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 WARRANTIES 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
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.
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.
3.2.14 Watchdog
The 2833x devices contain 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.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
PF1: eCAN: eCAN Mailbox and Control Registers
GPIO: GPIO MUX Configuration and Control Registers
ePWM: Enhanced Pulse Width Modulator Module and Registers
eCAP: Enhanced Capture Module and Registers
eQEP: Enhanced Quadrature Encoder Pulse Module and Registers
PF2: SYS: System Control Registers
SCI: Serial Communications Interface (SCI) Control and RX/TX Registers
SPI: Serial Port Interface (SPI) Control and RX/TX Registers
ADC: ADC Status, Control, and Result Register
I2C: Inter-Integrated Circuit Module and Registers
XINTF External Interface Registers
PF3: McBSP Multichannel Buffered Serial Port Registers
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
Table 3-7. Peripheral Frame 0 Registers (1)
ADDRESS
NAME SIZE (x16) DESCRIPTION
RANGE
0x0880
DEVICECNF 2 Device Configuration Register
0x0881
PARTID 0x0882 1 Part ID Register 0x00F8 (1) - F28332
0x00F9 - F28334
0x00FA - F28335
REVID 0x0883 1 Revision ID Register 0x0000 - Silicon Rev. 0 - TMX
PROTSTART 0x0884 1 Block Protection Start Address Register
PROTRANGE 0x0885 1 Block Protection Range Address Register
(1) The first byte (00) denotes flash devices. FF denotes ROM devices. Other values are reserved for future devices.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
3.5 Interrupts
Figure 3-5 shows how the various interrupt sources are multiplexed within the 2833x devices.
Peripherals
(SPI, SCI, I2C, CAN, McBSP,
Clear EPWM, ECAP, EQEP, ADC)
DMA
WDINT
WAKEINT Watchdog
Sync LPMINT
Low Power Models
DMA SYSCLKOUT
XINT1 XINT1
MUX
Interrupt Control Latch
INT1
96 Interrupts
to
PRODUCT PREVIEW
XINT1CR(15:0)
INT12
PIE
XINT1CTR(15:0)
C28 GPIOXINT1SEL(4:0) XINT2
Core
DMA ADC XINT2SOC
XINT2
MUX
Interrupt Control Latch
XINT2CR(15:0)
XINT2CTR(15:0)
GPIOXINT2SEL(4:0)
DMA
TINT0
CPU Timer 0
DMA
TINT2
INT14 CPU Timer 2
TINT1 TOUT1
CPU Timer 1
MUX
INT13
Flash Wrapper
XNMI_ GPIO0.int
XINT13
MUX
GPIO
Interrupt Control Latch
MUX
Mux
NMI XNMICR(15:0) GPIO31.int
1
XNMICTR(15:0)
GPIOXNMISEL(4:0)
DMA
DMA
XINT3
Mux
Interrupt Control Latch
XINT3CR(15:0)
GPIOXINT3SEL(4:0)
DMA
XINT4
Mux
Interrupt Control Latch
XINT4CR(15:0)
GPIOXINT4SEL(4:0)
DMA
PRODUCT PREVIEW
96 Interrupts
INT1
to XINT5
Mux
PIE Interrupt Control Latch
INT12
XINT5CR(15:0)
C28
Core
GPIOXINT5SEL(4:0)
DMA
XINT6
Mux
Interrupt Control Latch
XINT6CR(15:0)
GPIOXINT6SEL(4:0)
DMA
GPIO32.int
XINT7
Mux
GPIO
Interrupt Control Latch
Mux
GPIO63.int
XINT7CR(15:0)
GPIOXINT7SEL(4:0)
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 2833x, 58 of these are used by peripherals as
shown in Table 3-12.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
INT1
INT2
1
MUX CPU
0
INT11
INT12 Global
(Flag) (Enable) Enable
INTx.1
INTx.2
INTx.3
From
INTx INTx.4
Peripherals or
PRODUCT PREVIEW
MUX INTx.5 External
INTx.6 Interrupts
INTx.7
PIEACKx INTx.8
(Enable) (Flag)
(Enable/Flag)
PIEIERx(8:1) PIEIFRx(8:1)
(1) Out of the 96 possible interrupts, 58 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. 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 11).
(1) The PIE configuration and control registers are not protected by EALLOW mode. The PIE vector table
is protected.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
XINT1CTR 0x0000 7078 1 XINT1 counter register
XINT2CTR 0x0000 7079 1 XINT2 counter register
reserved 0x0000 707A - 0x0000 5
707E
XNMICTR 0x0000 707F 1 XNMI counter register
Each external interrupt can be enabled/disabled or qualified using positive, negative, or both positive and
negative edge. For more information, see the TMS320x280x, 2801x, 2804x System Control and Interrupts
Reference Guide (literature number SPRU712).
C28x Core
SYSCLKOUT
LSPCLK
LOSPCP Bridge
I/O
Peripheral
SPI-A, SCI-A/B/C, I2C-A Registers
Clock Enables
Peripheral Bus
Memory Bus
/2
I/O
Peripheral
PRODUCT PREVIEW
eCAN-A/B Registers
Clock Enables
LOSPCP
LSPCLK
I/O
Peripheral
McBSP-A/B Registers Bridge
Clock Enables
HISPCP
HSPCLK
Bridge
16 Channels ADC
12-Bit ADC Registers
DMA
Bus
Result
Registers
A. CLKIN is the clock into the CPU. It is passed out of the CPU as SYSCLKOUT (that is, CLKIN is the same frequency
as SYSCLKOUT).
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
The PLL, clocking, watchdog and low-power modes, are controlled by the registers listed in Table 3-15.
PRODUCT PREVIEW
reserved 0x0000-701F 1 Low Power Mode Control Register 1
PCLKCR3 0x0000-7020 1 Peripheral Clock Control Register 3
PLLCR 0x0000-7021 1 PLL Control Register
SCSR 0x0000-7022 1 System Control and Status Register
WDCNTR 0x0000-7023 1 Watchdog Counter Register
reserved 0x0000-7024 1
WDKEY 0x0000-7025 1 Watchdog Reset Key Register
reserved 0x0000-7026 - 0x0000-7028 3
WDCR 0x0000-7029 1 Watchdog Control Register
reserved 0x0000-702A - 0x0000-702F 6
OSCCLK OSCCLK
XCLKIN
xor 0 OSCCLK or
(3.3-V clock input)
VCOCLK CLKIN
PLLSTS[OSCOFF] VCOCLK
PLL
n n≠0 /2
PLLSTS[PLLOFF]
X1 PLLSTS[CLKINDIV]
On chip
4-bit PLL Select (PLLCR)
oscillator
X2
The on-chip oscillator circuit enables a crystal/resonator to be attached to the 2833x devices using the X1
and X2 pins. If the on-chip oscillator is not used, an external oscillator can be used in either one of the
following configurations:
1. A 3.3-V external oscillator can be directly connected to the XCLKIN pin. The X2 pin should be left
unconnected and the X1 pin tied low. The logic-high level in this case should not exceed VDDIO.
2. A 1.8-V external oscillator can be directly connected to the X1 pin. The X2 pin should be left
unconnected and the XCLKIN pin tied low. The logic-high level in this case should not exceed VDD.
The three possible input-clock configurations are shown in Figure 3-10 through Figure 3-12
XCLKIN X1 X2
XCLKIN X1 X2
(Toggling 0 −VDD)
XCLKIN X1 X2
CL1 CL2
Crystal
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
SYSCLKOUT
PLLCR[DIV] (1)
(CLKIN) (2)
0000 (PLL bypass) OSCCLK/n
0001 (OSCCLK*1)/n
0010 (OSCCLK*2)/n
0011 (OSCCLK*3)/n
0100 (OSCCLK*4)/n
0101 (OSCCLK*5)/n
0110 (OSCCLK*6)/n
0111 (OSCCLK*7)/n
1000 (OSCCLK*8)/n
1001 (OSCCLK*9)/n
PRODUCT PREVIEW
1010 (OSCCLK*10)/n
1011-1111 reserved
(1) This register is EALLOW protected.
(2) CLKIN is the input clock to the CPU. SYSCLKOUT is the output
clock from the CPU. The frequency of SYSCLKOUT is the same as
CLKIN. If CLKINDIV = 0, n = 2; if CLKINDIV = 1, n = 1.
SYSCLKOUT
PLL MODE REMARKS PLLSTS[CLKINDIV]
(CLKIN)
Invoked by the user setting the PLLOFF bit in the PLLSTS register. The PLL block 0 OSCCLK/2
is disabled in this mode. This can be useful to reduce system noise and for low
PLL Off power operation. The PLLCR register must first be set to 0x0000 (PLL Bypass)
before entering this mode. The CPU clock (CLKIN) is derived directly from the 1 OSCCLK
input clock on either X1/X2, X1 or XCLKIN.
PLL Bypass is the default PLL configuration upon power-up or after an external 0 OSCCLK/2
reset (XRS). This mode is selected when the PLLCR register is set to 0x0000 or
PLL Bypass
while the PLL locks to a new frequency after the PLLCR register has been 1 OSCCLK
modified. In this mode, the PLL itself is bypassed but the PLL is not turned off.
Achieved by writing a non-zero value n into the PLLCR register. Upon writing to the
PLL Enable 0 OSCCLK*n/2
PLLCR the device will switch to PLL Bypass mode until the PLL locks.
NOTE
Applications in which the correct CPU operating frequency is absolutely critical should
implement a mechanism by which the DSC will be held in reset, should the input clocks
ever fail. For example, an R-C circuit may be used to trigger the XRS pin of the DSC,
should the 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 flash memory and the VDD3VFL rail.
WDCNTR(7:0)
Clear Counter
Internal
Pullup
WDKEY(7:0)
Generate WDRST
Watchdog Output Pulse WDINT
55 + AA Good Key (512 OSCCLKs)
Key Detector
XRS
Core-reset Bad
WDCHK SCSR (WDENINT)
Key
WDCR (WDCHK[2:0])
1 0 1
WDRST(A)
The WDINT signal enables the watchdog to be used as a wakeup from IDLE/STANDBY mode.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
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 OSCCLK. The WDINT signal is fed to the
LPM block so that it can wake the device from STANDBY (if enabled). See Section Section 3.7,
Low-Power Modes Block, for more details.
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.
PRODUCT PREVIEW
Table 3-19. Low-Power Modes
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 in when the IDLE instruction was
executed. See the TMS320x280x, 2801x, 2804x System Control and Interrupts Reference
Guide (literature number SPRU712) for more details.
4 Peripherals
The integrated peripherals of the 2833x are described in the following subsections:
• Three 32-bit CPU-Timers
• Up to six enhanced PWM modules (ePWM1, ePWM2, ePWM3, ePWM4, ePWM5, ePWM6)
• Up to six enhanced capture modules (eCAP1, eCAP2, eCAP3, eCAP4, eCAP5, eCAP6)
• Up to two enhanced QEP modules (eQEP1, eQEP2)
• Enhanced analog-to-digital converter (ADC) module
• Up to two enhanced controller area network (eCAN) modules (eCAN-A, eCAN-B)
• Up to three serial communications interface modules (SCI-A, SCI-B, SCI-C)
• One serial peripheral interface (SPI) module (SPI-A)
• Inter-integrated circuit module (I2C)
• Up to two multichannel buffered serial port (McBSP-A, McBSP-B) modules
PRODUCT PREVIEW
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
– ADC Memory Bus mapped RESULT registers
– McBSP-A and McBSP-B transmit and receive buffers
• Word Size: 16-bit or 32-bit (McBSPs limited to 16-bit)
• Throughput: 4 cycles/word (5 cycles/word for McBSP reads)
Memory Bus
Dual Port
ADC
Control
ADC
0/1-wait
Peripheral Bus
Registers
(16 x 16)
DMA Event Triggers
CPU Timers
Interrupts
McBSP-B
McBSP-A
DMA
External
Dual Port
L4 Type 0
XINTF
CPU
SARAM
(4K x 16) 6-Ch
L5
Dual Ports
SARAM
DINT[CH1:CH6]
(4K x 16)
L6
SARAM
SYSCLKOUT
(4K x 16)
L7
SARAM
(4K x 16) PIE
DMA Bus
NOTE
NOTE: If the application is not using DSP/BIOS, then CPU-Timer 2 can be used in the
application.
Reset
PRODUCT PREVIEW
Timer Reload
Borrow
TINT
In the 2833x devices, the timer interrupt signals (TINT0, TINT1, TINT2) are connected as shown in
Figure 4-3.
INT1 TINT0
to PIE CPU-TIMER 0
INT12
C28x
TINT1 CPU-TIMER 1
INT13 (Reserved for TI
system functions)
XINT13
TINT2 CPU-TIMER 2
INT14 (Reserved for
DSP/BIOS)
A. The timer registers are connected to the memory bus of the C28x processor.
B. The timing of the timers is synchronized to SYSCLKOUT of the processor clock.
C. While TIMER1 is reserved, INT13 is not reserved and the user can use XINT13 connected to INT13.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
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 TMS320x280x,
2801x, 2804x System Control and Interrupts Reference Guide (literature number SPRU712).
PRODUCT PREVIEW
reserved 0x0C05 1
TIMER0TPR 0x0C06 1 CPU-Timer 0, Prescale Register
TIMER0TPRH 0x0C07 1 CPU-Timer 0, Prescale Register High
TIMER1TIM 0x0C08 1 CPU-Timer 1, Counter Register
TIMER1TIMH 0x0C09 1 CPU-Timer 1, Counter Register High
TIMER1PRD 0x0C0A 1 CPU-Timer 1, Period Register
TIMER1PRDH 0x0C0B 1 CPU-Timer 1, Period Register High
TIMER1TCR 0x0C0C 1 CPU-Timer 1, Control Register
reserved 0x0C0D 1
TIMER1TPR 0x0C0E 1 CPU-Timer 1, Prescale Register
TIMER1TPRH 0x0C0F 1 CPU-Timer 1, Prescale Register High
TIMER2TIM 0x0C10 1 CPU-Timer 2, Counter Register
TIMER2TIMH 0x0C11 1 CPU-Timer 2, Counter Register High
TIMER2PRD 0x0C12 1 CPU-Timer 2, Period Register
TIMER2PRDH 0x0C13 1 CPU-Timer 2, Period Register High
TIMER2TCR 0x0C14 1 CPU-Timer 2, Control Register
reserved 0x0C15 1
TIMER2TPR 0x0C16 1 CPU-Timer 2, Prescale Register
TIMER2TPRH 0x0C17 1 CPU-Timer 2, Prescale Register High
0x0C18
reserved 40
0x0C3F
EPWM1SYNCI
EPWM1SYNCI
EPWM1INT
EPWM1A
EPWM1SOC
ePWM1 module EPWM1B
PRODUCT PREVIEW
TZ1 to TZ6
to eCAP1 EPWM1SYNCO
. EPWM1SYNCO
module
(sync in)
EPWM2SYNCI
EPWM2INT EPWM2A
TZ1 to TZ6
EPWM2SYNCO
EPWMxSYNCI
EPWMxINT EPWMxA
EPWMxSOC
ePWMx module EPWMxB
TZ1 to TZ6
EPWMxSYNCO
ADCSOCx0
Peripheral Bus
ADC
Table 4-2 shows the complete ePWM register set per module.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
SIZE (x16) /
NAME EPWM1 EPWM2 EPWM3 EPWM4 EPWM5 EPWM6 DESCRIPTION
#SHADOW
TBCTL 0x6800 0x6840 0x6880 0x68C0 0x6900 0x6940 1/0 Time Base Control Register
TBSTS 0x6801 0x6841 0x6881 0x68C1 0x6901 0x6941 1/0 Time Base Status Register
TBPHSHR 0x6802 0x6842 0x6882 0x68C2 N/A N/A 1/0 Time Base Phase HRPWM Register
TBPHS 0x6803 0x6843 0x6883 0x68C3 0x6903 0x6943 1/0 Time Base Phase Register
TBCTR 0x6804 0x6844 0x6884 0x68C4 0x6904 0x6944 1/0 Time Base Counter Register
TBPRD 0x6805 0x6845 0x6885 0x68C5 0x6905 0x6945 1/1 Time Base Period Register Set
CMPCTL 0x6807 0x6847 0x6887 0x68C7 0x6907 0x6947 1/0 Counter Compare Control Register
CMPAHR 0x6808 0x6848 0x6888 0x68C8 N/A N/A 1/1 Time Base Compare A HRPWM Register
CMPA 0x6809 0x6849 0x6889 0x68C9 0x6909 0x6949 1/1 Counter Compare A Register Set
CMPB 0x680A 0x684A 0x688A 0x68CA 0x690A 0x694A 1/1 Counter Compare B Register Set
AQCTLA 0x680B 0x684B 0x688B 0x68CB 0x690B 0x694B 1/0 Action Qualifier Control Register For Output A
AQCTLB 0x680C 0x684C 0x688C 0x68CC 0x690C 0x694C 1/0 Action Qualifier Control Register For Output B
AQSFRC 0x680D 0x684D 0x688D 0x68CD 0x690D 0x694D 1/0 Action Qualifier Software Force Register
AQCSFRC 0x680E 0x684E 0x688E 0x68CE 0x690E 0x694E 1/1 Action Qualifier Continuous S/W Force Register Set
DBCTL 0x680F 0x684F 0x688F 0x68CF 0x690F 0x694F 1/1 Dead-Band Generator Control Register
DBRED 0x6810 0x6850 0x6890 0x68D0 0x6910 0x6950 1/0 Dead-Band Generator Rising Edge Delay Count Register
DBFED 0x6811 0x6851 0x6891 0x68D1 0x6911 0x6951 1/0 Dead-Band Generator Falling Edge Delay Count Register
TZSEL 0x6812 0x6852 0x6892 0x68D2 0x6912 0x6952 1/0 Trip Zone Select Register (1)
TZCTL 0x6814 0x6854 0x6894 0x68D4 0x6914 0x6954 1/0 Trip Zone Control Register (1)
TZEINT 0x6815 0x6855 0x6895 0x68D5 0x6915 0x6955 1/0 Trip Zone Enable Interrupt Register (1)
TZFLG 0x6816 0x6856 0x6896 0x68D6 0x6916 0x6956 1/0 Trip Zone Flag Register
TZCLR 0x6817 0x6857 0x6897 0x68D7 0x6917 0x6957 1/0 Trip Zone Clear Register (1)
TZFRC 0x6818 0x6858 0x6898 0x68D8 0x6918 0x6958 1/0 Trip Zone Force Register (1)
ETSEL 0x6819 0x6859 0x6899 0x68D9 0x6919 0x6959 1/0 Event Trigger Selection Register
ETPS 0x681A 0x685A 0x689A 0x68DA 0x691A 0x695A 1/0 Event Trigger Prescale Register
ETFLG 0x681B 0x685B 0x689B 0x68DB 0x691B 0x695B 1/0 Event Trigger Flag Register
ETCLR 0x681C 0x685C 0x689C 0x68DC 0x691C 0x695C 1/0 Event Trigger Clear Register
ETFRC 0x681D 0x685D 0x689D 0x68DD 0x691D 0x695D 1/0 Event Trigger Force Register
PCCTL 0x681E 0x685E 0x689E 0x68DE 0x691E 0x695E 1/0 PWM Chopper Control Register
HRCNFG 0x6820 0x6860 0x68A0 0x68E0 0x6920 0x6960 1/0 HRPWM Configuration Register (1)
Time−base (TB)
Sync
TBPRD shadow (16) CTR=ZERO in/out
select EPWMxSYNCO
CTR=CMPB
TBPRD active (16) Mux
Disabled
CTR=PRD
TBCTL[SYNCOSEL]
TBCTL[CNTLDE]
Counter EPWMxSYNCI
up/down TBCTL[SWFSYNC]
(16 bit) (software forced sync)
CTR=ZERO
TBCNT
active (16) CTR_Dir
TBPHSHR (8)
16 8
PRODUCT PREVIEW
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
CTRPHS
(phase register−32 bit) APWM mode
SYNC
SYNCIn
OVF CTR_OVF
TSCTR CTR [0−31]
SYNCOut PWM
(counter−32 bit) Delta−mode PRD [0−31] compare
RST
logic
CMP [0−31]
32
PRODUCT PREVIEW
CTR=CMP
32
PRD [0−31]
eCAPx
MODE SELECT
32 CAP1 LD1 Polarity
LD
(APRD active) select
APRD 32
shadow CMP [0−31]
32
Event Event
32 ACMP
qualifier
shadow Pre-scale
32 Polarity
CAP3 LD3 select
LD
(APRD shadow)
32 CAP4 LD4
LD Polarity
(ACMP shadow) select
4
Capture events 4
CEVT[1:4]
Interrupt Continuous /
to PIE Trigger Oneshot
and CTR_OVF Capture Control
Flag
CTR=PRD
control
CTR=CMP
The clock enable bits (ECAP1/2/3/4/5/6ENCLK) in the PCLKCR1 register are used to turn off the eCAP
modules individually (for low power operation). Upon reset, ECAP1ENCLK, ECAP2ENCLK,
ECAP3ENCLK, ECAP4ENCLK, ECAP5ENCLK, and ECAP6ENCLK are set to low, indicating that the
peripheral clock is off.
SIZE
NAME ECAP1 ECAP2 ECAP3 ECAP4 ECAP5 ECAP6 DESCRIPTION
(x16)
TSCTR 0x6A00 0x6A20 0x6A40 0x6A60 0x6A80 0x6AA0 2 Time-Stamp Counter
CTRPHS 0x6A02 0x6A22 0x6A42 0x6A62 0x6A82 0x6AA2 2 Counter Phase Offset Value
Register
CAP1 0x6A04 0x6A24 0x6A44 0x6A64 0x6A84 0x6AA4 2 Capture 1 Register
CAP2 0x6A06 0x6A26 0x6A46 0x6A66 0x6A86 0x6AA6 2 Capture 2 Register
PRODUCT PREVIEW
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
System
control registers
To CPU
EQEPxENCLK
SYSCLKOUT
Data bus
PRODUCT PREVIEW
QCPRD
QCAPCTL QCTMR
16 16
16
Quadrature
capture unit
QCTMRLAT (QCAP)
QCPRDLAT
EQEP1
EQEP1 EQEP2
NAME SIZE(x16)/ REGISTER DESCRIPTION
ADDRESS ADDRESS
#SHADOW
QPOSCNT 0x6B00 0x6B40 2/0 eQEP Position Counter
QPOSINIT 0x6B02 0x6B42 2/0 eQEP Initialization Position Count
QPOSMAX 0x6B04 0x6B44 2/0 eQEP Maximum Position Count
QPOSCMP 0x6B06 0x6B46 2/1 eQEP Position-compare
QPOSILAT 0x6B08 0x6B48 2/0 eQEP Index Position Latch
QPOSSLAT 0x6B0A 0x6B4A 2/0 eQEP Strobe Position Latch
QPOSLAT 0x6B0C 0x6B4C 2/0 eQEP Position Latch
QUTMR 0x6B0E 0x6B4E 2/0 eQEP Unit Timer
QUPRD 0x6B10 0x6B50 2/0 eQEP Unit Period Register
PRODUCT PREVIEW
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
– The digital value of the input analog voltage is derived by:
HALT HSPCLK
ADCENCLK
ADCINA7
12-Bit Result Reg 7 70AFh
ADC
PRODUCT PREVIEW
S/H
To obtain the specified accuracy of the ADC, proper board layout is very 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 ( VDD1A18,
VDD2A18 , VDDA2, VDDAIO ) from the digital supply.Figure 4-9 shows the ADC pin connections for the 2833x
devices.
NOTE
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, however, will 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 mode only affects the analog module. It does not affect the registers.
In this mode, the ADC module goes into low-power mode. This mode also will stop
the clock to the CPU, which will stop the HSPCLK; therefore, the ADC register
logic will be turned off indirectly.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
Figure 4-9 shows the ADC pin-biasing for internal reference and Figure 4-10 shows the ADC pin-biasing
for external reference.
ADC 16-Channel Analog Inputs ADCINA[7:0] Analog input 0−3 V with respect to ADCLO
ADCINB[7:0]
ADCLO Connect to analog ground
ADCREFIN Float or ground if internal reference is used
22 kW
ADC External Current Bias Resistor ADCRESEXT
2.2 mF (A)
ADC Reference Positive Output ADCREFP
2.2 mF (A) ADCREFP and ADCREFM should not
ADC Reference Medium Output ADCREFM be loaded by external circuitry
VDD1A18 ADC Analog Power Pin (1.8 V)
VDD2A18 ADC Analog Power Pin (1.8 V)
ADC Power
VSS1AGND ADC Analog Ground Pin
VSS2AGND ADC Analog Ground Pin
PRODUCT PREVIEW
VDDA2 ADC Analog Power Pin (3.3 V)
VSSA2 ADC Analog Ground Pin
ADC Analog and Reference I/O Power
VDDAIO ADC Analog Power Pin (3.3 V)
VSSAIO ADC Analog I/O Ground Pin
ADC 16-Channel Analog Inputs ADCINA[7:0] Analog input 0−3 V with respect to ADCLO
ADCINB[7:0]
ADCLO Connect to Analog Ground
ADCREFIN Connect to 1.500, 1.024, or 2.048-V precision source (D)
22 kW
ADC External Current Bias Resistor ADCRESEXT
2.2 mF (A)
ADC Reference Positive Output ADCREFP
2.2 mF (A) ADCREFP and ADCREFM should not
ADC Reference Medium Output ADCREFM be loaded by external circuitry
VDD1A18 ADC Analog Power Pin (1.8 V)
VDD2A18 ADC Analog Power Pin (1.8 V)
ADC Analog Power
VSS1AGND ADC Analog Ground Pin
VSS2AGND ADC Analog Ground Pin
NOTE
The temperature rating of any recommended component must match the rating of the end
product.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
ADCOFFTRIM 0x711D 1 ADC Offset Trim Register
0x711E
Reserved 2 ADC Status Register
0x711F
• 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
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
CLKSRG
CLKG =
• McBSP clock rate = (1 + CLKGDIV ) where CLKSRG source could be LSPCLK, CLKX, or CLKR.
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.
Figure 4-11 shows the block diagram of the McBSP module.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
TX
MXINT Interrupt
Peripheral Write Bus
To CPU TX Interrupt Logic
McBSP Transmit 16 16
Interrupt Select Logic
XSR2
PRODUCT PREVIEW
XSR1 DX
RSR2 RSR1 DR
16 CLKR
16
Expand Logic
FSR
RBR2 Register RBR1 Register
16 16
McBSP
DRR2 Receive Buffer DRR1 Receive Buffer
McBSP Receive
16 16
Interrupt Select Logic
RX
MRINT RX Interrupt Logic Interrupt
Peripheral Read Bus
To CPU
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
4.9 Enhanced Controller Area Network (eCAN) Modules (eCAN-A and eCAN-B)
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
PRODUCT PREVIEW
– 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 100 MHz, the smallest bit rate possible is 15.625 kbps.
For a SYSCLKOUT of 150 MHz, the smallest bit rate possible is 23.4 kbps.
Message Controller
32
Transmit Buffer
Control Buffer
Status Buffer
SN65HVD23x
3.3-V CAN Transceiver
CAN Bus
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
60BFh
60C0h Message Object Time-Out (MOTO) Error and Status − CANES
60FFh (32 × 32-Bit RAM) Transmit Error Counter − CANTEC
Receive Error Counter − CANREC
Global Interrupt Flag 0 − CANGIF0
Global Interrupt Mask − CANGIM
The CAN registers listed in Table 4-8 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.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
CANGAM 0x6012 0x6212 1 Global acceptance mask
CANMC 0x6014 0x6214 1 Master control
CANBTC 0x6016 0x6216 1 Bit-timing configuration
CANES 0x6018 0x6218 1 Error and status
CANTEC 0x601A 0x621A 1 Transmit error counter
CANREC 0x601C 0x621C 1 Receive error counter
CANGIF0 0x601E 0x621E 1 Global interrupt flag 0
CANGIM 0x6020 0x6220 1 Global interrupt mask
CANGIF1 0x6022 0x6222 1 Global interrupt flag 1
CANMIM 0x6024 0x6224 1 Mailbox interrupt mask
CANMIL 0x6026 0x6226 1 Mailbox interrupt level
CANOPC 0x6028 0x6228 1 Overwrite protection control
CANTIOC 0x602A 0x622A 1 TX I/O control
CANRIOC 0x602C 0x622C 1 RX I/O control
CANTSC 0x602E 0x622E 1 Time stamp counter (Reserved in SCC mode)
CANTOC 0x6030 0x6230 1 Time-out control (Reserved in SCC mode)
CANTOS 0x6032 0x6232 1 Time-out status (Reserved in SCC mode)
(1) These registers are mapped to Peripheral Frame 1.
NOTE: Both pins can be used as GPIO if not used for SCI.
– Baud rate programmable to 64K different rates:
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
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
SCIRXEMUA 0x7056 1 SCI-A Receive Emulation Data Buffer Register
SCIRXBUFA 0x7057 1 SCI-A Receive Data Buffer Register
SCITXBUFA 0x7059 1 SCI-A Transmit Data Buffer Register
SCIFFTXA (2) 0x705A 1 SCI-A FIFO Transmit Register
SCIFFRXA (2) 0x705B 1 SCI-A FIFO Receive Register
SCIFFCTA (2) 0x705C 1 SCI-A FIFO Control Register
SCIPRIA 0x705F 1 SCI-A Priority Control Register
(1) Registers in this table are mapped to Peripheral Frame 2 space. This space only allows 16-bit accesses. 32-bit accesses produce
undefined results.
(2) These registers are new registers for the FIFO mode.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
SCICTL1.1
Frame Format and Mode SCITXD
SCITXD
TXSHF
Parity Register TXENA
TX EMPTY
Even/Odd Enable
8 SCICTL2.6
SCICCR.6 SCICCR.5
TXRDY TX INT ENA
Transmitter-Data
Buffer Register SCICTL2.7
TXWAKE SCICTL2.0
SCICTL1.3 8 TX FIFO
TX FIFO _0 Interrupts TXINT
1 TX Interrupt
TX FIFO _1
Logic
----- To CPU
TX FIFO _15
WUT SCITXBUF.7-0 SCI TX Interrupt select logic
TX FIFO registers
PRODUCT PREVIEW
SCIFFENA AutoBaud Detect logic
SCIFFTX.14
SCIHBAUD. 15 - 8
SCIRXD
Baud Rate RXSHF
Register SCIRXD
MSbyte
Register RXWAKE
LSPCLK SCIRXST.1
SCILBAUD. 7 - 0 RXENA
RX Error
RX ERR INT ENA
SCI RX Interrupt select logic
SCICTL1.6
LSPCLK
Baud rate = when SPIBRR = 3 to 127
(SPIBRR ) 1)
Baud rate = LSPCLK when SPIBRR = 0,1, 2
4
• 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
The SPI port operation is configured and controlled by the registers listed in Table 4-12.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
SPIFFCT 0x704C 1 SPI-A FIFO Control Register
SPIPRI 0x704F 1 SPI-A Priority Control Register
(1) Registers in this table are mapped to Peripheral Frame 2. This space only allows 16-bit accesses. 32-bit accesses produce undefined
results.
SPIFFENA
Receiver Overrun
SPIFFTX.14 Overrun Flag INT ENA
To CPU
TX FIFO registers
SPITXBUF
TX FIFO _15 TX Interrupt
−−−−− TX FIFO Interrupt Logic
TX FIFO _1
SPITXINT
TX FIFO _0
16 SPI INT
SPI INT FLAG ENA
SPITXBUF SPISTS.6
16 Buffer Register
SPICTL.0
16
M M
SPIDAT S
Data Register S SW1 SPISIMO
M M
SPIDAT.15 − 0
S
S SW2 SPISOMI
Talk
SPICTL.1
SPISTE(A)
State Control
Master/Slave
SPI Char SPICCR.3 − 0 SPICTL.2
S
3 2 1 0 SW3
Clock Clock
SPI Bit Rate M S Polarity Phase
LSPCLK SPIBRR.6 − 0 SPICCR.6 SPICTL.3 SPICLK
M
6 5 4 3 2 1 0
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
– Data transfer rate of from 10 kbps up to 400 kbps (Philips Fast-mode rate)
• One 16-bit receive FIFO and one 16-bit transmit FIFO
• One interrupt that can be used by the CPU. This interrupt can be generated as a result of one of the
following conditions:
– Transmit-data ready
– Receive-data ready
– Register-access ready
– No-acknowledgment received
– Arbitration lost
– Stop condition detected
– Addressed as slave
• An additional interrupt that can be used by the CPU when in FIFO mode
• Module enable/disable capability
• Free data format mode
System Control
Block C28X CPU
I2CAENCLK
SYSCLKOUT
Peripheral Bus
SYSRS
Control
Data[16]
SDAA Data[16]
PRODUCT PREVIEW
GPIO
I2C−A
MUX Addr[16]
SCLA
I2CINT1A
PIE
Block
I2CINT2A
A. The I2C registers are accessed at the SYSCLKOUT rate. The internal timing and signal waveforms of the I2C port are
also at the SYSCLKOUT rate.
B. The clock enable bit (I2CAENCLK) in the PCLKCRO register turns off the clock to the I2C port for low power
operation. Upon reset, I2CAENCLK is clear, which indicates the peripheral internal clocks are off.
The registers in Table 4-13 configure and control the I2C port operation.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
GPIOXINT1SEL
GPIOLMPSEL GPIOXINT2SEL
LPMCR0 GPIOXNMISEL
PRODUCT PREVIEW
Modes Block MUX
Asynchronous
path GPxDAT (read)
GPxQSEL1/2
GPxCTRL
N/C
GPxPUD 00
01 Peripheral 1 Input
Input
Internal
Qualification
Pullup 10 Peripheral 2 Input
11 Peripheral 3 Input
Asynchronous path GPxTOGGLE
GPIOx pin GPxCLEAR
GPxSET
00 GPxDAT (latch)
01 Peripheral 1 Output
10 Peripheral 2 Output
11 Peripheral 3 Output
High Impedance
Output Control
00 GPxDIR (latch)
0 = Input, 1 = Output 01 Peripheral 1 Output Enable
10 Peripheral 2 Output Enable
XRS
11 Peripheral 3 Output Enable
= Default at Reset
GPxMUX1/2
A. x stands for the port, either A or B. For example, GPxDIR refers to either the GPADIR and GPBDIR register
depending on the particular GPIO pin selected.
B. GPxDAT latch/read are accessed at the same memory location.
The 2833x supports 88 GPIO pins. The GPIO control and data registers are mapped to Peripheral Frame
1 to enable 32-bit operations on the registers (along with 16-bit operations). Table 4-14 shows the GPIO
register mapping.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
D 6 13, 12 GPIO6 (I/O) EPWM4A (O) EPWMSYNCI (I) EPWMSYNCO (O)
0 7 15, 14 GPIO7 (I/O) EPWM4B (O) MCLKRA (I/O) ECAP2 (I/O)
Q 8 17, 16 GPIO8 (I/O) EPWM5A (O) CANTXB (O) ADCSOCAO (O)
U 9 19, 18 GPIO9 (I/O) EPWM5B (O) SCITXDB (O) ECAP3 (I/O)
A 10 21, 20 GPIO10 (I/O) EPWM6A (O) CANRXB (I) ADCSOCBO (O)
L 11 23, 22 GPIO11 (I/O) EPWM6B (O) SCIRXDB (I) ECAP4 (I/O)
P 12 25, 24 GPIO12 (I/O) TZ1 (I) CANTXB (O) MDXB (O)
R 13 27, 26 GPIO13 (I/O) TZ2 (I) CANRXB (I) MDRB (I)
D 14 29, 28 GPIO14 (I/O) TZ3 (I)/XHOLD (I) SCITXDB (O) MCLKXB (I/O)
1 15 31, 30 GPIO15 (I/O) TZ4 (I)/XHOLDA (O) SCIRXDB (I) MFSXB (I/O)
GPAMUX2
GPAQSEL2 GPAMUX2 =0, 0 GPAMUX2 = 0, 1 GPAMUX2 = 1, 0 GPAMUX2 = 1, 1
Q 16 1, 0 GPIO16 (I/O) SPISIMOA (I/O) CANTXB (O) TZ5 (I)
U 17 3, 2 GPIO17 (I/O) SPISOMIA (I/O) CANRXB (I) TZ6 (I)
A 18 5, 4 GPIO18 (I/O) SPICLKA (I/O) SCITXDB (O) CANRXA (I)
L 19 7, 6 GPIO19 (I/O) SPISTEA (I/O) SCIRXDB (I) CANTXA (O)
P 20 9, 8 GPIO20 (I/O) EQEP1A (I) MDXA (O) CANTXB (O)
R 21 11, 10 GPIO21 (I/O) EQEP1B (I) MDRA (I) CANRXB (I)
D 22 13, 12 GPIO22 (I/O) EQEP1S (I/O) MCLKXA (I/O) SCITXDB (O)
2 23 15, 14 GPIO23 (I/O) EQEP1I (I/O) MFSXA (I/O) SCIRXDB (I)
Q 24 17, 16 GPIO24 (I/O) ECAP1 (I/O) EQEP2A (I) MDXB (O)
U 25 19, 18 GPIO25 (I/O) ECAP2 (I/O) EQEP2B (I) MDRB (I)
A 26 21, 20 GPIO26 (I/O) ECAP3 (I/O) EQEP2I (I/O) MCLKXB (I/O)
L 27 23, 22 GPIO27 (I/O) ECAP4 (I/O) EQEP2S (I/O) MFSXB (I/O)
P 28 25, 24 GPIO28 (I/O) SCIRXDA (I) XZCS6 (O)
R 29 27, 26 GPIO29 (I/O) SCITXDA (O) XA19 (O)
D 30 29, 28 GPIO30 (I/O) CANRXA (I) XA18 (O)
3 31 31, 30 GPIO31 (I/O) CANTXA (O) XA17 (O)
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
6 13, 12 GPIO70 (I/O) XD9 (I/O)
7 15, 14 GPIO71 (I/O) XD8 (I/O)
no 8 17, 16 GPIO72 (I/O) XD7 (I/O)
9 19, 18 GPIO73 (I/O) XD6 (I/O)
qu 10 21, 20 GPIO74 (I/O) XD5 (I/O)
a 11 23, 22 GPIO75 (I/O) XD4 (I/O)
l 12 25, 24 GPIO76 (I/O) XD3 (I/O)
13 27, 26 GPIO77 (I/O) XD2 (I/O)
14 29, 28 GPIO78 (I/O) XD1 (I/O)
15 31, 30 GPIO79 (I/O) XD0 (I/O)
GPCMUX2 GPCMUX2 = 0, 0 or 0, 1 GPCMUX2 = 1, 0 or 1, 1
no 16 1, 0 GPIO80 (I/O) XA8 (O)
17 3, 2 GPIO81 (I/O) XA9 (O)
qu 18 5, 4 GPIO82 (I/O) XA10 (O)
a 19 7, 6 GPIO83 (I/O) XA11 (O)
l 20 9, 8 GPIO84 (I/O) XA12 (O)
21 11, 10 GPIO85 (I/O) XA13 (O)
22 13, 12 GPIO86 (I/O) XA14 (O)
23 15, 14 GPIO87 (I/O) XA15 (O)
The user can select the type of input qualification for each GPIO pin via the GPxQSEL1/2 registers from
four choices:
• Synchronization To SYSCLKOUT Only (GPxQSEL1/2=0, 0): This is the default mode of all GPIO pins
at reset and it simply synchronizes the input signal to the system clock (SYSCLKOUT).
• Qualification Using Sampling Window (GPxQSEL1/2=0, 1 and 1, 0): In this mode the input signal, after
synchronization to the system clock (SYSCLKOUT), is qualified by a specified number of cycles before
the input is allowed to change.
GPyCTRL Reg
GPxQSEL
SYSCLKOUT
PRODUCT PREVIEW
Number of Samples
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
5 Device Support
Texas Instruments (TI) offers an extensive line of development tools for the C28x™ generation of DSCs,
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 2833x-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
PRODUCT PREVIEW
• Sample applications code
Hardware Development Tools
• 2833x development board
• Evaluation modules
• JTAG-based emulators - SPI515, XDS510PP, XDS510PP Plus, XDS510USB
• Universal 5-V dc power supply
• Documentation and cables
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.
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 family member.
PACKAGE TYPE
DEVICE FAMILY ZHH = 179-ball MicroStar BGA (lead-free)
320 = TMS320 DSP Family PGF = 176-pin LQFP
DEVICE
TECHNOLOGY 28335
28334
F = Flash EEPROM (1.8-V/1.9-V Core/3.3-V I/O) 28332
.ti.com/leadfree
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
Peripheral Guides
SPRU566 TMS320x28xx, 28xxx Peripheral Reference Guide describes the peripheral reference guides
of the 28x digital signal processors (DSPs).
SPRU716 TMS320x280x, 2801x, 2804x Analog-to-Digital Converter (ADC) Reference Guide describes
how to configure and use the on-chip ADC module, which is a 12-bit pipelined ADC.
SPRU791 TMS320x28xx, 28xxx Enhanced Pulse Width Modulator (ePWM) Module Reference Guide
describes the main areas of the enhanced pulse width modulator that include digital motor
control, switch mode power supply control, UPS (uninterruptible power supplies), and other
forms of power conversion
SPRU924 TMS320x28xx, 28xxx High-Resolution Pulse Width Modulator (HRPWM) describes the
operation of the high-resolution extension to the pulse width modulator (HRPWM)
SPRU807 TMS320x28xx, 28xxx Enhanced Capture (eCAP) Module Reference Guide describes the
enhanced capture module. It includes the module description and registers.
SPRU790 TMS320x28xx, 28xxx Enhanced Quadrature Encoder Pulse (eQEP) Reference Guide
describes the eQEP module, which is used for interfacing with a linear or rotary incremental
encoder to get position, direction, and speed information from a rotating machine in high
performance motion and position control systems. It includes the module description and
registers
SPRU074 TMS320x28xx, 28xxx Enhanced Controller Area Network (eCAN) Reference Guide
describes the eCAN that uses established protocol to communicate serially with other
controllers in electrically noisy environments.
SPRU051 TMS320x28xx, 28xxx Serial Communication Interface (SCI) Reference Guide describes the
SCI, which 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.
SPRU059 TMS320x28xx, 28xxx Serial Peripheral Interface (SPI) Reference Guide 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.
SPRU721 TMS320x28xx, 28xxx Inter-Integrated Circuit (I2C) Reference Guide describes the features
and operation of the inter-integrated circuit (I2C) module that is available on the
TMS320x280x digital signal processor (DSP).
Tools Guides
SPRU513 TMS320C28x Assembly Language Tools User's Guide describes the assembly language
tools (assembler and other tools used to develop assembly language code), assembler
Submit Documentation Feedback Device Support 93
directives, macros, common object file format, and symbolic debugging directives for the
TMS320C28x device.
SPRU514 TMS320C28x Optimizing C Compiler User's Guide 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.
SPRU608 The TMS320C28x Instruction Set Simulator Technical Overview describes the simulator,
available within the Code Composer Studio for TMS320C2000 IDE, that simulates the
instruction set of the C28x™ core.
SPRU625 TMS320C28x DSP/BIOS Application Programming Interface (API) Reference Guide
describes development using DSP/BIOS.
Application Reports
SPRAAM0 Getting Started With TMS320C28x™ Digital Signal Controllers is organized by development
PRODUCT PREVIEW
flow and functional areas to make your design effort as seamless as possible. Tips on
getting started with C28x™ DSP software and hardware development are provided to aid in
your initial design and debug efforts. Each section includes pointers to valuable information
including technical documentation, software, and tools for use in each phase of design.
SPRAAD5 Power Line Communication for Lighting Apps using BPSK w/ a Single DSP Controller
presents a complete implementation of a power line modem following CEA-709 protocol
using a single DSP.
SPRAA85 Programming TMS320x28xx and 28xxx Peripherals in C/C++ explores a hardware
abstraction layer implementation to make C/C++ coding easier on 28x DSPs. This method is
compared to traditional #define macros and topics of code efficiency and special case
registers are also addressed.
SPRA958 Running an Application from Internal Flash Memory on the TMS320F28xx DSP covers the
requirements needed to properly configure application software for execution from on-chip
flash memory. Requirements for both DSP/BIOS™ and non-DSP/BIOS projects are
presented. Example code projects are included.
SPRAA91 TMS320F280x DSC USB Connectivity Using TUSB3410 USB-to-UART Bridge Chip presents
hardware connections as well as software preparation and operation of the development
system using a simple communication echo program.
SPRAA58 TMS320x281x to TMS320x280x Migration Overview describes differences between the
Texas Instruments TMS320x281x and TMS320x280x DSPs to assist in application migration
from the 281x to the 280x. While the main focus of this document is migration from 281x to
280x, users considering migrating in the reverse direction (280x to 281x) will also find this
document useful.
SPRAAD8 TMS320280x and TMS320F2801x ADC Calibration describes a method for improving the
absolute accuracy of the 12-bit ADC found on the TMS320280x and TMS3202801x devices.
Inherent gain and offset errors affect the absolute accuracy of the ADC. The methods
described in this report can improve the absolute accuracy of the ADC to levels better than
0.5%. This application report has an option to download an example program that executes
from RAM on the F2808 EzDSP.
SPRAAI1 Using Enhanced Pulse Width Modulator (ePWM) Module for 0-100% Duty Cycle Control
provides a guide for the use of the ePWM module to provide 0% to 100% duty cycle control
and is applicable to the TMS320x280x family of processors.
SPRAA88 Using PWM Output as a Digital-to-Analog Converter on a TMS320F280x presents a method
for utilizing the on-chip pulse width modulated (PWM) signal generators on the
TMS320F280x family of digital signal controllers as a digital-to-analog converter (DAC).
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
SPRAAH1 Using the Enhanced Quadrature Encoder Pulse (eQEP) Module provides a guide for the use
of the eQEP module as a dedicated capture unit and is applicable to the TMS320x280x,
28xxx family of processors.
SPRA820 Online Stack Overflow Detection on the TMS320C28x DSP presents the methodology for
online stack overflow detection on the TMS320C28x™ DSP. C-source code is provided that
contains functions for implementing the overflow detection on both DSP/BIOS™ and
non-DSP/BIOS applications.
SPRA806 An Easy Way of Creating a C-callable Assembly Function for the TMS320C28x DSP
provides instructions and suggestions to configure the C compiler to assist with
understanding of parameter-passing conventions and environments expected by the C
compiler.
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
PRODUCT PREVIEW
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 data manual (literature number SPRS230), 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.
6 Electrical Specifications
This section provides the absolute maximum ratings and the recommended operating conditions.
www.ti.com
Digital Signal Controllers (DSCs)
SPRS439 – JUNE 2007
PRODUCT PREVIEW
All I/Os except Group 2 -4 mA
High-level output source current, VOH = 2.4 V, IOH
Group 2 (1) -8
All I/Os except Group 2 4 mA
Low-level output sink current, VOL = VOL MAX, IOL
Group 2 (1) 8
Ambient temperature, TA A version -40 85
(1) Group 2 pins are as follows: GPIO28, GPIO29, GPIO30, GPIO31, TDO, XCLKOUT, EMU0, EMU1, XINTF pins, GPIO35-87, XRD.
132 89
133 88
0,27
0,17 0,08 M
0,50
0,13 NOM
176 45
1 44
Gage Plane
21,50 SQ
24,20
SQ
23,80 0,25
26,20 0,05 MIN 0°−ā 7°
SQ
25,80
1,45 0,75
1,35 0,45
Seating Plane
4040134 / B 03/95
Products Applications
Amplifiers amplifier.ti.com Audio www.ti.com/audio
Data Converters dataconverter.ti.com Automotive www.ti.com/automotive
DSP dsp.ti.com Broadband www.ti.com/broadband
Interface interface.ti.com Digital Control www.ti.com/digitalcontrol
Logic logic.ti.com Military www.ti.com/military
Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork
Microcontrollers microcontroller.ti.com Security www.ti.com/security
RFID www.ti-rfid.com Telephony www.ti.com/telephony
Low Power www.ti.com/lpw Video & Imaging www.ti.com/video
Wireless
Wireless www.ti.com/wireless
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2007, Texas Instruments Incorporated