Page 1 of 1

Sending data from PC to startKIT during runtime

Posted: Sat Mar 12, 2016 3:40 pm
by dsdanielko
Hello,

I would like to make an application that outputs a clock signal through one of the ports of the startKIT. The frequency and phase and various other properties should be determined by data sent from the computer the startKIT is connected to. I would like to be able to send this data during runtime so I can change these properties on the fly. What ways are there for doing this?

The data can be in several forms but I am currently thinking of reading a text file on the computer as that is the medium that is most convenient for me (currently I am hardcoding data into the program before compiling).

Once this works I would like to scale this upto around 40 startKITs all connected to one computer and receiving different data at the same time.

I am new to embedded programming so please bear with me.

Thanks

Re: Sending data from PC to startKIT during runtime

Posted: Sun Mar 13, 2016 10:03 pm
by Ross
Have you seen the xscope app notes here: https://www.xmos.com/support/appnotes ?

Re: Sending data from PC to startKIT during runtime

Posted: Mon Mar 14, 2016 11:07 am
by dsdanielko
Would that allow me to send data from the computer to be put into a variable in the program on the startKIT? Sorry if this is a dumb question. Its just I thought xScope was literally just an oscilloscope

Re: Sending data from PC to startKIT during runtime

Posted: Mon Mar 14, 2016 1:41 pm
by mon2
Yes, xSCope allows for bidirectional communications with your host PC and the target sTartKit.

Review the following application note posted on the landing webpage referenced above by Ross:

AN00152: xSCOPE - Bi-Directional Endpoint

This application note shows how to create a simple example which uses the XMOS xSCOPE application trace system to provide bi-directional communication with a custom application running on a host machine.

Re: Sending data from PC to startKIT during runtime

Posted: Mon Mar 14, 2016 4:35 pm
by dsdanielko
Thanks! It would be good to be able to choose two answers but I do not think I can.