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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/05/03 04:55
Read: times


 
#47570 - RE: 8051 vs 6502...
Responding to: ???'s previous message
James:
Your choice really has to be made by looking VERY closely at how that 2K SRAM of the existing 6502 is used. If it holds a lot of data in the likes of arrays, tables, data structures, linked lists or just even 100s of global variables that are closely coupled as the data sources and destinations of various software algorithms in the code, THEN maybe an 8051 type processor is not the best choice unless you use something like a processor that can execute the following type of 8051 instructions:
    MOV DPTR, #Abs16,  (3 bytes - 2 cycles)    
    MOVX A, @DPTR      (1 bytes - 2 cycles)
                       (On 12 MHz std 8051 this is 4 uSec)

... in the same time it takes the 6502 to run this type of instruction:
    LDA  Abs16Addr     (3 bytes - 4 cycles) 
                       (at 2 MHz this is 4*500nSec
You can get this kind of preformance if you use a derivative at 6 clock divider running at 12 MHz. ---------- Also keep in mind that if the existing code makes frequent references to the SRAM at locatons beyond the "zero page" with instructions using the... Abs16Addr,X Abs16Addr,Y ...addressing modes where both X and Y indexing are used in the same loops or algorithm, then I would look carefully at derivative 8051 type parts that have dual data pointer. ----------- Most other instruction translations from 6502 to 8051 should convert with almost equivalent performance. Michael Karas

List of 34 messages in thread
TopicAuthorDate
8051 vs 6502...            01/01/70 00:00      
   RE: 8051 vs 6502...            01/01/70 00:00      
      RE: 8051 vs 6502...            01/01/70 00:00      
         RE: 8051 vs 6502...            01/01/70 00:00      
            RE: 8051 vs 6502...            01/01/70 00:00      
   RE: 8051 vs 6502...            01/01/70 00:00      
      RE: 8051 vs 6502...            01/01/70 00:00      
   RE: 8051 vs 6502...            01/01/70 00:00      
      RE: 8051 vs 6502...            01/01/70 00:00      
   RE: 8051 vs 6502...            01/01/70 00:00      
      RE: 8051 vs 6502...            01/01/70 00:00      
   RE: 8051 vs 6502...            01/01/70 00:00      
      RE: 8051 vs 6502...            01/01/70 00:00      
         RE: 8051 vs 6502...            01/01/70 00:00      
            RE: 8051 vs 6502...            01/01/70 00:00      
               RE: 8051 vs 6502...            01/01/70 00:00      
                  RE: 8051 vs 6502...            01/01/70 00:00      
   RE: 8051 vs 6502...            01/01/70 00:00      
      RE: 8051 vs 6502...            01/01/70 00:00      
         RE: 8051 vs 6502...            01/01/70 00:00      
            RE: 8051 vs 6502...            01/01/70 00:00      
               RE: 8051 vs 6502...            01/01/70 00:00      
                  RE: 8051 vs 6502...            01/01/70 00:00      
                     RE: 8051 vs 6502...            01/01/70 00:00      
                        RE: 8051 vs 6502...            01/01/70 00:00      
                           RE: 8051 vs 6502...            01/01/70 00:00      
                              RE: 8051 vs 6502...            01/01/70 00:00      
                                 RE: 8051 vs 6502...            01/01/70 00:00      
                                    RE: 8051 vs 6502...            01/01/70 00:00      
                                       RE: 8051 vs 6502...            01/01/70 00:00      
                           RE: 8051 vs 6502...            01/01/70 00:00      
   RE: CEIBo DB series            01/01/70 00:00      
      RE: CEIBo DB series            01/01/70 00:00      
         RE: CEIBo DB series            01/01/70 00:00      

Back to Subject List