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

Back to Subject List

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


 
#111483 - architecture
Responding to: ???'s previous message
Richard Erlacher said:
In order to sample a digital waveform of 1 MHz frequency, one has to sample at a minimum of 2 MHz. Within that half-microsecond interval, a microcontroller has to fetch the data, put it somewhere, increment the pointer to where he puts it, check to see whether he's done yet, then go back and do it all again.


In AVRs, the basic sample-and-store cycle is as much as
   IN   R16,PINA
   ST   Z+,PINA
where the autoincrement of the "pointer" register pair takes care of the third required operation. Similar can be achieved on those '51 clones which have DPTR autoincrement, where the cycle would shrink to
   mov   a,P2
   movx   @dptr,a   ;autoincrement mode set previously
.
Unrolling the cycle, we get rid of the counting and endcheck - simply repeating this pattern as many times as much samples we want to take (as much internal SRAM is available). This sounds as a terrible waste of code memory, but in fact this comes in huge amounts very cheap - we need like 4 times as much as SRAM we have, so that's 32kB of FLASH for 8kB of SRAM, so it will fit nicely into ATMega128 or similar. At a 16MHz clock, this scheme yealds sample rate above 5MHz (IN is 1 cycle and ST is 2).
Of course, delayed trigger is impossible using this scheme but for many applications it does not really matter. I believe, 2MHz sampling is still achievable even with delayed trigger, or with sampling based on state changes (storing timestamps). And - anyway, I still don't know what is the ultimate sampling frequency needed for the ZigBee module, so all this is only a hypothetical discussion.

Jan Waclawek


List of 77 messages in thread
TopicAuthorDate
Parallel port Logic Analyser            01/01/70 00:00      
   Maybe I can help ...            01/01/70 00:00      
      Details            01/01/70 00:00      
         Well ... YES!            01/01/70 00:00      
            Oops!            01/01/70 00:00      
               another option            01/01/70 00:00      
               ideas            01/01/70 00:00      
               Try a DOS box            01/01/70 00:00      
                  When things are not going on my way..            01/01/70 00:00      
                     well            01/01/70 00:00      
                        Cost?            01/01/70 00:00      
                        cost            01/01/70 00:00      
                           Options            01/01/70 00:00      
                              ok well            01/01/70 00:00      
                              miniLA            01/01/70 00:00      
                                 Sorry!            01/01/70 00:00      
                                    I don't sell            01/01/70 00:00      
                                    If you want something you can build ...            01/01/70 00:00      
                                 MiniLA?            01/01/70 00:00      
                                    Buying, building and Writing..            01/01/70 00:00      
                                       You've got to decide ...            01/01/70 00:00      
                                       great start!            01/01/70 00:00      
                                          AVR!            01/01/70 00:00      
                                             realterm            01/01/70 00:00      
                                          But they're not reall fast enough            01/01/70 00:00      
                                             Cheat!            01/01/70 00:00      
                                                only if it gains you something            01/01/70 00:00      
                                                   to LA or not to LA            01/01/70 00:00      
                                                      I once made one            01/01/70 00:00      
                                                         cost of time... and price of learning...            01/01/70 00:00      
                                                            there is no such thing            01/01/70 00:00      
                                                               1MHz sampling            01/01/70 00:00      
                                                                  it's not that simple            01/01/70 00:00      
                                                                     architecture            01/01/70 00:00      
   Not sure how it compares            01/01/70 00:00      
      not very useful            01/01/70 00:00      
   there is no way in hades that a "paralle            01/01/70 00:00      
      how fast?            01/01/70 00:00      
      not so fast there, Erik            01/01/70 00:00      
         PCI LPT vs. onboard            01/01/70 00:00      
            Seems a mite slow!            01/01/70 00:00      
         yes, but part of the "software" is Windo            01/01/70 00:00      
            You're right, of course,            01/01/70 00:00      
               all good and well            01/01/70 00:00      
                  wotizit            01/01/70 00:00      
                  That's it, exactly!            01/01/70 00:00      
                     Won't work either            01/01/70 00:00      
                        will work            01/01/70 00:00      
                           yes, but not the way you think            01/01/70 00:00      
                              re FIFO use            01/01/70 00:00      
                              USB+FIFO: the simplest way            01/01/70 00:00      
                                 Have you considered this?            01/01/70 00:00      
                                    simplicity            01/01/70 00:00      
                                       yes, but it's not deterministic            01/01/70 00:00      
                                          YES YES YES            01/01/70 00:00      
                                             What do you mean "forget about..."            01/01/70 00:00      
                                                quick'n'dirty            01/01/70 00:00      
                                                   there are countries with low labor cost            01/01/70 00:00      
                                                      labour cost?            01/01/70 00:00      
                                                   Even if it's 768 TB, it's too small            01/01/70 00:00      
                        think about it some more            01/01/70 00:00      
                     10MHz?            01/01/70 00:00      
                        Not the USB, the FIFO!            01/01/70 00:00      
                           USB logic analyzer            01/01/70 00:00      
                              It's just a transfer mechanism            01/01/70 00:00      
            Zigbee timing            01/01/70 00:00      
               if a byte is 32 then a bit is 4 and you            01/01/70 00:00      
               arrrrrrrrrrrrgh and stuff,just use pci            01/01/70 00:00      
                  Yes, well, what did you expect?            01/01/70 00:00      
                     better mousetrap            01/01/70 00:00      
               I must have been more precise            01/01/70 00:00      
                  but WHEN?            01/01/70 00:00      
                     2420 interface details            01/01/70 00:00      
                        Focus on your current needs            01/01/70 00:00      
                           Thank you            01/01/70 00:00      
   reconstructed website            01/01/70 00:00      
   Update            01/01/70 00:00      

Back to Subject List