We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
The displays of Port pins in uV2 may not be updated as fast as you think, while running the simulation untinterrupted. Make sure you check the "Periodic Window Update" option in the "View" menu if you want this kind of synchronicity.
Even if it didn't update as fast as I'd like, I would think it would eventually catch up to what the values should be. The mismatch is persistent in that once it is out of sync it stays that way. and yes-- periodic update is enabled.