USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Which PIC are you using?

    You probably need a modified .bas file for that chip.

    If you are using a 2455, 2550 or 4550 then Steve has already provided the files. (see post 99)

    You may also need to modify the PBPUSB18.LIB file if your PBP installation is not in the default c:\PBP folder. As was the case with Momboz.
    <br>
    DT

  2. #2
    Join Date
    Sep 2006
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Which PIC are you using?

    You probably need a modified .bas file for that chip.

    If you are using a 2455, 2550 or 4550 then Steve has already provided the files. (see post 99)

    You may also need to modify the PBPUSB18.LIB file if your PBP installation is not in the default c:\PBP folder. As was the case with Momboz.
    <br>
    Hi,

    Thanks for your reply.
    Errors for both 2550 and 4550;(using steve's files)
    there are 2 folders in c:\PBP, one is MCSP-3.0 2ND one is PBP247,
    Now different errors when iam trying to compile Steve's file from C:\PBP.
    No errors from the sample folder files(pbp247)i tried with its own compiller and mpasm..

    Regards,

    plaese find attached image..
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    There may be several things going on here. Let's see if we can fix a couple of them.

    First, since PBP wasn't installed in the default folder, you have to change the path to one of the files.
    In your c:\mcsp\pbp247\ folder, there is a PBPUSB18.LIB file.
    Open it with notepad, and change the first include line to...

    &nbsp; include "c:\mcsp\pbp247\PBPPIC18.LIB"
    ----------

    Next, edit the c:\mcsp\pbp247\18F2550.INC file with notepad.
    Comment out ALL of the __CONFIG lines with a semicolan ;
    ----------

    Then in the USBdemo program, change _FCMEN_OFF_1H to _FCMEM_OFF_1H

    That will need to be changed again after the next time you upgrade MPASM.
    ----------

    Those should fix several of the errors.
    Compile it like that and let me know whats left.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Oh, and 1 more.

    In Microcode studio, goto

    View | Compile and Program options | Compiler tab

    And select the INHX8M radio button.
    <br>
    DT

  5. #5
    Join Date
    Sep 2006
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Oh, and 1 more.

    In Microcode studio, goto

    View | Compile and Program options | Compiler tab

    And select the INHX8M radio button.
    <br>
    Dear Darrel Taylor,

    Thank you very much..compilled succesfully but few warnings..
    commented like this :
    ALL ; __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    ALL ; __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H
    ALL ; __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
    ALL ; __CONFIG _CONFIG3H, _PBADEN_OFF_3H
    ALL ; __CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L

    i selected only INHX8M radio button in View | Compile and Program options | Compiler tab
    and disabled rest..

    I'll let you know its behavior after programming the IC tonight ..

    Thanks again..

    Warm Regards...
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Ha Ha Ha
    That's funny.

    Very close,
    but no cigar.

    should be...
    Code:
     &nbsp; ; __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L 
     &nbsp; ; __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H 
     &nbsp; ; __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H 
     &nbsp; ; __CONFIG _CONFIG3H, _PBADEN_OFF_3H 
     &nbsp; ; __CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
    DT

  7. #7
    Join Date
    Sep 2006
    Posts
    42


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Darrel Taylor View Post
    Ha Ha Ha
    That's funny.

    Very close,
    but no cigar.

    should be...
    Code:
     &nbsp; ; __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L 
     &nbsp; ; __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H 
     &nbsp; ; __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H 
     &nbsp; ; __CONFIG _CONFIG3H, _PBADEN_OFF_3H 
     &nbsp; ; __CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
    Opearation Success...

    Thank you again, and i look forward to your continued support.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  2. How to receive stream of bytes using PIC USART
    By unifoxz in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 20th June 2009, 11:38
  3. Replies: 9
    Last Post: - 31st July 2008, 09:56
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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