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

USB driver does not load

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



Joined: 12 Dec 2005
Posts: 50
Location: Curitiba - Brazil

View user's profile Send private message Send e-mail

USB driver does not load
PostPosted: Wed May 31, 2006 5:36 pm     Reply with quote

Hi,
MPLAB 7.10 and CCS 3.325
I have a LOW-VOLTAGE PIC18LF4550 working at 3.3V and 16MHz.
I have a resistor connected to the USB 5V and pin RC6 to be the bus sense, and a 470nF capacitor at VUSB.

The problem is that when I connect the board to the computer USB nothing happens, WindowsXP does not recognize it. I do not hear the Windows beeping when USB device is connected.

I am trying to do a serial COM port to talk to the Hyperterminal, CDC (Communication Device Class) model, with the usbser.sys driver.
I find here at the forum a *.inf file with some descriptions that seams to be correct.

Is there something missing with my hardware ? And with the firmware ?

My code is:

Code:

#include <18F4550.h>
#device *=16
#device ADC=10
//configure a 16MHz crystal to operate at 48MHz
#fuses HS,NOWDT,NOPROTECT,NOLVP,NODEBUG, PLL4
#use delay(clock=16000000)

#include <defines.h>
#include <buzzer.h>
#include <lcd.h>
#include <pc.h>
   
#define __USB_PIC_PERIF__ 1
#define USB_CON_SENSE_PIN PIN_C6

#include <usb_cdc.h>

void main(void)
{   
      setup_psp(PSP_DISABLED);

   usb_init();
   while(!usb_cdc_connected());

   while(1)
    {   
   
      printf(usb_cdc_putc,"Test USB");
      delay_ms(500);

   }
}



Thanks in advance for any help,
Pasini
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed May 31, 2006 5:56 pm     Reply with quote

Quote:
#include <18F4550.h>
#device *=16
#device ADC=10
//configure a 16MHz crystal to operate at 48MHz
#fuses HS,NOWDT,NOPROTECT,NOLVP,NODEBUG, PLL4
#use delay(clock=16000000)

The CCS examples show the fuse as HSPLL, not HS.
Guest








PostPosted: Mon Sep 25, 2006 2:23 pm     Reply with quote

hi.pasini

COULD YOU TELL ME YOUR PROBLEM HAS BEEN SOLVED?
I MEET THE SAME PROBLEM TOO, IS IT POSSIBLE TO SHARE YOUR ANSWER?

Tks.
pasini



Joined: 12 Dec 2005
Posts: 50
Location: Curitiba - Brazil

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 25, 2006 7:12 pm     Reply with quote

Since the suggestion is only related to firmware, you should try to verify if it works by yourself Very Happy
But I reply that the change to HSPLL instead of HS, solved my problem.
Good luck
Pasini
Felipe
Guest







PostPosted: Tue Dec 26, 2006 3:06 pm     Reply with quote

Hi Pasini,

I realized you are from curitiba, so...

Voce poderia me enviar ou me explicar o seu hardware para esse projeto? Porque eu já fiz as correções no firmware e continuo com o mesmo problema: o windows XP não faz nada quando eu plugo o circuito.

felipekitamura@yahoo.com.br
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