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

CDC Help

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








CDC Help
PostPosted: Sat Nov 28, 2009 3:19 pm     Reply with quote

Code:
#include <18F2550.h>
#define __USB_PIC_PERIF__ 1
    #fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
    #use delay(clock=20000000)

#include <usb_cdc.h>

 
void main()
{
usb_init_cs();
while(true)
{

   usb_task();
   usb_cdc_putc(12);
 

}

The device detected but hyper terminal window is still empty. Anyone can help me...
Ttelmah
Guest







PostPosted: Sat Nov 28, 2009 3:46 pm     Reply with quote

Character 12, is a 'form feed' character, not a visible character.....

Your CPU clock, is _not_ 20MHz.

Best Wishes
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