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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Louis S
01/22/10 12:59
Read: 145 times


 
#172673 - Emulator trace
Responding to: Andy Neil's previous message
I'm new to the tracer, so let me know if there's a better way to do this:

The instruction is:
max3140_configVar = 0; // int at 0x0501 in xdata

Frame  Time             Ext 7..0  I P R S DA DD T  D C Code/Xd    Addr   Op  BPP  Instruction             Source                                          
----------------------------------------------------------------------------------------------------------------------------------------------------------
-101   -60.28 us        11111111        ?          0 I Instr      0004E6 90       MOV   DPTR,#max3140_confmax3140_configVar = 0;                  // ...
-100   -59.74 us        11111111        ?          0 I Oprnd      0004E7 05
-99    -59.19 us        11111111        ?          0 I Oprnd      0004E8 10
-98    -58.65 us        11111111        ?          0 I Idle       0004E8 10
-97    -58.11 us        11111111        ?          0 I Instr      0004E9 E4       CLR   A
-96    -57.57 us        11111111        ?          0 I Idle       0004EA F0
-95    -57.02 us        11111111        ?          0 I Instr      0004EA F0       MOVX  @DPTR,A
-94    -56.48 us        11111111        ?          0 I Idle       0004EB A3
-93    -55.39 us        11111111        ?          0   XWr/XRAM   000510 00        [max3140_configVar]
-92    -54.85 us        11111111        ?          0 I Instr      0004EB A3       INC   DPTR
-91    -54.31 us        11111111        ?          0 I Idle       0004EC E4
-90    -53.76 us        11111111        ?          0 I Idle       0004EC E4
-89    -53.22 us        11111111        ?          0 I Idle       0004EC E4
-88    -52.68 us        11111111        ?          0 I Instr      0004EC E4       CLR   A
-87    -52.13 us        11111111        ?          0 I Idle       0004ED F0
-86    -51.59 us        11111111        ?          0 I Instr      0004ED F0       MOVX  @DPTR,A
-85    -51.05 us        11111111        ?          0 I Idle       0004EE 90
-84    -49.96 us        11111111        ?          0   XWr/XRAM   000511 00        [max3140_configVar<1>]

 



I'm not too sure how to evaluate the trace, but I can see in emulation that the variable is not cleared. The emulator can't manually write to the value either, which looks like I've misconfigured something.

List of 30 messages in thread
TopicAuthorDate
Simulation vs. Embedded Discrepancy      Louis S      01/15/10 07:14      
   Hardware fault?      Andy Neil      01/15/10 07:39      
      Responding to: Andy Neil's previous message      Louis S      01/15/10 07:51      
   illustration of edge difference?      Erik Malund      01/15/10 08:00      
      SPI Phase/Polarity      Louis S      01/15/10 08:06      
         address instead of value      Andy Neil      01/15/10 08:17      
            Doesn't seem coincidental      Louis S      01/20/10 13:19      
               MOVX command fails      Louis S      01/21/10 09:28      
                  Definitely sounds like a hardware fault!      Andy Neil      01/21/10 12:01      
                  Have you tried doing this in ASM?      Richard Erlacher      01/21/10 12:32      
                     The loop in ASM      Louis S      01/21/10 14:27      
                        I think...      Jez Smith      01/21/10 15:11      
                        Sounds like hardware again      Andy Neil      01/21/10 17:34      
                           If this were reduced to the essentials ...      Richard Erlacher      01/21/10 18:36      
                              Oh Richard      Jez Smith      01/22/10 01:32      
                        What I was after ...      Richard Erlacher      01/21/10 18:30      
                           Reducing to Essentials      Louis S      01/22/10 10:56      
                              RE: Magic Switch On The Compiler      Andy Neil      01/22/10 12:21      
                                 Emulator trace      Louis S      01/22/10 12:59      
                                    Yes      Neil Kurzman      01/23/10 02:39      
                                       SOLVED      Louis S      01/25/10 11:10      
                                          A bit ocnfused      Andy Neil      01/25/10 11:24      
                                             Emulator and AUXR      Louis S      01/25/10 14:15      
                                                Things do tend to work best...      Andy Neil      01/25/10 14:54      
   one guess with a question      Erik Malund      01/21/10 13:46      
      Memory has plenty of gaps      Louis S      01/21/10 14:29      
         That doesn't make sense!      Andy Neil      01/23/10 03:25      
            Sloppy language on my part      Louis S      01/23/10 23:00      
      Am I missing something      Neil Kurzman      01/21/10 19:06      
      questions/request      Erik Malund      01/22/10 06:52      

Back to Subject List