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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/09/06 17:01
Read: times


 
#127659 - it's 192, not ONE
Responding to: ???'s previous message
Erik Malund said:

If you are told to use an 8255 refuse, if the refusal does not work, stamp your little feet in the ground, if that does not work, go cry. Then do as your suprevisor or teacher tell you to do and CLEARLY mark all schematics with "8255 used under protest"

After that, enjoy your extended period of unemployment. With such rank insubordination, it's unlikely you'd be able to find work in North America again. That'd certainly be the case if you did that while working for me.

I take that you refer to this: R: Then, what sort of processor WOULD you choose Erik? The reactors I know of use 'em right and left. 192 outputs is not a big job. It takes only eight 8255's. No matter what sort of processor you use, you still have to provide the I/O. How would YOU do it? E: I'd use one with 32 or 64 bit wide I/O and I would use 'regular' latches - cheaper, faster, easier to use that the antique

Is there such a beast? Why do you think so? Cheaper? Faster? I doubt it!

There's another problem, too. You only have 6 hours before the boss wants the prototype working on his desk. The code's simple, the wiring's simple. Delivery might be a problem, eh? OTOH, you have those 805x types in the 40-pin DIP in the inventory. You also have those 8255's from back in the '80's.

Where did I say ONE? and the most usual latches are 8 bits so the question should have been "what about the other 184 bits?"

What? You think you can maintain 8 separate 10 Mbps signal trains with just one 8-bit wide register and a 100 MHz MCU? I doubt it! After all, YOU picked the bit-banging example. Now, how many of the 192 channels can you manage this way? Why did you even go there?

With as 32 bit wide I/O bus e.g. an ARM derivative, only 3 strobe bits would be rquired.

Well, yes, along with a bit of decoding, across the 32-bit address, I'd guess.

I would rather use 24 small SOIC 8 bit latches and run full speed than 8 HUGE sloooooow DIL/PLCC antiques. Really I would use neither, I would use a CPLD/FPGA were I to do such a thing.

You keep saying "sloooooow " but I've challenged you to specify just how much it slows down the MCU over time. My guesstimate is that, for the task I proposed, it slows down the 100 MHz MCU by approximately 10^(-17)%. That's much less than the random variation between crystals. For the same job, at 60 Hz rather than once a week, it slows down the overlall MCU performance by approximately 0.8%. I don't consider that a very serious problem. Do you?

Of course were the speed requirements not dramatic (as in an 8255 could be used) I could go serial with 3 IIC lines each driving 8 8 output devices (or each driving 4 16 output devices). Even go totally modern and use the PCA9698 which gives you 320 I/O for two uC pins.

If speed was even less of a concern (and can you even wisper "speed" when the 8255 is involved) it could be with 24 serial/parallel shift registers another simple solution.

Erik


You really do need a spell-checker, Erik! Those aren't all typo's.

You must really like paying for PCB's, Erik. If you have a small number of controllers, perhaps as many as 3, you wouldn't build a new PCB, would you?

Let me point something out, however. You say you want to use a controller that you've never used before. That requires a PCB, since you're using SMT parts, right? You have to have the finished prototype hardware on the boss' desk today. How're you going to manage that? Of course, you could use that "standard" 805x board that's already on the shelf. The one with the big prototype area.

Aside from that, the discussion WAS about the memory-mapped I/O. We can discuss port-mapped I/O later. Try to focus, Erik!

Now you have to update those outputs once every week for routine testing. Aside from that, you have to respond within 10 ms in case of an anomaly. How're you going to justify using a new device when what you've already got on the shelf will do the job? How're you going to justify building a PCB, having a layout done, when only 3 of these guys need to be built? How're you going to meet schedule?

Now, back to that question I asked you before ... How much will it slow you down if you have to stretch every memory-mapped I/O cycle, which will only occur when you communicate with the external memory, or, in this case, I/O bus, by the maximum that it will stretch? That's 230 ns,of which 160 is the nWR strobe width, isn't it? That's 192 stretched cycles every 168 hours, right? The rest of the time, you're doing something else, presumably at maximum warp. Let's see ... 230 ns * 192 bits, one at a time, of course, 192 times to open each valve, fully, 192 times to close it again, and 192 times more in order to restore the previous state ... so that's 576 cycles * 230 ns ... that's about 13 microseconds every 168 hours ... One part in 10^19 ... That's not very much. The rest of the time, you can operate at maximum warp. Even updating the outputs at 60 Hz, it's only 0.8%. Do you really think that slows you down that much? Why?

List of 142 messages in thread
TopicAuthorDate
New FAQ            01/01/70 00:00      
   all well and good            01/01/70 00:00      
      OK, "blinkey" there now :-)            01/01/70 00:00      
   Addedto FAQq            01/01/70 00:00      
      I'd call it...            01/01/70 00:00      
         Agreed            01/01/70 00:00      
            missing quotes            01/01/70 00:00      
               it's not a statement            01/01/70 00:00      
            appended            01/01/70 00:00      
   "bible"&co            01/01/70 00:00      
   Jon's RS232 tutorial            01/01/70 00:00      
   code not work            01/01/70 00:00      
   table lookup            01/01/70 00:00      
   ehanced outputs            01/01/70 00:00      
      and extended...            01/01/70 00:00      
         uln            01/01/70 00:00      
            Problem            01/01/70 00:00      
               This happened to me, too            01/01/70 00:00      
                  Bugs            01/01/70 00:00      
            FAQ updated: freewheeling diode            01/01/70 00:00      
   How do Quasi-Bidirectional I/O ports work?            01/01/70 00:00      
      ... and cross-linked...            01/01/70 00:00      
         Space            01/01/70 00:00      
            RE:Space            01/01/70 00:00      
            Would never do that            01/01/70 00:00      
               Might have to !            01/01/70 00:00      
         And criss-cross-linked...            01/01/70 00:00      
   added me own little bit            01/01/70 00:00      
   Does output logic "low" represent 0V?            01/01/70 00:00      
      Nice contribution!            01/01/70 00:00      
         but not new            01/01/70 00:00      
            ???            01/01/70 00:00      
               well, it got the blues            01/01/70 00:00      
                  Cheer up...            01/01/70 00:00      
                     but certainly not the first            01/01/70 00:00      
   device burning            01/01/70 00:00      
      Come on, Jan...            01/01/70 00:00      
         He, who does the work, makes the choices            01/01/70 00:00      
   level/edge interrupt            01/01/70 00:00      
   Added note on use of TABs            01/01/70 00:00      
   updated "code no work" FAQ            01/01/70 00:00      
   What will happen when I use an RC (or C only) rese            01/01/70 00:00      
      What reset ICs are good for '51s?            01/01/70 00:00      
         These things are not necessary ...            01/01/70 00:00      
            You've opened a can of worms now!            01/01/70 00:00      
            you do not use internal flash, do you?            01/01/70 00:00      
               it's broken            01/01/70 00:00      
            can of worms            01/01/70 00:00      
               Something interesting ...            01/01/70 00:00      
                  to reset or not to reset            01/01/70 00:00      
                     It's cheaper and easier to use the linear PSU            01/01/70 00:00      
                        then you better get a separate supply            01/01/70 00:00      
                           That's exactly correct!            01/01/70 00:00      
                              why don't they put in GOOD resets?            01/01/70 00:00      
                                 The RESET circuit on the Maxim/Dallas parts            01/01/70 00:00      
                              you are TOTALLY missing the point            01/01/70 00:00      
                                 rephrasing            01/01/70 00:00      
                                 depends on what your definition of "it" is            01/01/70 00:00      
                           battery            01/01/70 00:00      
                              I think we know enough ...            01/01/70 00:00      
                                 resets, power sources            01/01/70 00:00      
                                 answered above            01/01/70 00:00      
                        spec for RC            01/01/70 00:00      
                           I've heard that sort of thing before ...            01/01/70 00:00      
         My two cents            01/01/70 00:00      
   How to make a software UART?            01/01/70 00:00      
      comments and suggested additions            01/01/70 00:00      
         many thanks            01/01/70 00:00      
            revised revisions            01/01/70 00:00      
               OK            01/01/70 00:00      
   two "basic" faqs            01/01/70 00:00      
   external memory interfacing            01/01/70 00:00      
   how to expand ports            01/01/70 00:00      
      addition to IO FAQ            01/01/70 00:00      
         pretty good, here are comments            01/01/70 00:00      
            thanks            01/01/70 00:00      
               clarifications            01/01/70 00:00      
            it's there            01/01/70 00:00      
               you're forgetting too much!            01/01/70 00:00      
                  OK sorry            01/01/70 00:00      
                     It\'s just easier to type ...            01/01/70 00:00      
                        what about a 'such as'            01/01/70 00:00      
                           the downside is            01/01/70 00:00      
   "what's wrong with 8255" added            01/01/70 00:00      
      assumes facts not in evidence ...            01/01/70 00:00      
         effective?            01/01/70 00:00      
            not even YOU can deny that ...            01/01/70 00:00      
               well, so is a steamroller            01/01/70 00:00      
                  Just how much would it slow you down?            01/01/70 00:00      
                     well there goes central USA            01/01/70 00:00      
                     standard answer            01/01/70 00:00      
                        it's just another temper tantrum from Erik            01/01/70 00:00      
                           it is not the age it is the speed            01/01/70 00:00      
                              get real, Erik            01/01/70 00:00      
                                 if I did not need the speed, I would use a cheaper            01/01/70 00:00      
                                    what about the other 191 bits?            01/01/70 00:00      
                                       Where did I say ONE?            01/01/70 00:00      
                                          it's 192, not ONE            01/01/70 00:00      
                                             that is IMPOSSIBLE            01/01/70 00:00      
                                                Of course it is, but YOU changed the subject            01/01/70 00:00      
                                                   I had posted a lot then I found this            01/01/70 00:00      
                                                      Finally, I've got your attention!            01/01/70 00:00      
                                                         How does that you 'cite' something make it that I            01/01/70 00:00      
                                                            What do you mean by "speed," Erik?            01/01/70 00:00      
                                                               Gentlemen please            01/01/70 00:00      
                                                                  Yes, it's not pretty            01/01/70 00:00      
                                                                     should we just let such go by?            01/01/70 00:00      
                                                                        When you have no role            01/01/70 00:00      
                                                                           correct ?            01/01/70 00:00      
                                                                              but you still have to answer the question            01/01/70 00:00      
                                                                                 The best choice component should be chosen            01/01/70 00:00      
                                                                                    Not this time!            01/01/70 00:00      
                                                                                       Now once more you 'cite' and becuse I have not            01/01/70 00:00      
                                                                                          if the shoe fits ...            01/01/70 00:00      
                                                                                             Once again, you circumvent            01/01/70 00:00      
                                                                                                nope ...            01/01/70 00:00      
                                                                                                   A paradox            01/01/70 00:00      
                                                                                                      have you ever worked for the pointy haired boss            01/01/70 00:00      
                                                                                                      there's a time for everything            01/01/70 00:00      
                                                               here is why            01/01/70 00:00      
                                                                  and here's how            01/01/70 00:00      
                                                                     a trip down memory lane            01/01/70 00:00      
         the intended audience of the faqs are newbies...            01/01/70 00:00      
            but newbies aren't children, and you mustn't lie            01/01/70 00:00      
            EGAD! another double-post            01/01/70 00:00      
   New FAQ: debouncing            01/01/70 00:00      
      contributions to debouncing FAQ            01/01/70 00:00      
         Thanks            01/01/70 00:00      
   http://www.8052.com/faqs.phtml?FAQ=127612            01/01/70 00:00      
   doubt about maskable ROM            01/01/70 00:00      
      not to your advantage, i think            01/01/70 00:00      
   FAQ on ADC            01/01/70 00:00      
   while waiting for a needed device            01/01/70 00:00      
      I would add, that...            01/01/70 00:00      
         will add that in the next minute, thanks            01/01/70 00:00      
      nice!            01/01/70 00:00      
         My two cents and then sum            01/01/70 00:00      
   a good FAQ or other means would be            01/01/70 00:00      
      great idea, start it            01/01/70 00:00      
         you have been unamously by me voted to be            01/01/70 00:00      
            thanks            01/01/70 00:00      
   and one more            01/01/70 00:00      

Back to Subject List