Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Tool/software:
Dear Forum,
I have built a power controller using the TMS320F28P650DK with USB connectivity. The intent is to push data from our device to a host computer using the USB port as a CDC serial port for display in a terminal such as Teraterm.
From a USB perspective, our device is self powered so I have just used D+ and D- (pins D16 and E16 respectively). I am also using a digital isolator to provide galvanic isolation between out power electronics and the port connected to the host PC. This is the first time I've built a system with USB onboard so I tried out the usb_ex1_dev_serial project in C2000WARE as a way to get started. However, this project seems to implement a more complex example on the generic controlcard, pushing data from the USB port in/out the SCIA port to the XDS110 part of the control card. My questions are:-
1) Is there a more simple code example which sets the native TMS320F28P650DK USB peripheral up as a CDC device which I can just push data out from my code to read in a terminal on the PC? A bit like what I do presently using an UART feeding an external UART/USB bridge chip but with USB coming natively from my processor.
2) Learning a bit more about how USB works is interesting. Do I need to monitor the VBUS +5V line from the connecting cable and then get my processor to issue some information over USB when it detects the VBUS is there and therefore the cable is connected? Is there an information source you can point me to which describes the sequence of events which need to occur for successful enumeration on the PC after the USB cable is plugged in (e.g. do I need extra application code on the C2000 or does the sysconfig setup with CDC device specified mean that the USB peripheral on my C2000 manages all of that automatically?)
Thanks,
Iain

