Today 15:51
Forum: Proton Plus Compiler v3
Starter: geoff_c
Views: 0
Replies: 2
Today 07:02
Forum: WIKI Discussion
Starter: AlbertoFS
Views: 2812
Replies: 39
Go to last post By: John Drew
Yesterday 23:40
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 4
Yesterday 19:51
Forum: PCB Production
Starter: SimonJA
Views: 0
Replies: 4
+ Reply to Thread
Results 1 to 6 of 6

Thread: 16f1454 usb123 days old

  1. #1
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,583
    Thumbs Up
    Received: 100
    Given: 137
    Total Downloaded
    2.59 GB

    0 Not allowed!

    Default 16f1454 usb

    Just got some samples of the device which on paper looks good, USB FS without a crystal, only 14 pins and SPI/async on different pins. I tried a simple USB program and the compiler reported that this device did not support USB. Is it safe to assume that it is intentionally that the .DEF file has USB = 0.

    I can guess just how hard it would be to implement USB on a device with so little RAM, so I don't expect USB support on this device just clarification.
    George

  2. #2
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,696
    Thumbs Up
    Received: 79
    Given: 20
    Total Downloaded
    2.92 GB

    0 Not allowed!

    Default Re: 16f1454 usb

    George,

    From memory USB support is only for 18F devices.
    Regards

    Joseph

  3. #3
    Member Latex's Avatar
    Join Date
    Aug 2005
    Posts
    146
    Thumbs Up
    Received: 7
    Given: 0
    Total Downloaded
    149.99 MB

    0 Not allowed!

    Default Re: 16f1454 usb

    I would recommend to use FTDI external chips for the USB stuff. In order to develop your own RELIABLE endpoint controls within your own code, a lot of research & understanding is required and USB analyzer is required tool (costs 500$ upwards). USB is not a bit-banging serial interface like the old comport was.Easiest is to get the FTDI RS232 models, where you can just type the Hello World out using pic UART with ASCII characters, that get handled by FTDI COM drivers to Terminal program on your computer without a hassle.

  4. #4
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,583
    Thumbs Up
    Received: 100
    Given: 137
    Total Downloaded
    2.59 GB

    0 Not allowed!

    Default Re: 16f1454 usb

    @Latex. I can't even begin to tell you just how much I disagree with every word you have written. To suggest that you need a $500 USB analyzer is just untrue, you just need to search for USB and you will find many working projects. With your limited view you could never use HID or anything else other than CDC.

    USB is a complex protocol which is worth the effort to understand (even if only partially), try compiling one of the examples, you might even get the bug. The book "Complete USB" is hard going but a great source.
    George

  5. #5
    Member Latex's Avatar
    Join Date
    Aug 2005
    Posts
    146
    Thumbs Up
    Received: 7
    Given: 0
    Total Downloaded
    149.99 MB

    0 Not allowed!

    Default Re: 16f1454 usb

    Working projects does not equal truly working and compliant ones! The HID drivers and many of the cobbled-together libraries out there are outdated, like the latest HID specification is from 2001! By the time you understand the inner workings completely, you have used many months of your time on that specific issue, you just have to be certain that that is your goal and not some simplistic hello-world. It can be fun, but it can be frustrating at times.Ie. you want to log sensors and you are only interested in that part of your project, starting to develop USB hardware is way overkill. The device selection would suggest to me, that the hardcore USB is not whats important.

  6. #6
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,583
    Thumbs Up
    Received: 100
    Given: 137
    Total Downloaded
    2.59 GB

    0 Not allowed!

    Default Re: 16f1454 usb

    Now your just being daft, drivers for HID are built into the OS.

    cobbled-together libraries
    I assume you mean PC side libraries, if so why would you use a library to perform a task that can just as easily using standard SDK calls.

    The device selection would suggest to me, that the hardcore USB is not whats important.
    I'm not really sure what that means, and yes I would normally use 2550/25k50/25j50 type devices but sometimes isn't it fun to push the envelope (low pin count no crystal). I suspect the 1454, although woefully short of RAM, would manage to perform as a simple keyboard em and I got them for free. I wouldn't be at all surprised if there wasn't one in the MLA.

    Working projects does not equal truly working and compliant ones
    Working <> Working, a one-project is never going to be compliant anyway.

    On the subject of out-of-date, the alternate USB stack is dated 2017 and was ported from a recent rev of the Microchip C stack.

    By all means have the last word, but I'm done with this.
    George

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. USB HID: Unable to reset USB
    By psrainey in forum USB Module
    Replies: 4
    Last Post: 30th August 2017, 14:33
  2. USB Key doesnt works in USB SS ports
    By Zeiger08 in forum USB License key
    Replies: 2
    Last Post: 3rd February 2015, 10:35
  3. [SOLVED !] USB & 18F14K50 woes - CP affects USB?
    By barak in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 13th April 2014, 14:33
  4. Replies: 41
    Last Post: 6th September 2009, 16:31
  5. One USB keyboard to Two USB Ports
    By picnaut in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 13th June 2009, 16:37

Members who have read this thread since 20th May 2018, 04:49 : 0

Actions :  (Set Date)  (Clear Date)

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