CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB PIC18F2550 with Labview

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
asif



Joined: 10 Apr 2014
Posts: 2

View user's profile Send private message

USB PIC18F2550 with Labview
PostPosted: Thu Apr 10, 2014 11:08 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Apr 10, 2014 3:50 pm     Reply with quote

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

View user's profile Send private message

USB PIC18F2550 with Labview
PostPosted: Thu Apr 10, 2014 10:01 pm     Reply with quote

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: 9164
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 11, 2014 5:18 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group