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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/19/09 23:50
Read: times


 
#161624 - It's about using what's already there
Responding to: ???'s previous message
Christian,

I can certainly understand the perception that using external memory space will be simpler because it is "out of the way" of other functions. However, if you look at the opportunities that are lost by doing so, primarily in the types of instructions that you can use to manipulate your external-memory-mapped CAN core, as opposed to one that's mapped into SFR-space, which, BTW, I view as "I/O space" for practical reasons, you'll see why I look askance at such an approach.

If you've followed my comments in the past, you'll have noted that I am generally hostile to the use of HLL's, including 'C', for code sets small enough to fit within the space of a typical MCU. For an OS, or any application with 100K-200K, or more, lines of code, well, it's probably appropriate, but at least the low-level functions e.g. "talking" directly to hardware features should be handled in ASM and not ever in any HLL, since timing is often very critical, and seldom predictable in HLL's.

If you really want to use external-memory-space, you certainly can do that. However, you're aware, I guess, that there is only one instructions with only a few modes by means of which you can access external-memory-space. You have more options in SFR-space.

Whether you use external memory or not, an elegant implementation of 805x puts its I/O in SFR-space. After all, the 805x is a poor hardware set with a marvelously ingenious instruction set very well suited for microcontroller tasks. It would be a shame to waste the benefits of the architecture and instruction set for the "convenience" of having the separation between presently internal peripheral hardware and your new CAN core.

I wish you luck, in any case, but I hope you'll consider using the benefits of the existing architecture.

RE


List of 30 messages in thread
TopicAuthorDate
[8052] Connect periphery over the XRAM Port            01/01/70 00:00      
   plus            01/01/70 00:00      
   Which Spartan-3E board?            01/01/70 00:00      
      SFR Space            01/01/70 00:00      
         Is that really the case in this instance?            01/01/70 00:00      
            I s'pose            01/01/70 00:00      
               It's a core, intended for FPGA, not a chip.            01/01/70 00:00      
   Thanks            01/01/70 00:00      
      Why go through all the suffering?            01/01/70 00:00      
      XDATA access vs SFR access            01/01/70 00:00      
         Perhaps they're in over their heads            01/01/70 00:00      
            Having fun?            01/01/70 00:00      
               Not exactly ...            01/01/70 00:00      
                  Talk to the OP, not about            01/01/70 00:00      
                     I would bet they've seen the light            01/01/70 00:00      
                        So whatever happened to...            01/01/70 00:00      
                           Ironic, isn't it?            01/01/70 00:00      
                              My point exactly!            01/01/70 00:00      
                                 Perhaps the O/P wasn't prepared            01/01/70 00:00      
                                    Yeah you´re (sometimes) right            01/01/70 00:00      
                                       It's about using what's already there            01/01/70 00:00      
                                          in the end            01/01/70 00:00      
                                             It doesn't always work in that way            01/01/70 00:00      
                                          Running before you can walk            01/01/70 00:00      
                                             Maybe, but first of all, there's no example ...            01/01/70 00:00      
                                                not really            01/01/70 00:00      
                                                   WTF???            01/01/70 00:00      
                                                   Let us not go over the top            01/01/70 00:00      
                                                      Language barrier?            01/01/70 00:00      
                                                         No ... I was agreeing with your comment            01/01/70 00:00      

Back to Subject List