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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/06/11 07:35
Read: times


 
Msg Score: +2
 +2 Good Answer/Helpful
#182812 - Always important to follow up the progress of technology
Responding to: ???'s previous message
Richard Erlacher said:
BTW, I didn't spend a lot of time with the WIKI article, but did scan it to ensure it covered most of the details for Per.

But I was not in need of any details about SPI since I have been using it extensively.

The advantage with hw-driven SPI? That you can write a byte into a data register and then jump to other tasks while the processor generates 8 shifts and 8 clock pulses (or some controllers may be configured for anything between say 4 and 32 bits in a single operation). The traditional SPI master and slave just have a 8-bit shift register, a baudrate configuration and some configurable gates to specify flank and steady state of the clock. More "cool" SPI implementations also have a FIFO allowing a program to quickly inject a complete SPI message for a device (where some of the bits may represent a command and some of the bits may represent data for the device).

Because the clocking is off-loaded, you may run the SPI at 10 kHz without having to spend 50us sleeping between every tick (or having lots and lots of interrupts every 50 us). Or you may run the SPI at 15MHz, where the processor would have to spend all its time busylooping since it's impossible to use timer interrupts.

In some situations, you can also use SPI as a hardware-accelerated Dallas/Maxim one-wire controller, where you may decide that 32 SPI bits is one Maxim one-wire bit. Then you would automatically get the input from the one-wire slave sampled at 1/32 of the bit time to figure out if the slave sent back a zero or a one.

Microcontrollers are part of an area where everything is constantly moving. It isn't enough to know how something worked 20 years ago. Every little aspect has to regularly been questioned for relevance.

List of 49 messages in thread
TopicAuthorDate
problem rgarding uln and udn            01/01/70 00:00      
   They are different in every sense!            01/01/70 00:00      
      problem rgarding uln and udn            01/01/70 00:00      
         You forgot your links            01/01/70 00:00      
         Basic electronics            01/01/70 00:00      
            Clarification - more Basic Electronics            01/01/70 00:00      
            probelems regarding udn 2892            01/01/70 00:00      
               Still Basic electronics            01/01/70 00:00      
                  Links            01/01/70 00:00      
                     That'll be why he's still struggling after all these weeks!            01/01/70 00:00      
               open emitter            01/01/70 00:00      
                  Open collector            01/01/70 00:00      
         RE: i am not getting you            01/01/70 00:00      
   Did you really read datasheets?            01/01/70 00:00      
      problem rgarding uln and udn            01/01/70 00:00      
         relay matrix???            01/01/70 00:00      
         This doesn't make sense!            01/01/70 00:00      
            8x8 relay matrix?            01/01/70 00:00      
               relay matrix?            01/01/70 00:00      
                  not quite            01/01/70 00:00      
                  one interesting thing I learned            01/01/70 00:00      
               Unless...            01/01/70 00:00      
                  problem rgarding uln and udn            01/01/70 00:00      
                     lightning fast relays            01/01/70 00:00      
                        problems regarding uln and udn            01/01/70 00:00      
                           both            01/01/70 00:00      
                           None of this makes sense!            01/01/70 00:00      
                           It appears you need latching relays            01/01/70 00:00      
                              Latching relay is still slow            01/01/70 00:00      
                                 You're right, but the relay spec's should reveal that            01/01/70 00:00      
                              well, if he does ...            01/01/70 00:00      
                                 use toggle types ... they were around once ...            01/01/70 00:00      
                                    SPI + latched shift registers are good choices            01/01/70 00:00      
                                       The protocol is good ... but not necesary here            01/01/70 00:00      
                                          SPI is excellent for driving long shift registers            01/01/70 00:00      
                                             tell us, Per, what data types does SPI support?            01/01/70 00:00      
                                                Making Mountain Out Of Mole Hill            01/01/70 00:00      
                                                   protocol and/or command structure            01/01/70 00:00      
                                                No, SPI does *not* have both commands and data!            01/01/70 00:00      
                                                   Where you sit determines what you see            01/01/70 00:00      
                                                      Totally missing the point            01/01/70 00:00      
                                                         The major advantage            01/01/70 00:00      
                                                      Where Richard Sits......            01/01/70 00:00      
                                                         From where I sit...            01/01/70 00:00      
                                                      Always important to follow up the progress of technology            01/01/70 00:00      
                     Language barrier?            01/01/70 00:00      
                        Further question            01/01/70 00:00      
                     Sorry, double posting...            01/01/70 00:00      
   Cross-Post?            01/01/70 00:00      

Back to Subject List