easyHID question


Closed Thread
Results 1 to 40 of 49

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    220nF is the value recommended in the datasheet.
    17.2.2.8 Internal Regulator

    The PIC18FX455/X550 devices have a built-in 3.3V regulator
    to provide power to the internal transceiver and
    provide a source for the internal/external pull-ups. An
    external 220 nF (±20%) capacitor is required for stability.
    The 22 ohms should be fine. I've just never seen them before. Your reference to the SN65220 helped with that problem.

    Ok on the +5V.
    I prefer to detect the plugged status in a USB interrupt, because it tells you when it's communicating with the computer. The way you have it, it only detects if it's plugged into a port or hub. But that's not going to help the problem at this point.

    There are several things that can go wrong here, we'll just have to work through it.

    You mentioned before ...
    > The programmer configuration is: ...

    Are you setting the config's manually in the programmer's software?
    If so, is the VREGEN bit enabled? (Turns on the 3.3v regulator)

    I assume you've blinked an LED somewhere to verify the oscillator is running at the correct speed.
    On these chips, if the main oscillator isn't working, it can switch over to the internal oscillator at a different freq.
    DT

  2. #2

    Default

    Quote Originally Posted by Darrel Taylor View Post
    ok, back again....
    220nF is the value recommended in the datasheet.
    changed the Vusb=100nF to 200nF (added another 100nF), but this did not change anything, no ding-dong sound. Ok one small change, before there was a pop-up window telling that the USB port is not usable. That pop-up window does not come anymore, but the port still dies after the second connection and the PC needs a reboot to come alive again.

    The 22 ohms should be fine. I've just never seen them before. Your reference to the SN65220 helped with that problem.

    Ok on the +5V.
    I prefer to detect the plugged status in a USB interrupt, because it tells you when it's communicating with the computer. The way you have it, it only detects if it's plugged into a port or hub. But that's not going to help the problem at this point.
    The USB connection is not a high priority matter, not now and not later either, don't now yet how to implement it...on portB change interrupt perhaps...

    There are several things that can go wrong here, we'll just have to work through it.

    You mentioned before ...
    > The programmer configuration is: ...

    Are you setting the config's manually in the programmer's software?
    If so, is the VREGEN bit enabled? (Turns on the 3.3v regulator)
    The configuration, the mePROG configuration is attached. Where else could one set any configurations, one would think that easyHID could do that job for you... I do not know where that would be...

    I assume you've blinked an LED somewhere to verify the oscillator is running at the correct speed.
    No LED blinking, however I have verified that PIC runs with the correct speed. Can tell, that if the speed is not correct and then when you connect it to your PC it will tell you something like "An illegal USB device is....". I have quite fresh experience of that. I have also verified the speed with a oscilloscope to be correct now. And as earlier told, PIC works just fine with the USB commands commented in Pic Basic Rro.

    On these chips, if the main oscillator isn't working, it can switch over to the internal oscillator at a different freq.
    I'm not quite sure about this, meaning what? If it works without USB (same configuration) shouldn't it the work also with the USB or at least every part should see the right frequency. As earlier said, it works fine without the USB compiled to the code. Ex. if you have a 12MHz crystal, it is first, inside PIC divided with 3 (12/3, 8/2, 4/1, 16/4, 20/5 etc) to get 4MHz that is then multiplied to 96MHZ that goes to USB use and on the other hand divided with 2 to get the 48MHz for the PIC other parts. Then when one instruction takes 4 clock cycles to accomplish, the real speed of a 48MHz PIC is actually 12MHz. That is when you can see the crystal frequency, the reference. So, one basic instruction is about 83 ns long.
    Correct?
    Attached Images Attached Images  

  3. #3
    Join Date
    Aug 2005
    Posts
    57

    Default

    In your configuration bits, the USB voltage regulator needs to be enabled.

  4. #4

    Default

    Quote Originally Posted by arniepj View Post
    In your configuration bits, the USB voltage regulator needs to be enabled.
    I tried how it worked with it on, however without success, that seems not change anything, so the fault is somewhere else...
    It seems that I had read the data sheet carelessly

    Back to the basic, first question:
    Is easyHID generally considered as a 100% working "code generator" and should work straight away? A silly question perhaps when just looking at the picbasic code, but there are other files also that aren't "so clear"...

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    As long as you've done everything exactly right, then yes, An EasyHID program will connect to the computer without any hassles.

    Quote Originally Posted by keymuu View Post
    I tried how it worked with it on, however without success, that seems not change anything, so the fault is somewhere else...
    When you have MORE THAN 1 problem at the same time. It's often hard to find them, because simple trial and error no longer works. No matter what you change, it still won't work.

    In the case of the VREGEN. IT MUST BE ENABLED!!!

    Please try the attached .HEX file. It's for an 18F4550 @12mhz.
    I've set all the configs in the program, so allow meProg to use those settings.
    Remove the .TXT extension.

    All it does is connect the USB.
    All other pins are set to input.
    MCLR is disabled.

    After programming, be sure to cycle the power ON/OFF once.

    This should tell us if it's hardware, or software.
    Attached Files Attached Files
    DT

  6. #6

    Default

    Quote Originally Posted by Darrel Taylor View Post
    As long as you've done everything exactly right, then yes, An EasyHID program will connect to the computer without any hassles.


    When you have MORE THAN 1 problem at the same time. It's often hard to find them, because simple trial and error no longer works. No matter what you change, it still won't work.

    In the case of the VREGEN. IT MUST BE ENABLED!!!

    Please try the attached .HEX file. It's for an 18F4550 @12mhz.
    I've set all the configs in the program, so allow meProg to use those settings.
    Remove the .TXT extension.

    All it does is connect the USB.
    All other pins are set to input.
    MCLR is disabled.

    After programming, be sure to cycle the power ON/OFF once.

    This should tell us if it's hardware, or software.
    Thank you it surely did tell us...

    The behavior is exactly the same, no difference. The configuration as earlier, with the exception that the USB voltage regulator is enabled as it should be.

    If your code was working (that is surely was, of course, no doubt ) then the fault must be a hw matter. Please take a look at an excerpt from the schematic that is attached. That is the schematic from which the prototype pcb has been done. It is Eagle-cad, and it claims (and so it also is) that the board and schematic are consistent, so it is easier to look at it than on the pcb. I can not see an error there, but I'm often quit blind, too often...
    Attached Images Attached Images  

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Yes, that program definitely works.
    Dumped in on an 18F4550 before I uploaded it here.

    I don't see anything directly in the schematic.
    But up in the top left corner, there's some connections labeled P$1. Where do they go? Nowhere I hope.

    Which type USB connector are you using? A, B, mini?
    DT

Similar Threads

  1. USB and EasyHID Problems
    By Rob in forum USB
    Replies: 8
    Last Post: - 6th January 2007, 18:19
  2. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  3. HIDMakerFS versus EasyHID
    By Demon in forum USB
    Replies: 4
    Last Post: - 15th August 2006, 08:01
  4. EasyHID VB help with multiple HID's
    By pfinfrock in forum USB
    Replies: 1
    Last Post: - 6th October 2005, 19:16
  5. Replies: 0
    Last Post: - 5th September 2005, 09:09

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