VINCULUM-II IO_Mux Configuration Utility User Guide

Future Technology Devices International Ltd.
Application Note AN_144
VINCULUM-II IO_Mux Configuration
Utility User Guide
Document Reference No.: FT_000280
Version 1.0
Issue Date: 2010-05-11
This application note is a User guide illustrating the use of the Vinculum-II IOMux
Configuration Utility.
Future Technology Devices International Limited (FTDI)
Unit 1,2 Seaward Place, Glasgow G41 1HH, United Kingdom
Tel.: +44 (0) 141 429 2777 Fax: + 44 (0) 141 429 2758
E-Mail (Support): [email protected] Web: http://www.ftdichip.com
Copyright © 2010 Future Technology Devices International Limited
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
Table of Contents
1
2
Introduction............................................................................................ 2
1.1
Launching Application ........................................................................................ 2
1.2
Configuring Pins.................................................................................................. 2
1.3
Using Templates .................................................................................................. 3
1.4
Generating Code.................................................................................................. 3
Contact Information............................................................................... 6
Appendix A - References ............................................................................ 8
Appendix B - Revision History.................................................................... 9
Revision Record Sheet .............................................................................. 10
Copyright © 2010 Future Technology Devices International Limited
1
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
1
Introduction
VNC2 comes with a variety of peripheral interfaces including UART, SPI and FIFO. The IC is available in
32-pin, 48-pin or 64-pin packages. Each of the periperal interfaces on the chip can be routed for all the
available package types. Routing of interfaces on VNC2 is achieved through the use of an I/O Multiplexer
(IOMux). The IOMux provides a simple interface to route signals to their required pins.
To aid with routing signals using the IOMux interface FTDI provide an IOMux Configuration Utility. The
utility provides a visual representation of all of the available package types and allows for available
signals to be routed on individual pins. The utility will generate C code that can be cut and paste into the
designer’s application.
1.1 Launching Application
The IOMux utility comes as part of the VNC2 toolchain installation. The application is installed, along with
the IDE, in the start menu shortcut for the toolchain under FTDI/Vinculum II Toolchain. To launch the
application click on the Vinculum II IOMux Configuration Utility icon. Figure 1 shows the main screen
after launching the application.
Figure 1 - Screen Overview
1.2 Configuring Pins
Each VNC2 package has a default pin state following a hard reset. Rolling the mouse over individual pins
within the utility will change the pin information in the top right hand corner of the screen to reflect the
default signal currently routed to each pin. Signals that cannot be re-routed (GND, VCC, Prog etc) are
displayed in dark grey, configurable pins will highlight red upon mouse over.
Individual signals have different attributes regarding the flow of data through them. For example, the
UART transmit signal (UART TXD) only allows data to flow as an output signal whereas the UART receive
Copyright © 2010 Future Technology Devices International Limited
2
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
signal (UART RXD) only allows data to flow as an input signal. Certain signals allow for data to be
transferred in both directions. An example of this would be the GPIO signals.
To configure a routable pin: left-click on the desired pin; select whether this should be an input, output or
bi-directional signal; finally, choose the required signal from the available list. Pins that are no longer
routed to their default signal will turn Green. To return a pin to its default signal, left-click the pin and
select Restore Default from the menu.
Figure 2 - Pin Configuration
1.3 Using Templates
It is possible to save IOMux configurations in xml template form, allowing for configurations to be altered
at a later date. To save a configuration in template form, select Save Template from the Template
Options section and enter the desired template name within the save dialog box. Previous templates can
be loaded into the utility by selecting Load Template, again from the Template Options section. To
completely clear all re-routed signals from the current template on all package types click Restore
Defaults which will return all pins to their default signal state.
1.4 Generating Code
The utility will generate C code that can be cut and pasted into the designer’s application. Code can be
generated for all or only one of the available package types. The Code Generation Options section
contains a list of packages that the application will generate code for.
Currently the application generates C code in a separate .c file as shown in Figure 3. To use the code
within an application copy the SetupIOMUX() function and paste this into the C file containing the main
function within the application. To configure the IOMux, call the SetupIOMUX function from the main
function within the application. Figure 4 shows the SetupIOMUX function being called from the main line
of the application.
Copyright © 2010 Future Technology Devices International Limited
3
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
Figure 3 - Generated Code
Copyright © 2010 Future Technology Devices International Limited
4
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
Figure 4 - Calling SetupIOMUX from Main
Copyright © 2010 Future Technology Devices International Limited
5
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
2
Contact Information
Head Office – Glasgow, UK
Future Technology Devices International Limited
Unit 1,2 Seaward Place, Centurion Business Park
Glasgow G41 1HH
United Kingdom
Tel: +44 (0) 141 429 2777
Fax: +44 (0) 141 429 2758
E-mail (Sales) [email protected]
E-mail (Support) [email protected]
E-mail (General Enquiries) [email protected]
Web Site URL http://www.ftdichip.com
Web Shop URL http://www.ftdichip.com
Branch Office – Taipei, Taiwan
Future Technology Devices International Limited (Taiwan)
2F, No. 516, Sec. 1, NeiHu Road
Taipei 114
Taiwan , R.O.C.
Tel: +886 (0) 2 8791 3570
Fax: +886 (0) 2 8791 3576
E-mail (Sales)
[email protected]
E-mail (Support)
[email protected]
E-mail (General Enquiries) [email protected]
Web Site URL
http://www.ftdichip.com
Branch Office – Hillsboro, Oregon, USA
Future Technology Devices International Limited (USA)
7235 NW Evergreen Parkway, Suite 600
Hillsboro, OR 97123-5803
USA
Tel: +1 (503) 547 0988
Fax: +1 (503) 547 0987
E-Mail (Sales)
[email protected]
E-Mail (Support) [email protected]
Web Site URL
http://www.ftdichip.com
Branch Office – Shanghai, China
Future Technology Devices International Limited (China)
Room 408, 317 Xianxia Road,
Shanghai, 200051
China
Tel: +86 21 62351596
Fax: +86 21 62351595
E-mail (Sales)
[email protected]
E-mail (Support) [email protected]
E-mail (General Enquiries) [email protected]
Web Site URL
http://www.ftdichip.com
Copyright © 2010 Future Technology Devices International Limited
6
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
Distributor and Sales Representatives
Please visit the Sales Network page of the FTDI Web site for the contact details of our distributor(s) and
sales representative(s) in your country.
Vinculum is part of Future Technology Devices International Ltd. Neither the whole nor any part of the information contained in, or the
product described in this manual, may be adapted or reproduced in any material or electronic form without the prior written consent of
the copyright holder. This product and its documentation are supplied on an as-is basis and no warranty as to their suitability for any
particular purpose is either made or implied. Future Technology Devices International Ltd will not accept any claim for damages
howsoever arising as a result of use or failure of this product. Your statutory rights are not affected. This product or any variant of it is
not intended for use in any medical appliance, device or system in which the failure of the product might reasonably be expected to
result in personal injury. This document provides preliminary information that may be subject to change without notice. No freedom to
use patents or other intellectual property rights is implied by the publication of this document. Future Technology Devices International
Ltd, Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow G41 1HH United Kingdom. Scotland Registered Number: SC136640
Copyright © 2010 Future Technology Devices International Limited
7
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
Appendix A - References
AN_139 - Vinculum-II IO Mux Explained
Vinculum II Data Sheet - Vinculum-II Embedded Dual USB Host Controller IC Data Sheet
Copyright © 2010 Future Technology Devices International Limited
8
Document Reference No.: FT_000280
Vinculum-II IO_Mux Configuration Utility User Guide
Application Note AN_144 Version 1.0
Clearance No.: FTDI# 157
Appendix B - Revision History
Revision History
Version 1.00
Initial Release
Copyright © 2010 Future Technology Devices International Limited
11th May, 2010
9