USB with 20 pins anyone? PIC18F14K50 issues


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default USB with 20 pins anyone? PIC18F14K50 issues

    Has anyone tried USB with the 20 pin PIC18F14K50? Microchip has a Low Pin Count USB development kit with this chip. This chip isn't exactly supported by MeLabs. I made a 18F14K50.INC file and a 18F14K50.BAS file, and with the PBPPIC18 library included, I can compile and run a simple led blink program, but if I include the PBPUSB18 library instead, I get a bunch of warnings about my memory locations:

    Warning(219) Invalid ram location specified \PBP\USB18.ASM lines:128, 21, 22, 25 ,etc

    In my 18F14K50.BAS file I told it the memory locations were:
    BANKA $0000, $005F
    BANK0 $0060, $00FF
    BANK1 $0100, $01FF
    BANK2 $0200, $02FF

    What else can I try?

    Thanks,

    Walter
    http://www.scalerobotics.com

  2. #2
    Join Date
    Jun 2009
    Posts
    9

    Default

    I use a number of compilers and the only ones I came across that support the 14k50 for USB is C18 and Proton.

    Although the Proton you have to be a licensed user to get the latest version.

    I think Hitec C supports it now as well now but not 100% sure.

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default

    Thanks Free_Flow,

    I do have CCS and that supports the chip as well.

    But I was hoping to find a way to use PicBasic. It looks like I need to tell it what memory to use for USB, or modify the USB18.ASM file. Hoping for some pointers.

    This chip has as much ram as the PIC18F2450

    Thanks again,

    Walter
    Last edited by ScaleRobotics; - 15th July 2009 at 23:25.
    http://www.scalerobotics.com

  4. #4
    Join Date
    Jun 2009
    Posts
    9

    Default

    Its not as simple as just changing values is some memory files.

    So good luck!

  5. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default

    Looks like it is the:
    Code:
    	org	0x400
    in the USB18MEM.ASM file.

    I changed 0x400 to 0x200 (where the USB memory starts in the PIC18F14k50) and presto, and now I can compile. The other chips it supports start at $0400, but the PIC18F14K50 does not. Now I will have to see if I can get some of the usb demo's to work.

    Walter
    Last edited by ScaleRobotics; - 15th July 2009 at 23:45.
    http://www.scalerobotics.com

  6. #6
    Join Date
    Jun 2009
    Posts
    9

    Default

    So you can compile but can you enumerate?

  7. #7
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default

    Quote Originally Posted by Free_Flow View Post
    So you can compile but can you enumerate?
    Looks like you are right Free_Flow, I can't get it to connect via USB.
    http://www.scalerobotics.com

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  3. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

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