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 CCS Technical Support

minimal part usb 18f4550

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



Joined: 04 Mar 2007
Posts: 1

View user's profile Send private message

minimal part usb 18f4550
PostPosted: Sun Mar 04, 2007 10:23 am     Reply with quote

Hi! I looking for a sample project in ccs i want to use 20MHz xtail, 18f4550...
and i want only switch a led from a win.aplication i have Delphi for it...

thanx chipchup
NicolasC



Joined: 14 Sep 2006
Posts: 27

View user's profile Send private message

PostPosted: Sun Mar 04, 2007 3:21 pm     Reply with quote

Use ex_usb_serial example. Put your code :
Code:
 if (usb_cdc_kbhit()) {
     c=usb_cdc_getc();
      ...here...
      ... if ( c == 'O')....
      ...to turn led on.


With Delphi, open the emulated COM and send the char you choosed to turn the led on.
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