USB 18F2550 Problem


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Like I say, once a newbie always a newbie.

    Robert,
    Your suggestion made me go back and look at the configs.
    Here is my new set. That part that fixed it is in red. No other changes were made.
    Thank you!!
    Code:
    @ __CONFIG   _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    @ __CONFIG   _CONFIG1H, _FOSC_HSPLL_HS_1H
    @ __CONFIG   _CONFIG2H, _WDT_OFF_2H & _WDTPS_512_2H  
    @ __CONFIG   _CONFIG2L, _PWRT_ON_2L & _VREGEN_ON_2L   
    @ __CONFIG   _CONFIG3H, _PBADEN_OFF_3H & _MCLRE_OFF_3H  
    @ __CONFIG   _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default

    Quote Originally Posted by mackrackit View Post
    Like I say, once a newbie always a newbie.
    I'm the newbie here . I still have to learn a lot from you guys .

    Did you fix the problem by disabling the internal regulator and by feeding 3.3V to VUSB? Did that fix the problems?

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    The problem was fixed by adding this to the configs
    _XINST_OFF_4L
    And I made sure the internal regulator is on to feed the internal USB pullups.

    Power wise I am running the chip at 3.3 so the only thing I have connected to VUSB is the capacitor to VSS.

    Now I do have some more reading to do as there is mention in the data sheet about VDD has to be higher than VUSB.
    But it is working for now. Long term ????

    Newbies---- IMHO Compared to two or three here we all are some newbie. But we can learn from anyone if we care to listen.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default

    Well, I have a different setup. I disabled the internal regulator and fed 3.3V directly to VUSB. I assume the internal pullup resistors are enabled because my setup works fine. Otherwise, if they were disabled the USB interface wouldn't work because I believe the pullups are a requirement for USB.

    I think the internal regulator function is to convert Vcc=5V to 3.3V which is necessary by the USB module. But, since you already have the 3.3V, then why the need to use the internal regulator?


    Quote Originally Posted by mackrackit View Post
    Now I do have some more reading to do as there is mention in the data sheet about VDD has to be higher than VUSB.
    But it is working for now. Long term ????
    I have been through that pain already . Take a look at post# 4 in the following link.

    http://www.microchip.com/forums/tm.a...&high=rsocor01

    Please, let me know if you find out something else about this whole thing.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts