View previous topic :: View next topic |
Author |
Message |
Guest
|
CDC Help |
Posted: Sat Nov 28, 2009 3:19 pm |
|
|
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
|
|
Posted: Sat Nov 28, 2009 3:46 pm |
|
|
Character 12, is a 'form feed' character, not a visible character.....
Your CPU clock, is _not_ 20MHz.
Best Wishes |
|
|
|
|
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
|