UCON_USBEN is set in the library. I'm not sure about the other settings or what they should be set to. According to the datasheet UCON_USBEN can only be set high if the clock is correct, so I read this value back and it does get set.
The pull-up resistors should not be needed since there are internal pull-up resistors (UCFG_UPUEN = 1). In your image, you show Vusb,usb port and PIC all going to 3.3v. I think you have to choose either USB power + 3.3v regulator, or just 3.3v external power without usb power connected. USB is still not working for me with various settings I have tried. I am testing the following + usb serial include 18f67j50 -- target PICmicro -- include chip pragma target clock 48_000_000 -- oscillator frequency -- configuration memory settings (fuses) pragma target WDT disabled -- no watchdog pragma target PLLDIV P5 -- divide by 5 - 20MHZ_INPUT pragma target CPUDIV P1 -- no cpu system clock divide pragma target OSC HS_PLL -- HS crystal or resonator pragma target IESO DISABLED pragma target FCMEN DISABLED OSCTUNE_PLLEN = 1 -- set 96mhz pll UCFG_UPUEN = TRUE -- use internal pull up resistors for USB _usec_delay(100_000) Matt. On Sep 28, 8:36 am, Burt Ratliff <[email protected]> wrote: > You have it hooked up like this and if you didn't care post the configure > part of your code > > On Mon, Sep 27, 2010 at 9:51 PM, Burt Ratliff <[email protected]> wrote: > > USBEN: USB Module Enable bit(1) > > 1 = USB module and supporting circuitry enabled (device attached) > > 0 = USB module and supporting circuitry disabled (device detached) > > bit 2 RESUME: Resume Signaling Enable bit > > 1 = Resume signaling activated > > 0 = Resume signaling disabled > > bit 1 SUSPND: Suspend USB bit > > 1 = USB module and supporting circuitry in Power Conserve mode, SIE clock > > inactive > > 0 = USB module and supporting circuitry in normal operation, SIE clock > > clocked at the configured rate > > bit 0 Unimplemented: Read as ‘0’ > > Note 1: This bit cannot be set if the USB module does not have an > > appropriate clock source. > > > On Tue, Sep 28, 2010 at 12:28 AM, mattschinkel > > <[email protected]>wrote: > > >> I can't get USB to work with either internal or external OSC. I get no > >> response from my PC. > > >> VCAP is 10uf, and VUSB goes direct to 3.3v. > > >> Matt. > > >> On Sep 27, 10:46 pm, William <[email protected]> wrote: > >> > Greetings Matt, > > >> > On Sep 27, 8:06 am, mattschinkel <[email protected]> wrote: > > >> > > Can I use Internal Oscillator for USB? What settings can I use? > > >> > I'm concerned that the internal oscillator may not meet the USB specs, > >> > so I'd advise a crystal oscillator if you want to connect to your PC. > > >> > William > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "jallib" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<jallib%[email protected]> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/jallib?hl=en. > > > > v_usb.PNG > 7KViewDownload -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
