TMS320C642x Pin Multiplexing Utility

Application Report
SPRAAN2 – July 2007
TMS320C642x Pin Multiplexing Utility
Bernard Thompson ...........................................................................................................................
ABSTRACT
The C642x devices use a great deal of internal pin multiplexing to allow the most
functionality in the smallest and lowest cost package. The software accompanying this
application report allows the pin multiplexing registers of the device to be calculated
with ease, as well as showing what peripherals can be used together and what devices
of the C642x family support the peripherals that are selected. This software is useful to
anyone creating a system with a C642x device.
This application report contains project code that can be downloaded from this link:
http://www-s.ti.com/sc/techlit/spraan2.zip
1
2
3
4
5
Contents
System Requirements .............................................................................
Using the C642x Pin Multiplexing Utility .........................................................
Example Pin Multiplexing Configurations ........................................................
Creating the VoIP Gateway Configuration ......................................................
References ..........................................................................................
1
1
2
4
6
List of Figures
1
2
3
4
5
1
VoIP Gateway Configuration ......................................................................
Network Audio Interface Configuration ..........................................................
Blank C642x Pin Multiplexing Utility With Tool Tip .............................................
Selecting PCI and Serial Ports....................................................................
Selecting Memory and Data Storage ............................................................
2
3
4
5
6
System Requirements
The C642x pin multiplexing utility was designed and tested on a Windows® XP operating system, however
due to the relative simplicity of the utility it can function in other versions of Windows as well. This utility
requires the Microsoft™ .net framework version 2.0; this can be downloaded from Microsoft at
http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx. It is suggested to use this utility with a
screen resolution of 1024×768 or higher.
2
Using the C642x Pin Multiplexing Utility
This utility is a stand alone executable, there is no installation process required. Once you have opened
the utility there is a user interface with various sections covering the multiplexed peripherals of the C642x
devices. Simply select the peripherals necessary to your application. Note that as some peripherals share
pins, when selecting one peripheral you may disable another. This way you can determine how many
different combinations of peripherals are possible on the C642x devices. As the peripherals are selected,
the utility dynamically updates which C642x family devices have selected the peripherals and the
appropriate PINMUX register values.
SPRAAN2 – July 2007
Submit Documentation Feedback
TMS320C642x Pin Multiplexing Utility
1
www.ti.com
Example Pin Multiplexing Configurations
Once the selections have been entered, the PINMUX register values are used in the application code to
properly configure the device; all the peripherals that were selected are enabled. If the PINMUX register
writes are to be done in the C environment then use the register level chip select library (CSL) provided in
the peripheral support package. The code would be as shown below:
sysCtlRegs->PINMUX0 = 0x12345678 //where 0x12345678 is the PINMUX0 value generated
sysCtlRegs->PINMUX1 = 0x12345678 //where 0x12345678 is the PINMUX1 value generated
3
Example Pin Multiplexing Configurations
This utility also includes two example application configurations which provide a set of selected
peripherals for a particular application. These can be selected by simply clicking on one of the buttons in
the example application configurations box. Once an example configuration has been selected it can be
modified to suit the needs of a specific application.
3.1
VoIP Gateway
The voice over IP (VoIP) Gateway example configuration provides a peripheral component interconnect
(PCI) interface for integration into larger systems, which makes this a good application example for the
C6424. In addition to the PCI, both multichannel buffered serial ports (McBSP) are fully enabled to provide
flexible interfaces for audio; alternatively the multichannel audio serial port (McASP) could be used. A
screen capture of the VoIP Gateway configuration can be found in Figure 1.
Figure 1. VoIP Gateway Configuration
2
TMS320C642x Pin Multiplexing Utility
SPRAAN2 – July 2007
Submit Documentation Feedback
www.ti.com
Example Pin Multiplexing Configurations
3.2
Network Audio Interface
The network audio interface example configuration provides full McASP functionality as well as a reduced
media independent interface (RMII) network interface for use in applications such as a network audio
player or network driven speakers. This makes a good application example for the C6421 as it would not
typically require the additional features included in the C6424, such as PCI. A screen capture of the
network audio interface configuration can be found in Figure 2.
Figure 2. Network Audio Interface Configuration
SPRAAN2 – July 2007
Submit Documentation Feedback
TMS320C642x Pin Multiplexing Utility
3
www.ti.com
Creating the VoIP Gateway Configuration
4
Creating the VoIP Gateway Configuration
This section discusses the creation of the VoIP Gateway configuration in a step-by-step process starting
from a blank utility shown below; this is what is seen when the utility is first started. At any time while
using the utility you can determine the peripheral level multiplexing by holding the mouse over a check
box; this brings up a tool tip as shown in Figure 3.
Figure 3. Blank C642x Pin Multiplexing Utility With Tool Tip
4
TMS320C642x Pin Multiplexing Utility
SPRAAN2 – July 2007
Submit Documentation Feedback
www.ti.com
Creating the VoIP Gateway Configuration
4.1
Selecting the Communication Peripherals
As this configuration is acting as a large scale VoIP gateway application, you can first enable the PCI
which limits you to the C6424 device. The PCI interface allows several DSPs to be controlled by a host
processor, such that a high throughput of VoIP traffic can be handled. You can also select both McBSP0
and McBSP1 for full service complete with CLKS signals for easy interfacing to external hardware which
can implement the analog phone interfaces. Note that selecting the McBSPs disables the McASP due to
the multiplexing. Additionally, you can select the two universal asynchronous receiver/transmitter (UART)
ports to provide low speed communication on the board. This part of the selection process can be seen in
Figure 4.
Figure 4. Selecting PCI and Serial Ports
SPRAAN2 – July 2007
Submit Documentation Feedback
TMS320C642x Pin Multiplexing Utility
5
www.ti.com
References
4.2
Selecting the Memory and Data Storage Peripherals
Now that the communications interfaces are selected you can select the memory settings. In this case,
since PCI has been chosen, the memory interface is limited to NAND flash only operation. Here you can
also select all of the available chip select (CS) lines as they are not multiplexed with the peripherals that
are already in use as can be seen in Figure 5.
Figure 5. Selecting Memory and Data Storage
With the completion of the memory and data storage section, the configuration now fully resembles the
built in VoIP Gateway example application configuration. From here, you can adjust any of the selections
to better suit a particular application such as selecting pulse width modulation (PWM) or clock outputs or
deselecting unnecessary peripherals.
5
References
•
•
6
TMS320C6424 Fixed-Point Digital Signal Processor Data Manual (SPRS347)
TMS320C6421 Fixed-Point Digital Signal Processor Data Manual (SPRS346)
TMS320C642x Pin Multiplexing Utility
SPRAAN2 – July 2007
Submit Documentation Feedback
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements,
improvements, and other changes to its products and services at any time and to discontinue any product or service without notice.
Customers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s
standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this
warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily
performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and
applications using TI components. To minimize the risks associated with customer products and applications, customers should
provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask
work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services
are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such
products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under
the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is
accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an
unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Information of third parties
may be subject to additional restrictions.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service
voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business
practice. TI is not responsible or liable for any such statements.
TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would
reasonably be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement
specifically governing such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications
of their applications, and acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related
requirements concerning their products and any use of TI products in such safety-critical applications, notwithstanding any
applications-related information or support that may be provided by TI. Further, Buyers must fully indemnify TI and its
representatives against any damages arising out of the use of TI products in such safety-critical applications.
TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are
specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military
specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is
solely at the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in
connection with such use.
TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products
are designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any
non-designated products in automotive applications, TI will not be responsible for any failure to meet such requirements.
Following are URLs where you can obtain information on other Texas Instruments products and application solutions:
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
Wireless
www.ti.com/lpw
Video & Imaging
www.ti.com/video
Wireless
www.ti.com/wireless
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2007, Texas Instruments Incorporated