Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/15/10 00:32
Read: times


 
#174136 - There are many things for which USB is unsuited
Responding to: ???'s previous message
That was my point. So what's happened is that the industry, in their infinite wisdom has opted to replace several interfaces that worked very well with one that doesn't work very well for many things.

As a consequence, we have no reliable serial ports, no reliable parallel ports, and quite dodgy "other things" that cause problems.

Printers via USB aren't reliable, nor are they particularly useable outside the PC environment, though keyboards and mice interfaced with USB haven't messed me up yet in the PC environment. The widespread use of USB has allowed printer manufacturers to steal bandwidth from the PC in order to reduce their cost. Unfortunately, the result is that you nearly can't buy a printer to use with your MCU. What was the last serially or parallel interfaced printer that you could buy for use with a simple MCU? What did it cost? Those $90 PC printers won't work with your 805x, and, unless you spend quite a little time, effort, and money, you won't be able to use one with the typical MCU of any flavor. You're stuck with a USB-host-capable MCU and a HUGE task of coding for that printer. Try it sometime.

Per Westermark said:
A UART does work for fixed-data rate asynchronous data.
A USART does work for fixed-data rate synchronous data.
No difference - just a back-end bus with enough bandwidth, and a FIFO to let the PC burst the data.

And that was my other point. That 2-second, and sometimes 2-minute timeout that the PC imposes on your traffic requires a very, Very large FIFO. Where would you get such a FIFO? Methinks you'd have to build it yourself. Now ... Where will you get a USART of any sort these days? It's hard enough getting a UART. Philips used to build a nice 24-pin UART with a built-in baud rate generator. They don't offer it any longer. The ones in the old PC's aren't adequate to the task, but even if they were, how would you hook one up to today's USB-interfaced serial adapters, most of which don't even work with the ISP software from various '52 makers.

When discussing USB-to-serial or USB-to parallel you really have to separate issues with USB from your issues with a PC. Remember that USB has a 1ms cycle time, so it will not be able to match the reaction times of the handshake lines of a native serial port. That is a limitation of the USB bus, and not of the PC it is connected to. Use a PCI-connected serial port if you want lower latency.

... and how do you do that with a USB-provisioned notebook?

And same thing with a USB-to-parallel interface. It is not an adapter that gives a compatible Centronics interface. It is a USB-to-printer interface, and it only works with standard drivers and standard printers. Programs expecting direct access to the signals will fail since the interface just can't transfer the commands with zero lag.

True, in that you've stated the problem. There's no solution, though.

But while a USB-connected interface does suffer from latencies because of the design of the USB protocol, it can still manage quite high synchronous data rates with a bit of buffering in the USB device. The PC can't guarantee us reaction times to everything that happens, but stepping back into the ms range, it can do very well. And it doesn't take much memory for a FIFO to span milliseconds.

I can stream bluray HD video continuously without any problems. 30GB of data to be played in 2 hours is 4MB/S OR 32Mbit/s. The peak requirements are higher.

By the way: if you do want 45Mbit/s - don't use 12Mbit/s USB. 480Mbit/s does have the bandwidth to keep a FIFO filled with capacity to spare. Windows manages to push > 30MB/s continuously. 40MB/s if switching from USB to 400Mbit/s FW.


I believe I've already explained why that isn't true ...

RE


List of 83 messages in thread
TopicAuthorDate
ready made board with 2 UARTs equipped ..            01/01/70 00:00      
   Send me details            01/01/70 00:00      
   SiLabs kit            01/01/70 00:00      
      they don't, but            01/01/70 00:00      
   Can you give more details ?            01/01/70 00:00      
      if it was to be made, I need no assistance since ...            01/01/70 00:00      
         ...and I thought Price was the issue...            01/01/70 00:00      
   One Suggestion            01/01/70 00:00      
      the MX chips are being phased out            01/01/70 00:00      
   I sent you email            01/01/70 00:00      
      read, answered, thanks            01/01/70 00:00      
   you can use sm5964            01/01/70 00:00      
      the idea was stated as...            01/01/70 00:00      
         It is a suggestion            01/01/70 00:00      
            Not a good idea            01/01/70 00:00      
            that it is            01/01/70 00:00      
   How about Phycore?            01/01/70 00:00      
      Legacy Product            01/01/70 00:00      
         oh, yes            01/01/70 00:00      
            Have a look at grifo            01/01/70 00:00      
   This looks good too            01/01/70 00:00      
   I've been wondering ...            01/01/70 00:00      
      Likewise            01/01/70 00:00      
         Maybe, but who makes 'em?            01/01/70 00:00      
            8052 with only 1 UART            01/01/70 00:00      
               I'm surprised, but that's the case!            01/01/70 00:00      
                  why surprised?            01/01/70 00:00      
                     That's what I thought            01/01/70 00:00      
                     I never thought of it in those terms ...            01/01/70 00:00      
                        comments            01/01/70 00:00      
                           It could be done with two wires and 2-UART MCU            01/01/70 00:00      
      120 devboards ...            01/01/70 00:00      
         How difficult or costly would it be to add one?            01/01/70 00:00      
            neither difficult nor costly            01/01/70 00:00      
         SILABs 040 has 2 uarts on it            01/01/70 00:00      
   with ds89c450 or 430            01/01/70 00:00      
      But that's a chip - not a board!            01/01/70 00:00      
         cheap boards            01/01/70 00:00      
            this is what's meant            01/01/70 00:00      
               No RS485            01/01/70 00:00      
                  Example            01/01/70 00:00      
                     bad example            01/01/70 00:00      
                        No - excellent example!            01/01/70 00:00      
                           likewise with that other board ...            01/01/70 00:00      
                           And did *you* know what are you looking for?            01/01/70 00:00      
                              You got it            01/01/70 00:00      
                  why "never"?            01/01/70 00:00      
                     the PC's not the best example ...            01/01/70 00:00      
                        PC as an example            01/01/70 00:00      
                           Lots of toys ... little of any practical use.            01/01/70 00:00      
                              Different tools can be used in different ways            01/01/70 00:00      
                                 where is your head wedged?            01/01/70 00:00      
                                    Don't blame the PC for solving wrong things with USB            01/01/70 00:00      
                                       There are many things for which USB is unsuited            01/01/70 00:00      
                                          Every change since 1980 isn't for the worse            01/01/70 00:00      
                                             Maybe, but this one is            01/01/70 00:00      
                                                again            01/01/70 00:00      
                                                   Thta's what you say ...            01/01/70 00:00      
                                                      that's what you always say            01/01/70 00:00      
                                                         Where you sit determines what you see            01/01/70 00:00      
                                                            Where did you sit?            01/01/70 00:00      
                                                   SPI solves completely different problem than HDLC            01/01/70 00:00      
                                                and again            01/01/70 00:00      
                                                   what about the required size of the driver?            01/01/70 00:00      
                                                      required size of driver            01/01/70 00:00      
                                                         What do you mean by PCL Cost?            01/01/70 00:00      
                                                            price difference between similar printers -            01/01/70 00:00      
                                                Define narrow view - I see oportunities, i.e. the reverse            01/01/70 00:00      
                                                   not relevant            01/01/70 00:00      
                                                      So the Windows driver didn't list 8051 compatibility???            01/01/70 00:00      
                                          I vote Richard as president for ...            01/01/70 00:00      
                                             That's what one would expect from you, Erik            01/01/70 00:00      
                              USB and fixed-rate transfer            01/01/70 00:00      
                                 Fortunately, there's DOS ...            01/01/70 00:00      
                        Linux - I thought as much            01/01/70 00:00      
                        PCs            01/01/70 00:00      
                           you forgot about LINUX            01/01/70 00:00      
   By this time, anybody could have built one...            01/01/70 00:00      
      Funnily enough, ...            01/01/70 00:00      
      no            01/01/70 00:00      
   I Hate to ask this....            01/01/70 00:00      
      A *very* common requirement!            01/01/70 00:00      
      if indeed            01/01/70 00:00      

Back to Subject List