PIC USB to VB.NET


Closed Thread
Results 1 to 40 of 54

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    4

    Default Re: PIC USB to VB.NET

    i got:
    error[180] usb18mem.asm116: RES directive cannot reserve odd number of bytes in PIC18 absolute mode
    warning [230] usb18mem.asm116: no memory has been reserved by this instruction

  2. #2
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240

    Default Re: PIC USB to VB.NET

    Quote Originally Posted by mariacho View Post
    i got:
    error[180] usb18mem.asm116: RES directive cannot reserve odd number of bytes in PIC18 absolute mode
    warning [230] usb18mem.asm116: no memory has been reserved by this instruction
    Post your code.

    What is your PBP version? Also list the files that you have in your project directory.

    I works fine here without any error and warning.
    Thanks and Regards;
    Gadelhas

  3. #3
    Join Date
    Mar 2011
    Posts
    4

    Post Re: PIC USB to VB.NET

    PBP 2.60, micro code studio plus 3.0.0.5
    folder content: hd_hid260.pbp, PiCUSB.pbp and all files from c:PBP/usb18

    -- code removed --

    thank you for your help
    Last edited by Darrel Taylor; - 15th July 2011 at 03:25.

  4. #4
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240

    Default Re: PIC USB to VB.NET

    The code that you posted is not the same as i post in the first post! The code that you post is the code to be included in the code that i post.
    Please copy past the code form the first post and try it!
    Thanks and Regards;
    Gadelhas

  5. #5
    Join Date
    Mar 2011
    Posts
    4

    Default Re: PIC USB to VB.NET

    i do copy-paste the first post code and includein the same folder the files from firmware.zip and all the files from usb18 folder
    compile and result: c:\pic\new\dt_hid260.pbp error line 25> bad BANK number

    sorry i`m not so good at this (trying to learn)

  6. #6
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240

    Default Re: PIC USB to VB.NET

    And wich code are you compiling? In MicroCode Studio you do not compile the DT_HID260.pbp, you need to compile, the one with the code from the first post. Also, are you compiling the code for the correct Chip 18F4550? Is it possible for you to put a screenshot of the Microcode Studio after you compile with the erros?
    Thanks and Regards;
    Gadelhas

  7. #7
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Re: PIC USB to VB.NET

    Hi,

    I used the code in this thread on the VB side, and used parts of and incorporated it into my own code on the PIC side. I can communicate and send data perfectly to VB but I cannot get data out of VB into the PIC.

    I need to change a slider and have that value (0-255) sent to the PIC so it can save it to EEPROM and later use it. My code on the PIC side works perfectly if I increase or decrease that value with push buttons but I cannot get the byte into the PIC.

    Lets say I want to send that value out to the PIC and store it in byte IOUT. What is the program structure in VB?

    I am using VB 2010, pbp 2.60 and a 18F2550.

    What info do I need to post next to make this easier to figure out?

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