MultiUART COM port demo quickstart guide
8/8
configuration via UDP and a host of other features. This product can be accessed
by applying to your XMOS sales representative.
3. Examine the application code. In xTIMEcomposer Studio navigate to the
src
directory under app_sk_muart_com_demo and double click on the main.xc file
within it. The file will open in the central editor window.
4. This code employs three cores. The par{} statement at the bottom of
main.xc
instances the MultiUART by calling it’s server function,
run_multi_uart_rxtx()
.
This is a function which does not return and runs the MultiUART and uses two
cores (one for 8 UART Tx, and another for 8 UART Rx) . It also instances a logical
core running
uart_manager()
. This uart_manager is the demo application code
which displays the help menu, effects the 8 channel loopback and so on.
5. Since only one call is made to
run_multi_uart_rxtx()
in the
par{}
in
main.xc
,
why does it say above that two cores actually used by this component? To see
why, navigate to the
module_multi_uart
in the Project Explorer pane, double-
click to open its contents and then navigate to the
src
directory and open
multi_uart_rxtx.xc
in the editor by double clicking it. Now it is possible to see
the two cores used by the Multi-UART - there is another
par{}
statement which
calls the
run_multi_uart_tx
and
run_multi_uart_rx
server functions causing
them to be executed on separate cores.
Copyright © 2013, All Rights Reserved.
Xmos Ltd. is the owner or licensee of this design, code, or Information (collectively, the “Information”) and
is providing it to you “AS IS” with no warranty of any kind, express or implied and shall have no liability in
relation to its use. Xmos Ltd. makes no representation that the Information, or any particular implementation
thereof, is or will be free from any claims of infringement and again, shall have no liability in relation to any
such claims.
XMOS and the XMOS logo are registered trademarks of Xmos Ltd. in the United Kingdom and other countries,
and may not be used without written permission. All other trademarks are property of their respective owners.
Where those designations appear in this book, and XMOS was aware of a trademark claim, the designations
have been printed with initial capital letters or in all capitals.
REV A