View previous topic :: View next topic |
Author |
Message |
asif
Joined: 10 Apr 2014 Posts: 2
|
USB PIC18F2550 with Labview |
Posted: Thu Apr 10, 2014 11:08 am |
|
|
Dear Respected All.
I am new on this forum and this is my first post hopefully you all not disappoint me I need some help about a CCS code. I have PIC18F2550 and I want to run with Labview with USB. I run already made codes download from web sites on my hardware and Labview with no problem. Now I want a code which control PIC18F2550 port b with Labview. I want to control 8 LED's with Labview individually with Labview buttons. Hopefully you all understand my request.
Thanks in advance. _________________ Best Regards.
Asif Ehsan |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Thu Apr 10, 2014 3:50 pm |
|
|
Hi,
Are you using the CCS compiler? If so, a simple modification to "ex_usb_cdc.c" will do what you want!
John |
|
|
asif
Joined: 10 Apr 2014 Posts: 2
|
USB PIC18F2550 with Labview |
Posted: Thu Apr 10, 2014 10:01 pm |
|
|
Dear ezflyr.
Thanks for reply, Please upload a complete CCS compiler code for controlling PIC18F2550 port b (8 LED's individually) with buttons.
I want interface this code with Labview via USB (VISA).
Thanks
I am waiting please help me. _________________ Best Regards.
Asif Ehsan |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9291 Location: Greensville,Ontario
|
|
Posted: Fri Apr 11, 2014 5:18 am |
|
|
Everyone here is more than willing to _help_ you debug YOUR code, but not just give you 'working code'. Frankly you will not learn a thing unless you cut code. 'Silly' things like a missing ; or an extra { are great educators!
Ezflyr told you the CCS supplied example is the place to start, so really you should compile/burn/test and see how it works.
Before that I suggest getting a '1Hz flashing LED' program to run on your PIC. That way you can verify your hardware is correct, the PIC is operational, timing OK, etc.
Getting USB to run on a PIC is fairly simple BUT you must ensure the PC side works ! Something we here cannot do. I can confirm that the example does work on my PC using a 4550 so it will work with the 2550.
Be sure to read the comments in the examples and while the project is open, pressing F11 opens the CCS manual for instant 'onscreen' help !
hth
jay |
|
|
|