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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/18/06 22:03
Read: times


 
#126709 - Yes, it's HOW TO and not HOW NOT TO ...
Responding to: ???'s previous message
Erik Malund said:
Richard Erlacher said:
All this time, we've been discussing the 8255 which is called a Peripheral Interface Adapter

The title of the thread is "How to extend the ports of 8051" which is what the rest of us have been discussing. YOU, however, have been discussing the antique slowpoke 8255.


True enough, but that's because, as you always like to do, you jumped in with your "Oh, My God! Don't use the 8255!" without any justification. So far you've thrown down a number of "red herrings" but provided no persuasive argument that the 8255, limitations and all, is not suitable for expanding the I/O of an 805x. It might not be easy to use with YOUR 805x, though I would guess it can be done.

Erik Malund said:
Richard Erlacher said:

The reason is the transport latency and skew introduced by a serial transport. Think back to the parallel interfaces you once used on mass storage devices. Those are generally serial devices at the bare-bones level, but most of them were used with parallel interfaced controller/formatters because computers of the day didn't want to dedicate the resources to operate them serially.

I have de-skewed many parallel things (intefaces and 9-track tapes) I have never deskewed a serial inteface. I do not know what you mean by "serial skew"

that is the skew between transmit and receive that's introduced by disassembling and reassembling the bytes/words before they can be interpreted. In a parallel situation, you might be required to acknowledge a byte within, say, 1 microsecond. A hardware handshake, as provided by an 8255, many other hardware arrangements, or which you can easily provide with a relatively fast MCU, could manage that. However, if you have to transfer a word containing the payload byte and the control byte, or bits, required to effect the handshake, there would be considerable delay as the data is serialized and deserialized before it could be interpreted and acted upon.

Erik Malund said:
Richard Erlacher said:

Judging from some of your comments over the years, I'd say you've not had to communicate via parallel interfaces very often.

Not true, however, when either works, for simple pincount reasons, I do prefer serial.
It's clear that you like ready-made, purportedly "idiot-proof" interfaces, e.g. IIC, SPI, SCI, or whatever you want to call them..
1) I have no preference for "idiot-proof" and e.g. the IIC by no means is that. Also "idiot-proof" is boring.
2) I have not "called them" anything, they are named by the "inventor"


Sorry about that, I didn't mean you, personally, I meant the general "you" in the sense of "whatever it's called" since I'm not a big user, hence, tend to mix 'em up.

Erik Malund said:
Richard Erlacher said:
Those do not work with every type of device in the world. Once you run into a requirement for something that taxes your MCU's data transfer rate capability, you'll see what the benefit of parallel communication is.


Absolutely, that is when I use Internal memory (and sometimes 8 port) devices and thus do not need to use the antique slowpoke 8255 to get enough ports for parallel.

Erik



All you've done for the past 100 kBytes is argue that the 8255 is a poor choice for this purpose. You've not presented even ONE reasonable argument why that would be, for the typical case, though I can see why you'd not want to use one yourself.

True, the 8255's slow, but its' not too slow to use with many of the currently marketed parts that fit the 805x model. It's old, but then, being quite old myself, I don't find that a problem, at least not for the 8255. The thing still works as it did nearly 30 years ago.

Now ... why do we keep having this argument? ... Well, it's because you CATEGORICALLY state that it's wrong to use it. You tell people who have ready access to them that they're too hard to get. You tell people using 25-year old MCU's that they're too slow. Most of the time you don't even ask what sort of MCU they're using. You just tell them that they're stupid and they should do what you say.

I don't like that.

If you gave them an informed choice, after telling them what's involved and how to find out about that, I'd be fine with that. If a guy wants to expand the I/O on his 805x, you really can't answer without first finding out which MCU he's using, what kind of I/O he wants to expand, and other things like that. Have you ever asked such questions?

Those ST parts to which you referred are not fast enough to keep up with every type of 805x, even the ones in standard package, without some tweaking. I'd have to slow down the bus to make 'em work with my Maxim parts. However, they would work with the bus timing extended.

Unfortunately, you have to buy the internal FLASH and RAM in order to get the I/O. Since they cost twice what the 8255 costs, and availability is slow and in quantity only, the choice is easy if I'm building just one of something.

There's nothing wrong with the IIC parts if they work for what's required, but they don't seem to have the instantaneous (well, not quite) auto-handshaking that might be needed. The package of the IIC part will probably present a problem, though. If I ever get to using a part like the ones you use, I'll certainly consider the option of using the 8255 as a port-mapped peripheral, but only as an option. I've never liked 'em.

RE


List of 174 messages in thread
TopicAuthorDate
How to extend the ports of 8051?            01/01/70 00:00      
   I2C, SPI, 1-Wire, CPLD            01/01/70 00:00      
      Why "avoid 8259"?            01/01/70 00:00      
         Why "avoid 8259"?            01/01/70 00:00      
            Hi            01/01/70 00:00      
         Hi            01/01/70 00:00      
      Examples            01/01/70 00:00      
   Choose an 8051 w. sufficient IO in the 1st place!            01/01/70 00:00      
      all 8051\'s have the same amount of I/O            01/01/70 00:00      
         list please            01/01/70 00:00      
            typo ... sorry ...            01/01/70 00:00      
         OK then, "derivative"            01/01/70 00:00      
         huh?            01/01/70 00:00      
            I think he means...            01/01/70 00:00      
               you're right, and that's the point, actually            01/01/70 00:00      
                  cause and effect            01/01/70 00:00      
   Clarification please            01/01/70 00:00      
      Clarification            01/01/70 00:00      
         Hi            01/01/70 00:00      
            Specifics ?            01/01/70 00:00      
      Hi            01/01/70 00:00      
   8255            01/01/70 00:00      
      Avoid 8255!            01/01/70 00:00      
         8255 Is Available in India            01/01/70 00:00      
            I learned the 8085 and 8255 in college            01/01/70 00:00      
               more number blindness?            01/01/70 00:00      
                  Yes            01/01/70 00:00      
                     Actually, it IS possible ... but you\'re right            01/01/70 00:00      
                        why?            01/01/70 00:00      
                        who said useless?            01/01/70 00:00      
            so the blind should lead the deaf?            01/01/70 00:00      
               somebody's got to do it!            01/01/70 00:00      
         What do you mean by "cumbersome?"            01/01/70 00:00      
      which antique store do you shop at?            01/01/70 00:00      
   FAQ            01/01/70 00:00      
      now THAT would be helpful to many!            01/01/70 00:00      
         nobody said so            01/01/70 00:00      
            too slow?            01/01/70 00:00      
               if you want a FAQ ...            01/01/70 00:00      
                  Input or Output            01/01/70 00:00      
                     Well ... the Motorola parts did that ... bitwise            01/01/70 00:00      
                        Port C            01/01/70 00:00      
   Hi Everyboody!            01/01/70 00:00      
   Port I/O of 8051            01/01/70 00:00      
      Serial and parallel I/O            01/01/70 00:00      
         As many as two?!            01/01/70 00:00      
            port expansion            01/01/70 00:00      
               Oops - you've been in that museum again!            01/01/70 00:00      
                  that I know but            01/01/70 00:00      
                     sure            01/01/70 00:00      
                        i have not and I can't            01/01/70 00:00      
                           sorry...            01/01/70 00:00      
                     WSI; Waferscale; ST; PSM; PSD            01/01/70 00:00      
               wotizit?            01/01/70 00:00      
                  wired or line            01/01/70 00:00      
                     I'd not call it a "pin extension"...            01/01/70 00:00      
                        I would            01/01/70 00:00      
      Requirements            01/01/70 00:00      
      FAQ            01/01/70 00:00      
         a good start, but woefully incomplete            01/01/70 00:00      
            Triscend - now Zylogic            01/01/70 00:00      
            "woefully incomplete", eh?            01/01/70 00:00      
               response            01/01/70 00:00      
                  there are some \"gotchas\"            01/01/70 00:00      
                     I used them before they became flash parts            01/01/70 00:00      
                        So, where's the link to the ST software?            01/01/70 00:00      
                           let a WSI user find that out            01/01/70 00:00      
                              There are no more WSI users ... there's no WSI            01/01/70 00:00      
                                 WSI usres-PSD usres OK            01/01/70 00:00      
                           Richard... What P/N you looking at?            01/01/70 00:00      
                              I just skimmed over the four most prominent ones            01/01/70 00:00      
                           Is this it?            01/01/70 00:00      
                     PSD/uPSD            01/01/70 00:00      
   A couple of Articles on embedded I/O            01/01/70 00:00      
      broken libks            01/01/70 00:00      
         fixed            01/01/70 00:00      
      informative article(s) but ...            01/01/70 00:00      
         CPLDs and FPGAs            01/01/70 00:00      
            differences            01/01/70 00:00      
               that's not really the issue...            01/01/70 00:00      
            They\'re available at no cost            01/01/70 00:00      
               the invasion of ther windows "programmers"            01/01/70 00:00      
            re: CPLDs and FPGAs            01/01/70 00:00      
               Andy PLEASE            01/01/70 00:00      
            I only promote stuff            01/01/70 00:00      
         FPGA/CPLD drawbacks            01/01/70 00:00      
            please make complete statements            01/01/70 00:00      
               @Erik: please read complete:            01/01/70 00:00      
                  giving examples does not exclude            01/01/70 00:00      
            well, that's a big maybe ...            01/01/70 00:00      
               an example            01/01/70 00:00      
                  voltage is not my choice            01/01/70 00:00      
                     where is the beef?            01/01/70 00:00      
                        it depends            01/01/70 00:00      
                           costs less, too.            01/01/70 00:00      
   consider this ...            01/01/70 00:00      
      but why skin a cat that is rotted? the fur will no            01/01/70 00:00      
         You keep saying that, but WHY?            01/01/70 00:00      
            NO WAY            01/01/70 00:00      
               I'm not from Missouri, but "SHOW ME"            01/01/70 00:00      
                  you have now visited Missouri            01/01/70 00:00      
                     waitaminute Erik...            01/01/70 00:00      
                        and my argument is            01/01/70 00:00      
                           your argument is fallacious            01/01/70 00:00      
                              once more mixing I/O mapped and MMIO            01/01/70 00:00      
                              OFF TOPIC but...            01/01/70 00:00      
                                 it\'s the disparity between rural and urban areas            01/01/70 00:00      
                                    I do not, BUT            01/01/70 00:00      
                           pins, lost&found            01/01/70 00:00      
                              a rephrase, a question and a subject issue            01/01/70 00:00      
                                 technically            01/01/70 00:00      
                                    mixing once more            01/01/70 00:00      
                                 You're being either crazy or stupid, Erik            01/01/70 00:00      
                                    I think the crazy one is you, Richard            01/01/70 00:00      
                                       I'm a seasoned man ...            01/01/70 00:00      
                                          Same back at ya            01/01/70 00:00      
                                             Now we're into semantics            01/01/70 00:00      
                                                Now you are completely off the rocker. Who, more            01/01/70 00:00      
                                                   Wake up!            01/01/70 00:00      
                                                      that is a BLATANT LIE            01/01/70 00:00      
                                                         Good grief, Erik! It's not personal ...            01/01/70 00:00      
                                                            YES, YES and YES. I even had to code it in assemb            01/01/70 00:00      
                                                         you could state that explicitly....            01/01/70 00:00      
                                             I've tried to be diplomatic            01/01/70 00:00      
                                                I'll try it, too            01/01/70 00:00      
                                                   the IIC as an alternative            01/01/70 00:00      
                                                      As an alternative, but only sometimes            01/01/70 00:00      
                                                         two viewpoints            01/01/70 00:00      
                                                         SATA            01/01/70 00:00      
                                                            I\'d like to meet...            01/01/70 00:00      
                                                               My point            01/01/70 00:00      
                                                               Parallel works off-board as well            01/01/70 00:00      
                                                            very true, but it doesn\'t apply            01/01/70 00:00      
                                                         try THAT with the 8255            01/01/70 00:00      
                                                            Erik, it might surprise you to learn ...            01/01/70 00:00      
                                                               WHAT            01/01/70 00:00      
                                                                  Erik, in response to WHAT            01/01/70 00:00      
                                                               that implies serial, in which case the 8255            01/01/70 00:00      
                                                                  I said is was parallel-interfaced ...            01/01/70 00:00      
                                                                     Please find the word 'parallel', I may be going bl            01/01/70 00:00      
                                                                        You're right, I left it out ...            01/01/70 00:00      
                                                                           The title of nthe thread is "How to extend the por            01/01/70 00:00      
                                                                              Yes, it's HOW TO and not HOW NOT TO ...            01/01/70 00:00      
                                                                                 attaching an old ratteling caboose to a high speed            01/01/70 00:00      
                                                         not that slow - especially compared to the 8255            01/01/70 00:00      
                                                            Erik, look at the datasheet ...            01/01/70 00:00      
                                                               how do you propose to \"get it in\" at that speed            01/01/70 00:00      
                                                                  Yes, this needs clarification            01/01/70 00:00      
                                                                     no, you don't            01/01/70 00:00      
                                                                        Erik, Once again, you've brought too much to            01/01/70 00:00      
                                                                           nope, there are plenty of boards with (sorry, I kn            01/01/70 00:00      
                                                                              Well, show me ... it\'s proven untrue so far.            01/01/70 00:00      
                                                                                 I am really curious what you are making where a            01/01/70 00:00      
                                                                                    Been there, done that ...            01/01/70 00:00      
                                                                                       now you lose me            01/01/70 00:00      
                                                                                          I don\'t like \'em.            01/01/70 00:00      
                        Jan ... DIGIKEY's not always the cheapest            01/01/70 00:00      
                           of course, if you can sell the sh eh stuff            01/01/70 00:00      
                     the datasheet says ...            01/01/70 00:00      
                        are you mixing cement in a futile attempt to cast            01/01/70 00:00      
                           go back to school, Erik!            01/01/70 00:00      
                           go back to school, Erik!            01/01/70 00:00      
                              I say, you say            01/01/70 00:00      
                                 Erik, go back and read the whole thing            01/01/70 00:00      
                                    had Peter IlyitchTscaikowsky lived ...            01/01/70 00:00      
                                       one more... :-)            01/01/70 00:00      
                                          hve you see any post stating that?            01/01/70 00:00      
                                             yes. Richard's... :-)            01/01/70 00:00      
                                                and that was because ...            01/01/70 00:00      
   Why is this so endlessly fascinating?            01/01/70 00:00      
      to Jez            01/01/70 00:00      
         i dunno            01/01/70 00:00      
   "Extending Input/output"            01/01/70 00:00      
      "Extending Input/output"            01/01/70 00:00      

Back to Subject List