Re: Adding USB Interface to Low-Cost 8-Bit Microcontroller



On 2008-06-10, David T. Ashley <dta@xxxxxxxx> wrote:

However, what is required to implement a USB interface in the product (for
an 8-bit microcontroller), and what is required as far as a driver on the PC
side? The goal would be that we distribute a re-FLASHing application to the
customer that runs on the PC. They would run this application with a USB
cable connected from the PC to our product.

Others have already directly answered your question so I'm not
going to. However, are you sure that you really need USB? You
seem to have gone from requirements to that conclusion in a single
bound so I can't help suspecting maybe there is a little tunnel
vision here.

Many flash memory card formats have integral SPI interfaces - Secure
Digital comes to mind. Since you already have an SPI interface
you can add SD support to the hardware with little more than adding
a connector assembly and making whatever modifications are necessary
to the PCB and case. USB card readers are cheap - SD readers are
under a fiver retail here in the UK, and that cost and the cost of
the card itself are only necessary if the customer wishes to upgrade
- I suspect that will be a minority for most consumer devices.

Of course, you will need software on your device to read the card
and reprogram the device accordingly, but you will need some software
however you go, and that software will almost certainly be simpler
than adding USB support. The software will be greatly simplified
if you can dump your new flash image to the card as a raw device,
rather than needing to deal with a filesystem layer.

--
Andrew Smallshaw
andrews@xxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: [discuss] 2.6.19-rc5: known regressions (v2)
    ... ACPI: IRQ0 used by override. ... registered new interface driver usbfs ... USB Universal Host Controller Interface driver v3.0 ... root hub lost power or was reset ...
    (Linux-Kernel)
  • uC Slection for a learner project
    ... I would like to construct a data logger. ... A 1-Wire interface would be nice. ... require the means to either write/read a MMC/SD card or a USB memory ...
    (comp.arch.embedded)
  • Re: [discuss] 2.6.19-rc5: known regressions (v2)
    ... ACPI: IRQ0 used by override. ... registered new interface driver usbfs ... USB Universal Host Controller Interface driver v3.0 ... root hub lost power or was reset ...
    (Linux-Kernel)
  • Re: digital radio+freeview TV on my laptop?
    ... In the end I bought the AVerTV from CCL, which is connected via USB ... cost £59 including delivery and VAT. ... then ISTM that it makes no difference what card you buy... ...
    (uk.tech.digital-tv)
  • Re: Networking and External USB HardDrives?
    ... >> to get a firewire interface, ... >> invariably much faster than USB, ... Your typical HD is FASTER than the USB interface, ... you can use the firewire ports on the PC. ...
    (microsoft.public.windowsxp.network_web)