This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I/O Port Simulation mismatch?

I have two simple code examples:

; Example 1
ORG 0
MOV A,#0xff
MOV P0,A
TOP: MOV P1,P0
SJMP TOP
END

----------------------

; Example 2
ORG 0
TOP: MOV A,#0xff
MOV P0,A
MOV P1,P0
SJMP TOP
END

----------------------

Both examples attempt to do the same thing. When clicking on pins of P0 the value is sent to P1. When I single step (F11) through the programs the perform in an identical manner. When I run the programs (F5), example 2 ends up with a mismatch between P0 pins and P1 values.

What could cause such a mismatch?

Parents
  • I'm following the same steps as you are yet I still can get a mismatch.

    I did, however, just notice something interesting... the mismatch appears to be with the displayed pins check boxes and not with the pins value. For example, all the P0 pins are checked but the value indicates 0xBF and P1 has a value of 0xBF with the bit D6 cleared. I grabbed a screen shot of this but I'm not sure how to post it.

Reply
  • I'm following the same steps as you are yet I still can get a mismatch.

    I did, however, just notice something interesting... the mismatch appears to be with the displayed pins check boxes and not with the pins value. For example, all the P0 pins are checked but the value indicates 0xBF and P1 has a value of 0xBF with the bit D6 cleared. I grabbed a screen shot of this but I'm not sure how to post it.

Children
No data