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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/28/11 14:14
Read: times


 
#181654 - problem with simulator?
I am completely new to micro controllers and am teaching myself assembly language for the 8051 for a project I am working on. I am using the EdSim51 simulator. It may be a problem with my knowledge but i wanted to find out.

I was under the impression you had to set the I/O pins to input or output and that each pin was a separate bit. So if I wrote:

SETB 90H ; THIS SETS ALL THE PORT PINS ON BANK 1 TO OUTPUT
MOV P1, #00000010 ; THIS TURNS ON AN LED CONNECTED TO PIN 1.1

For some reason this isn't the case with the simulator. Is the problem with my code or the simulator. I am stumped

List of 21 messages in thread
TopicAuthorDate
problem with simulator?            01/01/70 00:00      
   First of all            01/01/70 00:00      
      normally?            01/01/70 00:00      
         RE: "normally"            01/01/70 00:00      
   just saw it            01/01/70 00:00      
      Erik            01/01/70 00:00      
         "bible time"            01/01/70 00:00      
   Thanks but....            01/01/70 00:00      
      all the same            01/01/70 00:00      
      Learning requires study            01/01/70 00:00      
         a small correction            01/01/70 00:00      
         Thankyou            01/01/70 00:00      
            the chips listed ....            01/01/70 00:00      
   bit/byte addressing            01/01/70 00:00      
   "unknown label"            01/01/70 00:00      
      Use code tags            01/01/70 00:00      
         relative addressing            01/01/70 00:00      
            the Assembler tells you.            01/01/70 00:00      
            How would I find out if the labels are undefined?            01/01/70 00:00      
         nope            01/01/70 00:00      
         horribly wrong            01/01/70 00:00      

Back to Subject List