Using xScope with Ports Topic is solved

If you have a simple question and just want an answer.
User avatar
Freykin
New User
Posts: 3
Joined: Fri Feb 26, 2016 11:39 pm

Using xScope with Ports

Post by Freykin »

I'm learning how to use xScope, and have a question regarding real time probes and ports. Is it possible to monitor a port directly with xScope while the application is running? For example, we have several ports that we monitor while testing with an oscilloscope directly on the board, and it'd be nice to have that showing in xScope instead.

I've tried reading through the xTimeComposer User Guide section on xScope, and from what I can tell I'm not able to monitor a port directly with xScope; instead, I can monitor the output from the port when we pull that data in, for example:

Code: Select all

int sample;
port myPort;
myPort :> sample;
xscope_uint (0, sample );
Is there a way to do something like this instead:

Code: Select all

port myPort;
xscope_port(0, myPort);
so that the port is directly being monitored in realtime?
View Solution
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am

Post by mon2 »

peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

Unfortunately it is not possible to directly connect a port to xSCOPE. You have to sample the data from the port and send it to xSCOPE as you are doing in your first code sample.

It is worth noting that if you have a free core on the relevant tile then you could dedicate that core to performing this task if you want to ensure all data received on the port is read.

However, it is worth noting that the xSCOPE data is lossy, if you send too much data it will simply be dropped so as not to block the application. This guarantees that the application performs real-time whether xSCOPE is used or not. xSCOPE is lossy, but it will inform you if it drops any data, so you will know whether you have received all data.
User avatar
Freykin
New User
Posts: 3
Joined: Fri Feb 26, 2016 11:39 pm

Post by Freykin »

Thank you mon2, those links were helpful; I had seen the last link, but not the two before it.

Peter, thanks for the response, and that's good to know that I can potentially use a free core for this.