PIC16F1454 Connecting To USB Doesn't Work


+ Reply to Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default PIC16F1454 Connecting To USB Doesn't Work

    Hi,

    Has anybody tried to make a USB project with a PIC16F chip? I'm trying to make the PIC16F1454 work with USB, but I'm getting this error from PBP3 "USBIN/USBOUT/USBINIT/USBSERVICE commands not supported for this device." This chip has USB capabilities. This error makes me think that PBP3 doesn't support USB in PIC16F chips. Any advice or comments are greatly appreciated.

    The error in red comes from me trying to include the usbjadem.bas descriptor.

    I'm just trying to initialize the USB with usbinit and it is not working. My basic preliminary code below.

    Name:  PIC16F1454-USB-Error.png
Views: 210
Size:  18.9 KB

    Code:
    #CONFIG
        __config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_ON & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF
        __config _CONFIG2, _WRT_OFF & _CPUDIV_NOCLKDIV & _PLLEN_ENABLED & _STVREN_OFF & _LPBOR_OFF & _LVP_OFF
    #ENDCONFIG
    
    TRISA = %00000000
    ANSELA = %00000000
    TRISC = %00000000
    ANSELC = %00000000
    
    usbinit
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159

    Default Re: PIC16F1454 Connecting To USB Doesn't Work

    https://www.microchip.com/maps/microcontroller.aspx

    I entered:

    Part family = PIC16F145x
    USB interface = YES

    Search results = No products meet selection bla bla bla

    WTH...?

    I was also planning on using this PIC for my project.

    Name:  PIC 16F1454 USB.png
Views: 491
Size:  131.9 KB
    Last edited by Demon; - 3rd December 2024 at 19:33.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159

    Default Re: PIC16F1454 Connecting To USB Doesn't Work

    Ah crap.

    If I search USB in PIC18F4550.PBPINC, I get this:

    Name:  USB 18F.png
Views: 502
Size:  32.3 KB


    If I do the same search in PIC16F1454.PBPINC:

    Name:  USB 16F.png
Views: 491
Size:  41.9 KB


    That messes up my plans as well for an inexpensive USB PIC.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159

    Default Re: PIC16F1454 Connecting To USB Doesn't Work

    Holy crap, prices rise quickly.

    DigiKey:
    Name:  Digikkey USB PIC prices.png
Views: 500
Size:  253.7 KB
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default Re: PIC16F1454 Connecting To USB Doesn't Work

    Demon, don't give up. This is a very inexpensive chip for a USB project. I was hoping to use it for a few projects I have. I don't think that they implemented the USB part for this chip in the PBP software. Maybe Melabs can help with this. What do you think?
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  6. #6
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default Re: PIC16F1454 Connecting To USB Doesn't Work

    Also, PBP doesn't let you enable the PIC16F1454 USB internal voltage regulator. Below is the setting for the 18F4550.


    Name:  PIC16F1454-USB-01.png
Views: 194
Size:  58.6 KB
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159

    Default Re: PIC16F1454 Connecting To USB Doesn't Work

    Quote Originally Posted by rsocor01 View Post
    Demon, don't give up. ...
    Never give up, never surrender!


    Quote Originally Posted by rsocor01 View Post
    ... I don't think that they implemented the USB part for this chip in the PBP software. Maybe Melabs can help with this. ...
    Yeah, that much is obvious with that statement in the INCLUDE.

    I don't have any "direct contact" at MeLabs, and all comments I've read say PBP is dead.

    I can always ask, but I have a feeling this PIC or PBP is of little importance to them.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. pic16f88 doesn't work at all
    By aswasw3 in forum General
    Replies: 1
    Last Post: - 15th April 2016, 04:47
  2. PortA Doesn't Work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 11
    Last Post: - 8th September 2015, 18:41
  3. Attachements doesn't work.
    By HenrikOlsson in forum Forum Requests
    Replies: 15
    Last Post: - 14th September 2013, 03:04
  4. first project, and yes, doesn`t work
    By bogdan in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th April 2009, 06:13
  5. why this doesn't work?
    By strasni_betmen in forum Serial
    Replies: 7
    Last Post: - 4th September 2008, 15:56

Members who have read this thread : 13

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