Texas Instruments C5535 DSPShield Hardware Reference Manual

C5535 DSPShield H/W Reference Manual
Version 0.1
C5535
DSP
SHIELD
Hardware Reference Manual
H/W Rev. A
In Collaboration with Stanford University
page i
C5535 DSPShield H/W Reference Manual
Version 0.1
Revision History
Version Date Author Notes
0.1 Aug 12, 2013 D. Garcia
NOTES:
1. Initial release.
2.
In Collaboration with Stanford University
page ii
C5535 DSPShield H/W Reference Manual
Version 0.1
Table of Contents
C5535 DSPShield ...................................................................................................... 1
1
1.1Key Features ...............................................................................................................1
1.2DSPShield Architecture..............................................................................................2
1.3User Control Elements ...............................................................................................3
1.4DSPShield Application Photos ...................................................................................4
2 Power Management .................................................................................................. 4
2.1External Power Interface ............................................................................................4
2.2Internal Voltages ........................................................................................................6
2.3Voltage Monitoring ....................................................................................................6
2.4C5535 DSP Core Voltage ...........................................................................................7
3 C5535 DSP and Internal Peripherals ...................................................................... 7
3.1Parallel and Serial Peripherals ....................................................................................7
3.2Clock Sources .............................................................................................................8
3.3ROM Bootloader ........................................................................................................9
3.4/INT1, /INT0, XF, WAKEUP ..................................................................................10
3.5USB Controller .........................................................................................................10
3.6MMC/SDx Controller ...............................................................................................10
3.7I2C ............................................................................................................................10
4 DSPShield Peripherals............................................................................................ 11
4.1I2C GPIO Expander .................................................................................................11
4.2OLED Display ..........................................................................................................14
4.3TLV320ACI3204 Audio Codec ...............................................................................14
4.4Micro SD Card Connector ........................................................................................14
4.5DIP Switch Inputs, LEDs and Push Button Reset ....................................................14
4.6DSP Expansion Connector .......................................................................................15
5 Emulation................................................................................................................. 16
5.1FTDI FT2232H .........................................................................................................16
5.2Power via XDS-USB ................................................................................................17
6 Arduino Interface .................................................................................................... 17
6.1Arduino/DSPShield Interface Block Diagram .........................................................19
6.1.1 Interface Logic Levels ............................................................................... 19
6.1.2 Analog Inputs ............................................................................................ 20
6.2Arduino/DSPShield Reset Multiplexing ..................................................................20
In Collaboration with Stanford University
page iii
C5535 DSPShield H/W Reference Manual
Version 0.1
6.2.1 Default Configuration ................................................................................ 22
6.2.2 C5535 Isolated from ARD_RESETN pin ................................................. 23
6.2.3 C5535 Resets Arduino ............................................................................... 23
6.2.4 C5535 Self Resets ...................................................................................... 23
6.2.5 Emulator Only Resets the DSPShield ....................................................... 23
6.3DSPShield UART Multiplexing ...............................................................................23
6.3.1 DSP Expansion Connector ........................................................................ 25
6.3.2 Arduino IO[1:0] ......................................................................................... 25
6.3.3 Emulator Serial Port .................................................................................. 25
6.4Arduino/DSPShield I2C Interface ............................................................................26
6.5Arduino SPI Interface ...............................................................................................26
6.5.1 Arduino Master/C5535 DSP Isolated ........................................................ 27
6.5.2 Arduino Slave/C5535 DSP Master ............................................................ 28
6.5.3 Arduino Isolated/C5535 DSP Master ........................................................ 28
7 Resistor Multiplexing Configurations ................................................................... 28
8 Stand-Alone Mode .................................................................................................. 30
9 Assembly Drawings and Schematics ..................................................................... 31
Reference documents
1
2
3
4
5
6
7
Title / source
TMS320C5535 Data Sheet SPRS737B
TMX320C5535 Technical Reference Manual
SPRUH87C August 2011–Revised March 2012
TLV320AIC3204 Ultra Low Power Stereo Audio Codec SLOS602B –SEPTEMBER 2008–REVISED OCTOBER 2012
TCA6416A I2C to GPIO Expander SCPS194A – MAY 2009– REVISED NOVEMBER 2009
Dual High Speed USB to Multipurpose UART/FIFO IC http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf
Arduino UNO Information http://arduino.cc/en/Main/ArduinoBoardUno
OLED Display OSD9616P0992-10 http://osddisplays.com/
AUGUST 2011–REVISED MARCH 2012
In Collaboration with Stanford University
Owner Version
TI
TI
TI
TI
FTDI
Arduino
OSD Display
page iv
C5535 DSPShield H/W Reference Manual
Version 0.1
Acronyms Abbreviations and Definitions
Arduino Arduino UNO Arduino Leonardo CCS DC-DC DSP DNI Energia GPIO I2C I2S IDE LCD LDO MMC/SD OLED UART XDS
Family of Open Hardware uC Boards 2chip Arduino uC Board 1chip Arduino uC Board Code Composer Studio TI Emulation Software Switching regulator Digital Signal Processor Do Not Install Open Source software IDE for TI Processors General Purpose Input Output Inter-Integrated Circuit (2-pin serial bus) Integrated Interchip Sound (4-pin serial bus for audio devices) Integrated Development Environment Liquid Crystal Display Low Drop-Out regulator Multimedia Card/Secure Digital (flash memory) Organic Light Emitting Diode (Display) Universal Asynchronous Receiver Transmitter (serial bus) Extended Development System. JTAG Emulators for TI Processors (embedded or external)
In Collaboration with Stanford University
page v
C5535 DSPShield H/W Reference Manual Version 0.1
1 C5535 DSPShield
The C5535 DSPShield is an evaluation board for the Texas Instruments TMS320C5535 Fixed-Point Digital Signal Processor (DSP). It is designed to be both a “Shield” (i.e. daughter card) for the Arduino Open-Hardware family of microcontroller (uC) boards and also a stand-alone development board. With a rich set of hardware features and a connector for prototyping expansion, the C5535 DSPShield can be used to develop applications such as
Wireless Audio Devices (e.g., Headsets, Microphones, Speakerphones)
Echo Cancellation Headphones
Portable Medical Devices
Voice Applications
Industrial Controls
Fingerprint Biometrics
Software-defined Radio
1.1 Key Features
The key features of the C5535 DSPShield are shown in Figure 1. The features include:
TI TMS320C5535AZHHA10 (100MHz) Digital Signal Processor TI TLV320AIC3204IRGBR Stereo Audio Codec with separate stereo in and
stereo out connectors
Micro SD Card Connector USB 2.0 interface to the C5535 DSP OLED 96x16 pixel display Arduino Compatible Header Connectors Arduino Interface is compatible with Energia software IDE and API Embedded USB XDS100-V2 JTAG emulator with secondary serial port
o JTAG is compatible with TI Code Composer Studio software IDE o Secondary serial port is compatible with Energia software IDE and API
40-pin DSP Expansion Connector 3 user controlled LEDs, 4 user readable DIP switches 1 hardware reset push button switch Flexible Power Sourcing
In Collaboration with Stanford University
page 1
C5535 DSPShield H/W Reference Manual Version 0.1
Figure 1. Key Features of the C5535 DSPShield
1.2 DSPShield Architecture
The C5535 DSP is a peripheral rich processor. However, to limit the pin count, the C5535’s pins are heavily multiplexed. Depending on the application, the C5535 is programmed with the appropriate internal peripherals routed to its external pins. The DSPShield maintains this flexibility by using additional discrete multiplexers to connect the C5535’s GPIO/peripheral pins to the appropriate points on the board. Additonal flexibility can also be found in the power management for the board and in the Arduino/DSPShield interface. The DSPShield block diagram is shown in Figure 2.
The DSPShield architecture consists of the following major blocks:
1. Power Management
2. The C5535 DSP and Internal Peripherals
3. DSPShield Peripherals
4. Arduino Interface
5. DSP Expansion Connector
6. XDS100-V2 Embedded Emulator
In Collaboration with Stanford University
page 2
r
u
b
d
a
i
m
o
s
h
a
b
3
d
a
o
o
w
B
a
a
E
i
i
w
a
m
/
o
h
e
n
o
N
n
n
o
M
S
a
r
o
t
n
I
n
a
y
u
t
d
n
1
e
C55
5 DSPShield H
W Reference
anual
Version 0.
Figu
1.3
The
oar in T posit
User Ele
SW1 SW2 P1 P2 P3/DI P4 P5 P6 P7 P8 P9
e 2. C5535
User C
ser control are throug
ble 1, with
ons on the
Control ent
SP1
DSPShiel
ntrol Ele
the DSPSh
various he reference t oard are sh
Function
Quad DIP S Reset Push DSP-USB M Micro SD C OLED Displ 40-Pin DSP Arduino Dig Arduino Dig Arduino Po Arduino An XDS-USB E
Block Dia
ments
ield throug
ders, conn
the sectio
wn in the t
itch for GPI
utton
icro USB Con
rd Adapter
xpansion Co tal Header 1 tal Header 2 er Header
log Header
ulation Micr
In Collab
ram
jumpers an
ctors, and j
where thei
p and bott
ector
nector
USB connec
ration with
d switches.
cks. For co
functions
m assembl
tor
tanford U
nput and O
venience,
re describe
drawings i
iversity
tput to the
hey are list
. Their Section 8.
Section Descriptio
4.5
4.5
3.5
43.6, 4.4
4.2
4.6
6.1
6.1
6.1
6.1 5
page 3
d
n
C5535 DSPShield H/W Reference Manual Version 0.1
P10 Arduino ICSP Male/Female Header 6.1 J1 Alternate JTAG Header when Embedded Emulator N/A 5.1 J2 Audio Codec MIC input 4.3 J3 Audio Codec Headphone output 4.3 JPA DSP-USB and/or XDS-USB +5V Input Select Jumper 2.1 JPB Arduino +5V Input/Output Select Jumper 2.1 JPC Arduino +3.3V Output ONLY Select Jumper 2.1 JPD Arduino IOREF Input/Output Select Jumper 6.1.1 JPE Internally generated Ardino IOREF +5V or +3.3V Select Jumper 6.1.1 JPF XDS-USB +5V Connector Select Jumper 5.2 LED-XF C5535 XF Status 3.3, 4.5 LED0 General Purpose LED 4.5 LED1 General Purpose LED 4.5 LED2 General Purpose LED 4.5 XDS-LED Emulator Connected Status 5.1
Table 1. User Control Elements
1.4 DSPShield Application Photos
Inset photographs here.
DSPShield + Arduino UNO DSPShield + Arduino UNO + Arduino Shield (suggestions?) DSPShield + Arduino Leonardo using 2 USB cables DSPShield + DSP Daughter Card (Audio Shield) DSPShield + Arduino Shield + DSP Daughter Card Other???
2 Power Management
The DSPShield requires a single +5V source. All other required voltages used on the board are derived from this source.
2.1 External Power Interface
The +5V source can come from the DSP-USB connector (P1), XDS-USB connector (P9), or from the Arduino Power Header (P7). The DSPShield power management block diagram is shown in Figure 3. Jumpers JPA, JPB, JPC and JPF control the multiplexing of power sources into and out of the board. Some common power management configurations are listed in Table 2.
NOTES:
1. Schottky diodes allow both USB cables to be connected at the same time.
However, the inclusion of the diodes in the power path drops the nominal +5V to about +4.3V due to the diode voltage drop.
2. The DSPShield does not use the +3.3V from the Arduino Power Header.
However, the DSPShield can source it.
In Collaboration with Stanford University
page 4
r
S
h
n
h
h
h
n
h
h
n
h
R
V
n
h
e
d
d
A
d
A
O
r
i
d
3
r
x
S
S
S
b
S
b
e
s
o
/
o
e
P
+
J
O(Un
U
N
U
N
U
N
U
N
e
y
o
l
M
S
A
H
I
U
U
H
O
H
O
n
e
n
w
n
S
S
o
b
C
n
i
l
d
d
1
B
D
D
i
Figu
DSP
DSPS Ardui DSPS
DSPS
DSPS Ardui DSPS DSPS Ardui DSPS
e 3. DSPS
hield Pow
ield Powered o Power Hea ield powered
ield powered
ield powered o Power Hea ield (Stand­ield powered o Power Hea ield (Stand-
C55
ield Powe
r Multiple
from
er.
from DSP-U
from XDS-U
from DSP-U
er is sourced
lone Mode)
from XDS-U
er is sourced
lone Mode)
5 DSPShield H
Managem
ing
B
B
B.
y
B.
y
DS
SH
(I
SH
(I
SH
(I
SH
(I
W Reference
nt Block D
-USB
5V
PA
PEN
used)
NTED
PUT) (
NTED
PUT) (
NTED
PUT)
NTED
PUT)
anual
iagram
rduino
+5V JPB
UNTED
S
INPUT)
(
OPEN
nused)
OPEN
nused)
UNTED
S
(
UTPUT)
UNTED
S
(
UTPUT)
Arduino
3.3V JPC
OPEN
(Unused)
OPEN
(Unused)
OPEN
(Unused)
HUNTED
(OUTPUT)
HUNTED
(OUTPUT)
Version 0.
XDS-US
+5V JPF
OPEN
(Unused)
OPEN
(Unused)
SHUNTE
(INPUT)
OPEN
(Unused)
SHUNTE
(INPUT)
Tabl
e 2. Input/
utput Pow
WA
valid appli +3.3 inter
NING: Ca
jumper sett
cation. One
pin on the
ally derive
e should b
ngs. Other
example of
Arduino P +3.3V and
er Multiple
taken to pr
ettings ma
an invalid c
wer Header
the externa
In Collab
xing Optio
vent power
be possibl
nfiguratio is being po +3.3V will
ration with
s
.
sourcing c , but must is when JP
ered exter
be in confl
tanford U
nflicts. Tab e evaluated
is shunte
ally by Ar
ct.
iversity
e 2 shows for a specif , and the uino. The
page 5
c
C5535 DSPShield H/W Reference Manual Version 0.1
2.2 Internal Voltages
There are a number of voltages that can be found on the DSPShield. They are derived from various ICs and can be monitored at certain points. Table 3 lists the voltages, test points and the devices/functions powered by the voltages.
Voltage Test Point Source Device/Functions
+5V TP8 External 1. LMR10510X DC-DC Regulator
2. ARD_INTF_VCC
3. ARD_5V (sourcing)
+3.3V TP9 LMR10510X DC-
DC Regulator (VR1)
+1.8V TP5, TP6 Internal AIC3204
LDO
+1.3V TP10 LP3982 LDO (VR2) 1. C5535 CVDDRTC
+1.3V
(C5535)
+1.3V
(C5535)
+1.3V
(C5535)
+1.8V
(FT2232H)
+7.3V Pint 1 of C70 Internal OLED DC-
GND TP11 - 1. Digital Ground
AGND0 TP7 - 1. AIC3204 Analog Ground
Pin 1 of C19
Or TP3
Pin 1 of C45 C5535 USB_LDOO 1. C5535 USB_VDDA1P3
Pin 1 of C53 C5535 ANA_LDOO 1. C5535 VDDA_ANA
Pin 1 of C125 FTDI FT2232H
C5535 DSP_LDOO 1. C5535 CVDD (0 OHM resistor mux
VREGOUT
DC regulator
Table 3. DSPShield Voltages and Grounds
1. C5535 USB_VDDOSC
2. C5535 USB_VDDA3P3
3. C5535 USB_VDDPLL
4. C5535 DVD_DRTC
5. C5535 LDOI
6. C5535 DVDDIO
7. All Muxes
8. SD Card
9. GPIO Expander 2
10. AIC3204 IOVDD
11. ARD_INTF_VCC
12. ARD_3.3V (sourcing)
13. DSP Expansion Header +3.3V
14. Emulator +3.3V
1. AIC3204 AVDD, TP5
2. AIC3204 DVDD, TP6
2. C5535 CVDD (0 OHM resistor mux
selectable)
3. GPAIN CLAMP DIODES
selectable. DEFAULT configuration)
2. C5535 USB_VDD1P3
2. C5535 VDDA_PLL
1. FT2232H VCORE
1. OLED Display
2.3 Voltage Monitoring
The output voltages of the LMR10510X DC-DC (+3.3V) regulator and the LP3982 (+1.3V) LDO regulator are monitored by a TPS386596L33 Quad Reset Supervisory IC.
In Collaboration with Stanford University
page 6
C5535 DSPShield H/W Reference Manual Version 0.1
If either voltage drops below certain thresholds, the TPS65001’s active low open-drain reset output will go low and reset the C5535 DSP and the DSPShield.
2.4 C5535 DSP Core Voltage
The C5535 DSP’s +1.3V Core Voltage, CVDD, can be driven either by its internal LDO or by the LP3982 LDO. The selection is accomplished by populating certain combinations of resistors R25, R26, R27 and R28. The two options are listed in Table 5.
CVDD = C5535 DSP_LDOO (DEFAULT )
CVDD = LP3882 LDO
Table 4. C5535 DSP Core Voltage Selection
R25 = DNI R26 = 0 Ohm Resistor R27 = 0 Ohm 1/8W Resistor R28 = DNI R25 = 10.0K Ohm Resistor R26 = DNI R27 = DNI R28 = 0.0 Ohm 1/8W Resistor
3 C5535 DSP and Internal Peripherals
The C5535 DSP is a high-performance, low-power, fixed-point Digital Signal Processor. It has dual multipliers, dual ALUs, and a tightly coupled FFT hardware accelerator for performing math intensive signal processing algorithms. It has a multiple I/O peripherals that allow it to easily connect to serial Analog to Digital Converters, Digital to Analog Converters and integrated codecs.
3.1 Parallel and Serial Peripherals
The C5535 DSP’s internal External Bus Selection Register (EBSR) determines which of the following: LCD controller, I2S0, I2S1, I2S2, I2S3, UART, SPI, MMC/SD and GPIO signals appear at the chip’s multiplexed GPIO pins. These peripherals can be grouped into 3 groups as shown in Tables 5a, 5b and 5c. For each group, only one mode of operation is available at a given time. Note that the DSPShield architecture further limits the group mode selection.
PP MODE Multiplexed I/O Board Level limitations
Modes 0,2,3,4,5
Mode 1
-
SPI/I2S2/UART/6 GPIO Fully Supported.
In Collaboration with Stanford University
Not Supported
- I2S2 multiplexed between AIC3204 and DSP
Expansion Connector.
- UART multiplexed between Arduino, XDS
Serial Port and DSP Expansion connector.
- SPI multiplexed between Arduino and DSP
page 7
C5535 DSPShield H/W Reference Manual Version 0.1
Expansion connector.
- GPIO[12:15] routed directly to DSP
Expansion connector.
- GPIO16 routed to the DSP Expansion
Connector IF R67 is Installed and R66 is Not Installed (This is not the Default)
- GPIO17 routed to the DSP Expansion
Connector IF R69 is Installed and R68 is Not Installed (This is not the Default)
Mode 6
SPI/I2S2/I2S3/6 GPIO Fully Supported.
- I2S2 multiplexed between AIC3204 and DSP
Expansion Connector.
- I2S3 routed to DSP Expansion Connector
when UART_MUX_SEL=0.
- SPI multiplexed between Arduino and DSP
Expansion connector.
- GPIO[12:15] routed directly to DSP
Expansion connector.
- GPIO16 routed to the DSP Expansion
Connector IF R67 is Installed and R66 is Not Installed (This is not the Default)
- GPIO17 routed to the DSP Expansion
Connector IF R69 is Installed and R68 is Not Installed (This is not the Default)
Table 5a. C5535 PPMODE
SP1
Multiplexed I/O Board Level limitations
MODE
Mode 0,1,2
SD1/I2S1/GPIO[6:11] Fully Supported.
- All signals are routed directly to the DSP
Expansion Connector.
Table 5b. C5535 SP1MODE
SP0
Multiplexed I/O Board Level limitations
MODE
Mode 0 SD0 SD0 signals are dedicated to the SD Card Connector Modes 1, 2
-
Not Supported
Table 5c. C5535 SP0MODE
3.2 Clock Sources
The C5535 DSP has 3 input clock sources: USB_MXI pin, CLKIN pin, and an internal Real Time Clock (RTC). The USB_MXI input is connected to a 12 MHz oscillator and is the clock source for all USB peripheral activity. The CLKIN input is also connected to a 12 MHz oscillator while the RTC is connected to a 32.768 KHz crystal. Either CLKIN or
In Collaboration with Stanford University
page 8
C5535 DSPShield H/W Reference Manual Version 0.1
the RTC can be the reference source for the C5535 DSP’s system clock generator. Resistors R8, R9, R10 and R59 select the source as shown in Table 6. The different clocks within the system clock generator block can be output on the C5535 DSP’s CLKOUT pin and monitored at Test Point TP1.
System Clock Generator
Resistor Select
Reference Source
12MHz External Oscillator (Default)
32.768 RTC R8=0 Ohm, R9=DNI, R10=0 Ohm, R59=DNI
R8=DNI, R9=10K Ohm, R10=DNI, R59=0 Ohm
Table 6. System Clock Generator Reference Source Select
3.3 ROM Bootloader
The C5535 DSP has an on-chip ROM Bootloader (RBL). It samples the following interfaces, in order, looking for a boot signature: SPI EEPROM, I2C EEPROM, MMC/SD0 AND UART/USB. Once a boot signature is detected, the C5535 DSP will download the boot image and then jump to the entry point specified in the image. For the DSPShield, the SD0 peripheral connected to the micro SD Card connector is the default boot source. Figure 4 shows the Bootloader Software Architecture (from the C5535 DSP datasheet). In the case where no boot source is found, the LED_XF will remain lit.
Figure 4. Bootloader Software Architecture
In Collaboration with Stanford University
page 9
C
t
C
u
C
C
C
e
C
S
m
l
i
gur
I
p
N
p
n
a
D
c
r
r
r
h
3
u
u
t
p
n
U
o
b
o
a
e
/
o
P
t
t
a
e
o
h
a
c
t
a
u
6
o
M
S
E
a
A
r
i
d
c
C
a
e
s
n
C
E
w
t
T
-
s
g
,
e
t
n
C
o
e
l
e
O
t
s
1
u
e
3.4
The resis
or.
The outp
The
The
3.5
The that i
s compliant
conn
/INT1, /I
5535 DSP’
5535 DSP’
ts. The out
5535 DSP’
5535 DSP’
USB Co
5535 DSP
ctor, P1, h
C55
T0, XF,
s /INT0 inp
s /INT1 inp
uts of the 2
s XF outpu
s Wakeup
troller
USB contro
with the U
s a micro-
5 DSPShield H
WAKEU
t is routed
t is connec
Expanders
controls th
in can be m
ller allows t
iversal Seri SB form fa
W Reference
o the DSP
ed to the I2
re open-dr
LED, D2.
nitored on
e DSP to c
l Bus Spec
tor.
anual
xpansion
C to GPIO
in and are
logic “1”
Test Point
eate a high
fication ver
onnector. It
xpander I
ire-ORed t
turns on the
P2.
speed USB
ion 2.0. Th
Version 0.
has a pull
s’ /INT
gether.
LED.
slave devic
DSP-USB
p
3.6
The and the Boot mult
Fi
3.7
The com
MMC/S
5535 DSP D1. Interfa icro SD ca oader. Inte
plexed pins
e 5. Micro
I2C
2C periphe
liant with t
x Contr
has two em
e SD0 is c d is the def face SD1 is
MMC1/I2S
SD Card P
al provides
e Philips S
ller
edded Mul nnected to ult boot so routed to th
1/GPIO[11:
eripheral
an interface
miconduct
imedia Car
micro SD
rce for the
DSP Exp ].
between th rs I2C-bus
/Secure Di
ard adapter
5535 DSP’
nsion Conn
DSP and o pecificatio
ital Contro
P2. For th
s on-chip R
ctor as par
ther device
(version 2.
lers, SD0 DSPShield
M
of the
that are
1). The
,
In Collab
ration with
tanford U
iversity
page 10
Loading...
+ 34 hidden pages