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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/04/05 12:01
Modified:
  03/04/05 12:06

Read: times


 
#89085 - POP SP
Responding to: ???'s previous message
I tried the following code:
   mov   SCON,#52h    ;set serial mode 1 + preset ti
   mov   TMOD,#21h    
   mov   TH1,#-12     ;2400@11.0592MHz
   setb  tr1          ;enable timer 1
   mov   t2con,#20h   ;only RCLK

   mov   sp,#7
   push  sp

   jnb   ti,$
   clr   ti
   mov   sbuf,8
   jnb   ti,$
   clr   ti
   pop   sp
   mov   sbuf,sp
stop:
   ljmp  stop
   end

T89C51RD2 and DS89C450 gave me 07 07, P89V51RD2 gave 08 08...

Can anybody please try this on other manufacturers' chips?

Jan Waclawek


List of 31 messages in thread
TopicAuthorDate
PUSH SP            01/01/70 00:00      
   8            01/01/70 00:00      
      8???????????????????????????????????            01/01/70 00:00      
         On jokes, reasons &al.            01/01/70 00:00      
            no, you don't            01/01/70 00:00      
   I do not know and do not think I should            01/01/70 00:00      
      Non-compliance?            01/01/70 00:00      
   Theory vs. practice            01/01/70 00:00      
      Jan is right: 7            01/01/70 00:00      
         I did not say 7!            01/01/70 00:00      
            Interesting            01/01/70 00:00      
               POP SP? :-)            01/01/70 00:00      
                  POP SP            01/01/70 00:00      
                     MOV SP,#SP            01/01/70 00:00      
                        exceptions and rules            01/01/70 00:00      
                           MOV A,ACC            01/01/70 00:00      
                              xxx a,acc            01/01/70 00:00      
                              if the "Bible says"...            01/01/70 00:00      
                     more interesting            01/01/70 00:00      
               Hmmm.... interesting indeed!            01/01/70 00:00      
         native doing            01/01/70 00:00      
         Makes sense to me            01/01/70 00:00      
            POP SP            01/01/70 00:00      
               Output of SP            01/01/70 00:00      
                  Simulators            01/01/70 00:00      
                     simulators give me 7 7            01/01/70 00:00      
                        7 7            01/01/70 00:00      
                        spent for which purpose            01/01/70 00:00      
                           Fun...            01/01/70 00:00      
                              Atmel and Philips            01/01/70 00:00      
                        SiLabs F120            01/01/70 00:00      

Back to Subject List