C2000 to PC Interface - Page 1
Forum section: electronics / projects

author: alex.m
author_rank: Contributor
timestamp: June 29, 2015, 02:51:02 pm
content: Hello everyone,In a project I am working on I need to interface a Texas instruments Delfino C2000 microcontroller to a PC running a LabVIEW application. The link should be bi-directional. The required data rate of the uplink (C2000 to PC) is around 15 to 20 Mbits. The required data rate of the downlink (PC to C2000) is a lot lower, I just need to send some configuration data, and should be around 20 kbits.I am looking for a solution that minimizes development time. This solution does not need to be ready for production and can be only viable in a prototyping phase. This includes available test equipment that can be connected to the microcontroller and enables the communication via LabVIEW.I would be very grateful for any feedback.Thank you.

author: jeroen79
author_rank: Frequent Contributor
timestamp: June 29, 2015, 04:45:36 pm
content: A USB 3.0 to serial adapter?Or an ethernet interface?

author: xenocide702
author_rank: Contributor
timestamp: June 29, 2015, 05:36:04 pm
content: What's wrong with the on chip USB in the C2000? USB 2.0 is good for 480 mb/s in high speed mode, am I missing something? Are you just looking to avoid writing more firmware on the C2000? You'll have to shift the payload out of that chip somehow, may as well use USB.

author: Galenbo
author_rank: Super Contributor
timestamp: June 29, 2015, 07:42:28 pm
content: Quote from: alex.m on June 29, 2015, 02:51:02 pmMost of all communication is bi-directional.Define or choose: Who is master, who is slave, who is server, who is client.Labview has inbuilt examples about communication, Uart-over-whatever and ethernet works fine.I only had a lot of trouble with the communication done by their Omron PLC virtualisation.

author: alex.m
author_rank: Contributor
timestamp: June 29, 2015, 08:47:32 pm
content: Thanks everyone for the replies.PC – Master ; C2000 device – Slave.The currently selected model of the C2000 for this application does not have USB included, but I can certainly change to a model that has it.My main goal is trying to save development time. I don’t want to spend time developing USB code for the C2000 and later in the development change to any other communication protocol.I was trying to cheat and use a serial-to-something module, such as a NE-4100 Series Serial-to-Ethernet module from Moxa . I check both Moxa and WizNet for Serial-to-Ethernet modules. However, none of them has, as far as I know, modules that supports this datarate.I then searched for National Instruments hardware, such as the NI USB-8452 - I2C and SPI Interface . Probably too expensive for the application but certainly something cool to keep in the lab.Just trying to find a high data rate (~20 Mbps) transparent link to connect any device to the PC easily for speed up development in the prototyping phase. But maybe the easier way is indeed using a C2000 with USB and write some code.Thankshttp://store.moxa.com/a/product/ne-4100-series?id=M20090312655http://sine.ni.com/nips/cds/view/p/lang/en/nid/210256

author: funkathustra
author_rank: Regular Contributor
timestamp: June 30, 2015, 06:33:45 am
content: TI's USB stack is out of the question since the C2000 only supports USB 2.0 FS (as opposed to HS), so you're limited to 12 Mbps.Unfortunately, I don't see how you'd do any better than that. UART? No way. Even if you're running this thing at 150 MHz, the fastest you can get out of the UART is LSPCLK/16 = 9.375 Mbps using the SCI. The high-speed UART (M3) can get you to 12.5 Mbps, but you're still not close to the 20 you're looking for.The I/O speed limitations on the device are 20 MHz, so theoretically, you could run an SPI bus at that rate -- but with all the overhead introduced, I doubt you'd be able to stream data anywhere close to 20 Mbps.I don't mean to be critical, but having never touched a C2000 before, I was able to spend 30 seconds googling around to produce this information for you. Why did you select the C2000 for the application in the first place? I think it's just going to give you a headache.Look at the Cypress USB 2.0 / 3.0 MCUs out there, or one of the ARM MCUs with USB 2.0 HS (I love the Freescale Kinetis stuff, and I think some of their higher-end MCUs have HS USB 2.0 built-in).

author: alex.m
author_rank: Contributor
timestamp: June 30, 2015, 11:38:31 am
content: Thanks funkathustra.Quote from: funkathustra on June 30, 2015, 06:33:45 amI will have another system that will run a C2000. I was trying to use the same development environment.Quote from: funkathustra on June 30, 2015, 06:33:45 amThe EZ-USB FX3 SuperSpeed USB 3.0 peripheral controller looks really fit for the application  . I will start with their Explorer Kit . Thank for the tip.Best regards.http://www.cypress.com/fx3/http://www.cypress.com/?rID=99916