This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000 Launchpad Programming

Other Parts Discussed in Thread: TPL8002-25, CONTROLSUITE

Hello All

This is my first attempt at programming and I am trying to make a laser projector with X and Y Galvo mirrors.

I have been looking over your examples and I have some questions.

1, can I use VB6 or Visual studio to debug and compile my script? Yours says I need a registered copy of CCS v5 to compile a JTAG.

2.  I need 3 ADC-IN,, 1 for Red  1 for blue and 1 for Green,,,  they need to monitor the analog signals from 0.3 Volt to 5.0 Volt, I want to use ADCINA0 and ADCINA1 and ADCINA3,,, then the output would be through the GPIOs to a Digital pot (TPL8002-25) that will adjust the LM1084adj which will control output power to the Lasers.  Will their be enough I/O ports to also have a digital display also?

3. How should the script read?

 

Thanks

Jeff

 

  • Jeff,

    Sounds like a really cool project!  I had actually looked at building one myself a few years back, but never got around to it.  I wish you the best of luck!

    1. No, Visual Studio products cannot be used to compile and program the LaunchPad.  You need a copy of CCS which you can get from here for free.
    2. Yes, that sounds like it ought to work.  One word of CAUTION, the ADC is only designed to convert values between 0V and 3.3V.  Putting 5V on one of the ADC pins may damage it.  You need to use a voltage divider to scale this signal.
    3. Sadly, I don't have the time or enough information about your project to write the code for you.  Take the project one small piece at a time, and get everything working separately first.  Then integrate the pieces together to form your end application.

    You might want to check out C2kCentral!  Its a really good community of hobbyists and experts who can help you with projects like this.  You might even see me over there  ;-)


    Regards,

    Trey

  • Trey German said:

    Jeff,

    Sounds like a really cool project!  I had actually looked at building one myself a few years back, but never got around to it.  I wish you the best of luck!

    1. No, Visual Studio products cannot be used to compile and program the LaunchPad.  You need a copy of CCS which you can get from here for free.
    2. Yes, that sounds like it ought to work.  One word of CAUTION, the ADC is only designed to convert values between 0V and 3.3V.  Putting 5V on one of the ADC pins may damage it.  You need to use a voltage divider to scale this signal.
    3. Sadly, I don't have the time or enough information about your project to write the code for you.  Take the project one small piece at a time, and get everything working separately first.  Then integrate the pieces together to form your end application.

    You might want to check out C2kCentral!  Its a really good community of hobbyists and experts who can help you with projects like this.  You might even see me over there  ;-)


    Regards,

    Trey

     

    Trey Thanks for the Great insight I will check out C2KCentral.

    I should have been more clear on my third question.. I want to be able to say I wrote the script,,, and if you did it for me then I wouldn't be able to do that,,, so all I was looking for was a short example.

    Something like

    ADCINA0 0.1 volt = GPIO0 = 0 /GPIO1 = 0 /GPIO2 = 0 /GPIO3 = 0 /GPIO4 = 0 /GPIO 5= 0

    ADCINA0 0.2 ,,,,,, Ect and So on

    I don't know what the command code is to monitor the ADCIN or I would have added it in. (as you see I have a lot to learn.)

    I have a copy of CCS v5 but it won't let me run the debugger it says something like I need a registered copy to compile a JTAG,,,, But I was just trying one of the example scripts.  you know getting familiar with the order of operations. 

    Thanks again Trey hope to see you at C2KCentral

    Jeff

  • Jeff,

    Check out controlSUITE.  Its our software package that contains examples and driver code.  Once its installed you can use resource explorer(from within CCS) to import build and debug your projects.  There are also some videos on the wiki that explain how to get setup.  If you've followed the steps in the videos, CCS should work for you.  I suspect maybe the drivers didn't get installed correctly for the debugger.  Can you check in Device Manager and see if there is an entry for the XDS100 emulator?


    Trey

  • I looked through all the entry's in Device Manager and the only entry's that are even close are

    1. Blackhawk 560 emulator and thats under non plug and play drivers.

    2. TI's OHCI compliant IEEE 1934 host controller

    But no XDS100 emulator

    it won't let me up date the drivers so I guess I have to uninstall and reinstall the program, Yes ,,, No.. Maybe?¿

    Thanks Jeff

  • No don't uninstall CCS.  What does Windows do when you plug in the LaunchPad?  Does it try to find drivers?  When you first plugged in your LaunchPad, did the lights start flashing?

    Trey

  •  It does not look for drivers and the led's light up and the 4 in frunt blink kinda like Kit from Night Rider,,,,, (Dip switches are all up)

     then if I change the dip switch to down down up then just the red and green light up and the two outer blue led's light and the back blue flickers

    Wait a minute it is lighting up the like this

    LED 1 on Led 2 off Led 3 on and led 4 on

    then Led 1 &2 on and 3&4 off

    then Led 1 on led 2 on Led 3 off and Led 4 on and off

    Then it repeats.

    and then 1 on 2 off 3 on 4 off then 1 is on and 2 stays off and it switches between 3&4

  • Can you open up device manager and look at the "Universal Serial Bus Controllers" entry?  Do so with the LaunchPad unplugged and examine the entries (just to get a baseline).  Then plug in the LaunchPad and go to Action -> Scan For Changes.  Again, look at the Universal Serial Bus Controllers entry.  Are there any new items in there?  If so, what are they listed as?  Also look under "Ports (COM & LPT)" as it may show up in there as well.

    Is this a 32 bit or 64 bit machine?

  • After the hardware Scan Under Universal Serial Bus Controllers I found TI XDS100 channel A,, and TI XDS100 channel B 

    Under Ports USB Serial port (COM6),,, Only after the hardware scan

    I am running XPSP3 32

  • Perfect!  That means the drivers are installed correctly.  You should be able to use CCS.  Can you post a screen shot of the error message you're getting?

    Trey

  • I want to say Thanks for all the help Trey.

    when I unplug the USB to the C2K, (when I am not working with it) and plug it back in later, I have to scan for new hardware or it doesn't see it.

    as for the error message as soon as it happens again I will. 

    I am hoping it has something to do with the manual discovery of the USB device.  

    Its all Good though. I am getting some where now.

    Thanks.

  • Jeff,

    Hrmmm that's really odd..can't say I've ever heard of a problem like that.  I'd suspect something with Windows, but its hard to say for certain.

    Glad to hear you are making progress!

    Trey