PortA reset zero after USBINIT / Service ?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Posts
    13

    Angry PortA reset zero after USBINIT / Service ?

    Hi,

    i wonder why the portA goes zero after the first
    USBService behind an USBINIT ?
    What is the reason ? The C18 works correct. Seems a problem in PicBasic
    USBReset=PortReset ?
    Also if I use LATA.
    If i do a LATA.5=1 every milisecond, i can see that
    the Port goes to ground very often after an usbinit, not only one time.

    After about 1-2 seconds i have the full control again and all works correctly.

    cu
    www.x-sim.de
    freeware simulator software
    with real MS Force Feedback solution

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    There's no problem like that here.. post your code, PIC#, Schematic... all you have on hand.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jun 2006
    Posts
    13

    Default

    Hi mister_e,

    are you from Melab, because u wrote it like u are ?

    Now i can say that this failure only appears if I use composite devices.
    Such as keyboard and mouse. Therefore I modified the the usb18.asm
    a little bit, because melab don't support composite. (reportdescriptor x2)
    The device works good but not the 1-2 seconds after plugin in.
    Seems like it do some reset or overwrites something.

    Have you done something like this before ?

    regards
    sirnoname

    ps. 18f2455, 2550 ...
    www.x-sim.de
    freeware simulator software
    with real MS Force Feedback solution

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Nope i'm not from Melabs. I'm just a long time enthusiast and user

    Interesting problem so far... nope i never tried the composite stuff in my lasts USB projects... but it's sounds interesting. if you want, post it here for the community and experts benefit or in ZIP on my e-mail.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jun 2006
    Posts
    13

    Default

    Done now, some mistake in the asm firmware solved.
    Now i have 1xCDC, 4xHID working at same time in one device.

    Seems the chip dont like twice endpoint resets

    cu
    www.x-sim.de
    freeware simulator software
    with real MS Force Feedback solution

Similar Threads

  1. error worring pbp247
    By chai98a in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th January 2010, 04:51
  2. PortA digita input?
    By MOUNTAIN747 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th January 2009, 21:55
  3. PIC's ports individual bits manipulation - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 27th February 2007, 22:34
  4. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29
  5. Replies: 5
    Last Post: - 1st December 2004, 12:49

Members who have read this thread : 1

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