background image

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

Содержание MultiUART

Страница 1: ...MultiUART COM port demo quickstart guide REV A Publication Date 2013 11 22 XMOS 2013 All Rights Reserved...

Страница 2: ...Contents 1 MultiUART COM demo quickstart guide 3 1 1 Host computer setup 3 1 2 Hardware setup 3 1 2 1 Set up the MultiUART sliceCARD 4 1 2 2 Setting up the system 5 1 3 Import and build the applicati...

Страница 3: ...has passed through all UARTs 1 through 7 the data is then returned back to the host computer via UART 0 and the DB9 connector This demo also features UART reconfiguration for a sample of standard bau...

Страница 4: ...r of characters accross all 8 uarts by looping them all back Data will be received RX from the host computer on UART 0 pins 0 and 1 of the header on the sliceCARD transmitted through the remaining 7 u...

Страница 5: ...low control The transmit End of Line character should be set to CR other options presented will probably be LF and CR LF 7 Connect the XA SK XTAG2 sliceCARD to the sliceKIT and connect XTAG 2 to the a...

Страница 6: ...on running message in xTIMEcomposer Studio console for all UARTs before proceeding to the next step 3 A user menu will be displayed on terminal client application console 4 Key in e to enter echo mode...

Страница 7: ...connections figure above If the connection to any of the channels is disconnected you will not see data received back and a message is displayed on the terminal console saying that the MultiUART pipe...

Страница 8: ...ect 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...

Отзывы: