|
|
View previous topic :: View next topic |
Author |
Message |
pasini
Joined: 12 Dec 2005 Posts: 50 Location: Curitiba - Brazil
|
USB driver does not load |
Posted: Wed May 31, 2006 5:36 pm |
|
|
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
|
|
Posted: Wed May 31, 2006 5:56 pm |
|
|
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
|
|
Posted: Mon Sep 25, 2006 2:23 pm |
|
|
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
|
|
Posted: Mon Sep 25, 2006 7:12 pm |
|
|
Since the suggestion is only related to firmware, you should try to verify if it works by yourself
But I reply that the change to HSPLL instead of HS, solved my problem.
Good luck
Pasini |
|
|
Felipe Guest
|
|
Posted: Tue Dec 26, 2006 3:06 pm |
|
|
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.
[email protected] |
|
|
|
|
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
|