Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Darrel Taylor; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    278
    Views
    318,951

    Re: USBDemo, something to learn USB a little bit

    It sounds like you would also be getting an error that says it can't open include file DT_INTS-18.bas.

    Did you put it in your PBP folder?
  2. Replies
    278
    Views
    318,951

    Re: USBDemo, something to learn USB a little bit

    Pin 4 of the USB connector is Ground.
    It and the Shield should be connected to VSS on the LAB-X1.

    Have you removed the MAX232 chip?
    You've set the RX pin to output, which is likely to cause high...
  3. Replies
    278
    Views
    318,951

    Re: USBDemo, something to learn USB a little bit

    Robert,

    Check the ground from your USB connector.

    Plugging in the programmer will give a common ground with the computer.
    If there is no ground from your USB connector, it will disconnect when...
  4. Replies
    278
    Views
    318,951

    Re: USBDemo, something to learn USB a little bit

    It could be that you are using PBP version 2.46 - 2.50C with MPLAB greater than 8.15a

    Either upgrade PBP, or downgrade MPLAB.

    If you have upgraded PBP, use the new USB files from the USB18...
  5. Replies
    278
    Views
    318,951

    Re: USBDemo, something to learn USB a little bit

    With those chips ... you can get Full Speed with any crystal that's a multiple of 4Mhz (up to 24Mhz).
    And the processor can run at 48Mhz too.

    They have a really nice Oscillator/PLL.
    Adjusting...
  6. Replies
    278
    Views
    318,951

    Enable bits (IE), Interrupt Flags (IF) or...

    Enable bits (IE), Interrupt Flags (IF) or Priority bits (IP).
    Don't "mess" with them. That includes GIE and PEIE or GIEL.

    Many interrupt sources have registers that affect the specific...
  7. Replies
    278
    Views
    318,951

    Both USB_INSIZE and USB_OUTSIZE can only be...

    Both USB_INSIZE and USB_OUTSIZE can only be 8,16,32 or 64.
    If you want to send 10-bytes per report, it needs to be 16.

    Question 2, I don't understand.
    If you have them in arrays, just copy them...
  8. Replies
    278
    Views
    318,951

    Put the Interrupt definitions before the HID...

    Put the Interrupt definitions before the HID stuff.

    That's the way it was originally. But it got reversed in your program.

    Also, don't mess with all the INTCON and RCON registers.
    DT_INTS...
  9. Replies
    278
    Views
    318,951

    You can. But before you put it to sleep, you'll...

    You can.
    But before you put it to sleep, you'll need to put the USB module in suspend mode UCON.1, which can only be done reliably when unplugged.

    This disables the USB voltage regulator and...
  10. Replies
    278
    Views
    318,951

    DT_HID already uses the USB interrupt. If you...

    DT_HID already uses the USB interrupt.
    If you override it, then USB can't happen anymore.

    Besides, your routine is not suitable for interrupts anyway.
    There's 1000 loops with pauses and gosubs...
  11. Replies
    278
    Views
    318,951

    PORTB.0 is not used anywhere in the program...

    PORTB.0 is not used anywhere in the program (other than output from the Demo).
    PORTB.5-7 are only used if the USB Status LED lines are uncommented (I left them commented). And they can be assigned...
  12. Replies
    278
    Views
    318,951

    The ones on the left require 8-LEDs on PORTB, and...

    The ones on the left require 8-LEDs on PORTB, and 2 other LEDs on the CCP outputs, RC1/RC2.

    Previously you said you disconnected the LED's to get things working with the EasyPIC.

    The USB D-/D+...
  13. Replies
    278
    Views
    318,951

    OK, this program should work with Steve's...

    OK, this program should work with Steve's original USBDemo GUI.

    18F2550/4550, 8Mhz, DT_INTS-18, DT_HID260.

    Cheers,
  14. Replies
    278
    Views
    318,951

    Great, I thought I lost you. :) The program is...

    Great, I thought I lost you. :)

    The program is sending different data than mister-e's PC program is expecting.
    I guess my example was off thread, and I should make an example that does work with...
  15. Replies
    278
    Views
    318,951

    Before I posted last time, I copied your program...

    Before I posted last time, I copied your program to MCS, added the config2L and changed my crystal to 8mhz.

    It fired right up, and is still connected now.
    It shows up as DT_HID (001) in...
  16. Replies
    278
    Views
    318,951

    Apparently, I missed the CONFIG2L. I always miss...

    Apparently, I missed the CONFIG2L.
    I always miss that one, weird ...

    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _VREGEN_ON_2L

    And try the HIDmonitor program from the .zip

    When I...
  17. Replies
    278
    Views
    318,951

    USBDemo was a good starting point for me, Thanks...

    USBDemo was a good starting point for me, Thanks Steve.
    But there are several problems that don't coincide with what you want.

    1) When you disconnect the cable, it will still try to send data,...
  18. Replies
    278
    Views
    318,951

    OzGrant, See this thread about how to fix the...

    OzGrant,
    See this thread about how to fix the configs ...
    http://www.picbasic.co.uk/forum/showthread.php?p=6775#post6775

    jellis00,
    Uno momento ...
    <br>
  19. Replies
    278
    Views
    318,951

    Sweet! Doesn't matter, the VB program will...

    Sweet!


    Doesn't matter, the VB program will pick up when it connects, and sometimes when it disconnects. :eek:
    <br>
  20. Replies
    278
    Views
    318,951

    Steve wrote that program when 2.46 was the latest...

    Steve wrote that program when 2.46 was the latest and greatest.
    At that time UCFG VAR EXT was missing from the PIC18EXT.bas file.
    But with 2.60, the oversight has been corrected, so you don't need...
  21. Replies
    278
    Views
    318,951

    Haven't seen him around for awhile. His website...

    Haven't seen him around for awhile.
    His website is gone too.

    Here's the schematic he had previously posted.

    http://www.pbpgroup.com/files/USB_schematic-mrE.gif
  22. Replies
    278
    Views
    318,951

    With the release of PBP version 2.60, mister-e's...

    With the release of PBP version 2.60, mister-e's USBdemo (or any other program derived from EasyHID) will no longer compile (without some changes).

    The new way of doing USB with PBP is really...
  23. Replies
    278
    Views
    318,951

    The IN/OUT "Report" length is usually set in one...

    The IN/OUT "Report" length is usually set in one of the easyHID dialogs.
    Or it can be changed manually in the Descriptor file.

    If you re-run easyHID for the same project, it will wipe out any...
  24. Replies
    278
    Views
    318,951

    Done! :)  

    Done! :) &nbsp;
  25. Replies
    278
    Views
    318,951

    Both questions can be answered with EasyHID. ...

    Both questions can be answered with EasyHID.

    The serial number is entered on one of the setup screens.

    And EasyHID will make a "Starting" program for either VB or Delphi.
    <br>
Results 1 to 25 of 49
Page 1 of 2 1 2